From 6b6299738f73a4f178c6bd51d600d83f8d13e22a Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 18 Feb 2020 09:09:17 -0800 Subject: [PATCH] Add `includelocation=yes` to weather-data query string The WWO request parameters can accept `includelocation=yes` to include the nearest weather point in the JSON results. This is useful to display the name of the location. source: https://www.worldweatheronline.com/developer/api/docs/local-city-town-weather-api.aspx --- bin/proxy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/proxy.py b/bin/proxy.py index 01b8193..ddb9642 100644 --- a/bin/proxy.py +++ b/bin/proxy.py @@ -181,6 +181,7 @@ def proxy(path): query_string = query_string.replace('sr-lat', 'sr') query_string = query_string.replace('lang=None', 'lang=en') query_string += "&extra=localObsTime" + query_string += "&includelocation=yes" content, headers = _load_content_and_headers(path, query_string) if content is None: