Commit graph

70 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
Igor Chubin
74283de5f5 Bind v3 2020-11-07 19:57:40 +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
9f3a0bca97 patch_all(httplib=True) 2020-05-07 23:42:41 +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
918a026422 added code of the geolocation proxy 2020-02-16 19:05:34 +01: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
Igor Chubin
49376a9871 use WTTRIN_SRV_PORT env variable if specified 2019-07-07 20:40:28 +02:00
Igor Chubin
c9ea3315a7
Merge branch 'master' into master 2019-07-07 18:55:15 +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
a25afe4771 moved server related code back to bin/srv.py 2018-10-07 12:11:09 +02:00
Igor Chubin
d7ec9ac840 moved srv.py to lib/ 2018-10-05 16:54:14 +02:00
Igor Chubin
bdfb02ed44 minor cleanup 2018-10-05 16:51:25 +02:00
Igor Chubin
f9e38c367d minor code cleanup 2018-10-03 22:59:11 +02:00
Igor Chubin
0b65985a71 added LISTEN_HOST and LISTEN_PORT 2018-10-03 22:47:02 +02:00
Igor Chubin
ceae32a7da big part of wttr() 2018-10-03 19:50:19 +02:00
Igor Chubin
df5b33c662 show_help() 2018-10-03 19:47:48 +02:00
Igor Chubin
8e1479f6ba User-Agent can be omited 2018-10-03 19:43:53 +02:00
Igor Chubin
ef3cb4dd7c added parse_accept_language() 2018-10-03 19:40:48 +02:00
Igor Chubin
5d7a87afb0 show_help() 2018-10-03 19:39:10 +02:00
Igor Chubin
e120196259 added find_supported_language() 2018-10-03 19:38:33 +02:00
Igor Chubin
3a5335ff0c syncing livecode with github code, step1 2018-10-03 19:37:45 +02:00
Igor Chubin
bcdd09c768 added /malformed-response.html route 2018-10-03 19:11:58 +02:00
Igor Chubin
c7c0430699 request restrictions relaxed 2018-10-03 19:10:26 +02:00