Gregory Danielson
996485adf1
Remove cache operation from geoip; shortcut where possible
2020-11-01 16:31:46 -06:00
Gregory Danielson
e4ac3f266f
Do cache read and write in get_location instead of duplicated in each IPLOCATION_ORDER method
2020-11-01 16:31:15 -06:00
Gregory Danielson
7af4aaa8ec
Correct docstring for get_location
2020-11-01 16:30:00 -06:00
Gregory Danielson
e1adca3bf0
Add region into location formatting
2020-11-01 16:28:24 -06:00
Gregory Danielson
f3bce5f806
Unpack region from get_location call or fail case
2020-11-01 16:27:40 -06:00
Gregory Danielson
4fa1ebd995
Add location[2] to ipcachewrite for new region part of cache
2020-11-01 15:03:14 -06:00
Gregory Danielson
08be8787b1
Observe new region var in get_location
2020-11-01 13:50:05 -06:00
Gregory Danielson
c65614d230
Enable ipcache writes from geoip lookup
2020-11-01 13:45:32 -06:00
Gregory Danielson
ef477822ae
Coalesce location into 3-tuple in geoip lookup
2020-11-01 13:45:08 -06:00
Gregory Danielson
4996c5a553
Pass region through workaround for consistency
2020-11-01 13:42:31 -06:00
Gregory Danielson
511b13bdcb
Capture and return region from ipinfo lookup
2020-11-01 13:41:52 -06:00
Gregory Danielson
35a35a56e2
Capture region from ip2location lookup
2020-11-01 13:40:20 -06:00
Gregory Danielson
af9658f63b
Check ipcache before fetching from geoip
2020-11-01 13:19:45 -06:00
Gregory Danielson
0056a97386
Capture and return region from geoip lookup
2020-11-01 13:05:03 -06:00
Igor Chubin
3717e30837
Merge branch 'master' into patch-1
2020-10-15 06:20:14 +02:00
Amadeo García Torrano
54f0b6ec48
Small mistake v2
...
I don't know why I put 'reporte'... Weird word.
2020-10-14 18:49:35 -03:00
Amadeo García Torrano
5bc944e464
Small mistake
...
Forgot a preposition in the 'FOLLOW' message.
2020-10-14 18:37:47 -03:00
Amadeo García Torrano
ad57cf96ea
Spanish translation
...
- Fixed minor grammar issues.
- Translated Oymyakon in 'NOT_FOUND_MESSAGE'
2020-10-14 18:35:42 -03:00
Igor Chubin
9e62a8cdcb
Basque translation, v2 view ( #438 )
2020-10-14 08:22:24 +02:00
Igor Chubin
91a5f77d2e
JSON output mimetype ( fixes #514 )
2020-10-14 07:32:43 +02:00
Emil Lerch
17e6e6c218
initial metno implementation
2020-10-08 16:24:19 -07:00
Igor Chubin
79eea95904
moonphase depends on the hemishphere ( #247 )
2020-09-20 11:09:57 +02:00
Igor Chubin
a62e3d979d
fxed a regression (geolocation cache)
2020-09-20 11:09:04 +02:00
Igor Chubin
4a980be2f3
se pyphoon from PATH
2020-09-20 09:59:23 +02:00
Igor Chubin
1c7d2854fc
Merge pull request #505 from elerch/ipinfo
...
support for ipinfo and ip to location ordering
2020-09-17 08:37:07 +02:00
Igor Chubin
385cec249d
Merge pull request #519 from johnnyapol/http
...
wttr_srv: implement http status codes, resolves #163
2020-09-16 21:42:24 +02:00
John C. Allwein
e745ac6a08
wttr_srv: implement http status codes, resolves #163
...
This change implements proper HTTP status codes
for wttr_srv, returning:
- 200 if request was successful
- 403 if location is blocked
- 429 if rate-limited
- 500 if internal error occurred (MALFORMED_RESPONSE_HTML_PAGE)
- 503 if the service is unavailable (CAPACITY_LIMIT_REACHED)
2020-08-27 17:17:26 -04:00
PinkPanther-ny
34ec4470d6
Update translations_v2.py
...
Add translation of Hungarian -- PinkPanther-ny
2020-08-22 18:07:08 +10:00
Emil Lerch
3c16ac7993
support for ipinfo and ip to location ordering
2020-07-27 17:25:44 -07:00
Igor Chubin
4a6b4ec797
v2: added Occitan translation ( #494 )
2020-07-15 18:16:36 +02:00
Igor Chubin
b85e5732ec
added oc to PROXY_LANGS ( #494 )
2020-07-15 17:48:27 +02:00
Igor Chubin
6b8ef7c330
recovered hi-translation broken by #501
2020-07-15 17:40:42 +02:00
Quentí
9508b2b17e
Update translations.py
2020-07-14 21:29:24 +02:00
Igor Chubin
7ef0c450b3
Merge pull request #495 from skyme5/translation-hi
...
[new] hindi translations
2020-07-14 19:23:37 +02:00
Igor Chubin
05f04fc272
single line: now newline for %-notation by default ( #496 )
2020-07-09 20:30:19 +02:00
Aakash Gajjar
677d7e19dc
[new] hindi translations
2020-07-09 00:56:19 +05:30
zhiqiang
9995ba4bb9
Add missing blank in ThunderyShowers
2020-06-27 01:36:05 +08:00
Igor Chubin
09e0979581
Merge pull request #475 from owl73/master
...
Fix current time output of pngs
2020-06-26 07:57:43 +02:00
sudoLife
2080568f80
Fix minor translation issues
...
Irish is now added to the 'LOCATION' dictionary properly
Change 'how it looks like' to 'what it looks like'
2020-06-24 08:56:39 +03:00
owl73
4bdd28b883
Fix current time output of pngs
2020-06-23 07:41:07 -04:00
Igor Chubin
f51fda3447
Merge branch 'master' of https://github.com/chubin/wttr.in
2020-06-19 20:07:31 +02:00
Igor Chubin
5b9ccb31d5
format=j1: output in utf8
2020-06-19 20:07:21 +02:00
Manuel Rüger
8dc0e08f5e
README: Document Prometheus format output
2020-06-13 11:32:45 +02:00
Igor Chubin
ac62bb7387
prometheus: removed help lines duplicates ( #446 )
2020-06-12 19:21:53 +02:00
Igor Chubin
dabfc55c8b
prometheus format code clean up ( #446 )
2020-06-12 19:12:08 +02:00
Manuel Rüger
cc46d78442
prometheus: Add timestamp, astronomy fields
2020-06-12 15:34:25 +02:00
Manuel Rüger
5156b9e589
prometheus: Proper help format
2020-06-10 23:30:15 +02:00
Igor Chubin
d0023d7940
yet another typo fixed ( #446 , #469 )
2020-06-10 22:25:54 +02:00
Igor Chubin
6c7cd5a367
typo fixed ( #446 , #469 )
2020-06-10 22:20:15 +02:00
Manuel Rüger
5b7e10f7c6
prometheus: Add help descriptions, improve metric names
2020-06-10 21:59:45 +02:00