Commit graph

13 commits

Author SHA1 Message Date
Igor Chubin
488160c636 gevent: patch httplib explicitly 2020-05-01 18:53:47 +02:00
Igor Chubin
b2550c9441 bin/proxy.py: minor fixes 2020-05-01 17:49:41 +02:00
Igor Chubin
ea0786edbf bin/proxy.py: smoothed cache load 2020-05-01 16:07:23 +02:00
Igor Chubin
87d7e3c863 added WTTRIN_TEST mode for proxy.py 2020-04-26 19:36:47 +02:00
Pragmatic Software
6b6299738f 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
2020-02-18 09:09:17 -08:00
Pragmatic Software
f956f4ef94 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
2020-02-18 08:44:02 -08:00
Igor Chubin
b1ea9be11f minor fixes 2019-12-28 18:08:06 +01:00
Igor Chubin
d78996af54 bin/proxy.py: handle query timeouts 2019-08-28 13:58:36 +02:00
Igor Chubin
3b00e2445b _touch_empty_file (for debug purposes) 2019-08-25 20:39:22 +02:00
Igor Chubin
94047e1e5b wwo url fixed 2019-08-25 20:39:22 +02:00
cclauss
7c47cd7d0c Modernize Python 2 code to get ready for Python 3 2018-12-02 09:41:29 +01:00
Igor Chubin
5353cc3a17 bin/proxy.py clean up 2018-10-23 20:04:25 +02:00
Igor Chubin
c2b3777754 added bin/proxy.py 2018-10-02 23:56:11 +02:00