Commit Graph

32 Commits

Author SHA1 Message Date
Igor Chubin
8f433de15a Split proxy access and errors logs 2022-10-26 08:41:20 +02:00
Igor Chubin
0be2669412 Increase expiration interval 2022-10-25 19:21:11 +02:00
Igor Chubin
ea1f93282f Move query wrapper to a separate function 2022-10-25 19:20:49 +02:00
Igor Chubin
cedf3b58d6 Add proxy queries logging 2022-10-25 19:18:07 +02:00
Igor Chubin
5782f4f53e Add minor fixes 2021-10-30 17:47:43 +02:00
Igor Chubin
6927116794 Store missing translations in separate logs (#324) 2021-04-26 20:56:16 +02:00
Igor Chubin
896dc263a1 Add missing translations (#324) (#535) 2021-04-21 20:03:17 +02:00
Igor Chubin
a963c131d1 Increase cache expiration time interval 2021-02-27 18:27:41 +01:00
Igor Chubin
49aefecf99 Fix typos 2021-01-02 22:57:49 +01:00
Igor Chubin
492f4f5e50 Translate comma-separated terms (#554, #535) 2021-01-02 22:48:17 +01:00
Igor Chubin
0b8ead03e6 Use case-insensitive term for translation (#552) 2021-01-02 22:43:18 +01:00
Emil Lerch
17e6e6c218
initial metno implementation 2020-10-08 16:24:19 -07:00
Igor Chubin
5e3ecaeaf4 increased cache expiry time 2020-09-20 09:59:23 +02:00
Igor Chubin
ff9d0353ed proxy: increased expiration time 2020-06-01 13:04:12 +02:00
Igor Chubin
fc604e2575 bin/proxy.py: minor fix 2020-05-24 19:25:45 +02:00
Igor Chubin
6e02c0a147 increased data expiration time: +10 minutes 2020-05-21 13:22:50 +02:00
renyhp
9ecb369e9e
Fix #449 2020-05-20 14:14:33 +02:00
Igor Chubin
d307c2e084 gevent: patch_all() instead of patch_all(httplib=True) 2020-05-10 17:06:39 +02:00
Igor Chubin
18f51475ce bin/proxy.py: cache timing fixed 2020-05-07 09:43:42 +02:00
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