mirror of
https://github.com/chubin/wttr.in
synced 2025-01-26 02:34:59 +00:00
Add extra=localObsTime to weather-data fetch query
The `extra` parameter can accept multiple values. The one we're interested in is `localObsTime`. What it does is: Adds the current weather observation time in UTC as well as local time of the location requested. source: https://www.worldweatheronline.com/developer/api/docs/local-city-town-weather-api.aspx
This commit is contained in:
parent
aa15990fc8
commit
f956f4ef94
1 changed files with 1 additions and 0 deletions
|
@ -180,6 +180,7 @@ def proxy(path):
|
|||
query_string = request.query_string
|
||||
query_string = query_string.replace('sr-lat', 'sr')
|
||||
query_string = query_string.replace('lang=None', 'lang=en')
|
||||
query_string += "&extra=localObsTime"
|
||||
content, headers = _load_content_and_headers(path, query_string)
|
||||
|
||||
if content is None:
|
||||
|
|
Loading…
Reference in a new issue