Igor Chubin
bb2780440b
Enable Marathi language ( #633 )
3 years ago
Conor O'Callaghan
1129a20db7
Update translations_v2.py
...
Adding some more for #305 in the spirit of Hacktoberfest :)
3 years ago
Austin Huang
74fc4df691
Add Environment Canada to the datasources list
3 years ago
kainengr
42333c54ce
Add Lithuanian translation
3 years ago
kainengr
df8feacfc5
add Lithuanian translation
3 years ago
Igor Chubin
6927116794
Store missing translations in separate logs ( #324 )
4 years ago
Igor Chubin
896dc263a1
Add missing translations ( #324 ) ( #535 )
4 years ago
Igor Chubin
3c1ef6f681
Improve support for inverted mode for PNG
4 years ago
Igor Chubin
5ef9e3eddb
Make background of png images configurable ( #200 )
4 years ago
Igor Chubin
e0cc061a64
Add fetch and aiohttp to PLAIN_TEXT_AGENTS ( #586 )
4 years ago
Igor Chubin
ed3a322f77
Add minor fix for plain-text weather symbols ( #583 )
4 years ago
Joseph
edd1e1e3dd
Add new function: render_condition_plain
4 years ago
Joseph
747740997e
Add optional argument 'plain' to render_condition
4 years ago
Joseph
cbae22a11f
Add plaintext weather symbols
4 years ago
Igor Chubin
de6c771f3c
Add www.bom.gov.au to list datasources to be used ( #567 )
4 years ago
Igor Chubin
2904c4f36d
Add datasource/ ( #526 )
4 years ago
Igor Chubin
10392a878f
Add support for T and Z ( #566 )
4 years ago
Igor Chubin
bbf0d6835f
Generate exception page (commented out)
4 years ago
Igor Chubin
f067e82956
Filter cache entries affected by #576
4 years ago
Igor Chubin
2141bdb944
Fix bug in geoip resolution
4 years ago
Igor Chubin
94cdb961f9
Fix cache format bug ( #576 )
4 years ago
Igor Chubin
ee2fb37fdb
Merge pull request #569 from rkassa/master
...
WIP: Amharic Translations
4 years ago
Igor Chubin
fe39b77813
Log ip resolution queries
4 years ago
Igor Chubin
a6d0adbbf7
Fix _geoip() format bug
4 years ago
Robel Kassa
a5459d2388
fix for timezone
4 years ago
Robel Kassa
18629445dd
v2 translations and we lang
4 years ago
Robel Kassa
2d22b751f5
amharic lang updates
4 years ago
Igor Chubin
49daae6f40
Use real temperature instead of feel-like in v2 ( #562 )
4 years ago
Igor Chubin
d551735021
Handle 404 properly ( #500 , #459 , #372 )
4 years ago
Igor Chubin
ed569540bc
Canonify contries names
4 years ago
Igor Chubin
e525129847
Move broken entries to a separate dir
4 years ago
Igor Chubin
3c8149a227
Cleanup
4 years ago
Igor Chubin
3ae30af48d
Update from master
4 years ago
Igor Chubin
ab756f1134
Check for 'United States of America' ( #474 )
4 years ago
Gregory Danielson
e98fbe9258
Document expected ipcachewrite input and output, with optional latlong entries
4 years ago
Gregory Danielson
c49c0a5c0e
Remove lat, long from _ip2location because WS5 is more expensive
4 years ago
Igor Chubin
1b25e16a37
Minor code cleanup
4 years ago
Igor Chubin
41d4d3d789
Extend location.py docstring
4 years ago
Gregory Danielson
26372148b5
Merge branch 'master' of github.com:chubin/wttr.in
4 years ago
Gregory Danielson
303c2d2ab7
Observe two possible names for United States when checking us_ip
4 years ago
Gregory Danielson
bdcb24742d
Rework ipcache write to include new data from all sources
4 years ago
Gregory Danielson
c349dc2f17
Break from IPLOCATION method loop if one method produces non-null result
4 years ago
Gregory Danielson
34313eb162
Rework get_location to handle additions to location tuple; same return
4 years ago
Gregory Danielson
e8cc9adc7f
Rework geoip to include ccode, lat, long for cache purposes
4 years ago
Gregory Danielson
88cd84b5d2
Rework ipinfo to include ccode, lat, long for cache purposes
4 years ago
Gregory Danielson
b7517bce65
Rework ip2location to include ccode, lat, long for cache purposes
4 years ago
Gregory Danielson
66802657a5
Add COUNTRY_MAP dict for workaround function cleanliness
4 years ago
Gregory Danielson
117727bc2b
Add pycountry dependency for converting ISO code to country name
4 years ago
Igor Chubin
74283de5f5
Bind v3
4 years ago
Igor Chubin
626a106186
Fix bug with location format
4 years ago
Gregory Danielson
bd7dd05cca
Observe region in geolocator
4 years ago
Gregory Danielson
953284d3d1
Check US IP out of 2nd element of query_source_location, due to added region
4 years ago
Gregory Danielson
afde91211c
Check and observe region and country in building formatted location
4 years ago
Gregory Danielson
deb2a5d01f
Adjust ipcache to observe new region
...
THIS WILL INVALIDATE THE EXISTING CACHE!
The new cache now pulls data from all three of geoip, ip2location, and
ipinfo, and stores it in the relatively simple city;region;country
format.
The old format would either store city;country or store
countrycode;country;region;city directly from ip2location, so it is much
more consistent with this change.
4 years ago
Gregory Danielson
2ebdb15398
Adjust ipcachewrite to account for region addition
4 years ago
Gregory Danielson
c7d3b32d53
Remove cache operation from ip2location; shortcut where possible
...
This comes with something of a refactor.
- IP2LOCATION_KEY is now checked with `if not` to reduce indention
- ConnectionError is increased to RequestException to catch all requests
errors
- On that note, now raising for status too
4 years ago
Gregory Danielson
628a860d6d
Remove cache operation from ipinfo; shortcut where possible
...
This comes with something of a refactor.
- IPINFO_TOKEN is now checked with `if not` to reduce indention
- ConnectionError is increased to RequestException to catch all requests
errors
- On that note, now raising for status too
- Now catching ValueError in case of json parsing failure
4 years ago
Gregory Danielson
996485adf1
Remove cache operation from geoip; shortcut where possible
4 years ago
Gregory Danielson
e4ac3f266f
Do cache read and write in get_location instead of duplicated in each IPLOCATION_ORDER method
4 years ago
Gregory Danielson
7af4aaa8ec
Correct docstring for get_location
4 years ago
Gregory Danielson
e1adca3bf0
Add region into location formatting
4 years ago
Gregory Danielson
f3bce5f806
Unpack region from get_location call or fail case
4 years ago
Gregory Danielson
4fa1ebd995
Add location[2] to ipcachewrite for new region part of cache
4 years ago
Gregory Danielson
08be8787b1
Observe new region var in get_location
4 years ago
Gregory Danielson
c65614d230
Enable ipcache writes from geoip lookup
4 years ago
Gregory Danielson
ef477822ae
Coalesce location into 3-tuple in geoip lookup
4 years ago
Gregory Danielson
4996c5a553
Pass region through workaround for consistency
4 years ago
Gregory Danielson
511b13bdcb
Capture and return region from ipinfo lookup
4 years ago
Gregory Danielson
35a35a56e2
Capture region from ip2location lookup
4 years ago
Gregory Danielson
af9658f63b
Check ipcache before fetching from geoip
4 years ago
Gregory Danielson
0056a97386
Capture and return region from geoip lookup
4 years ago
Igor Chubin
3717e30837
Merge branch 'master' into patch-1
4 years ago
Amadeo García Torrano
54f0b6ec48
Small mistake v2
...
I don't know why I put 'reporte'... Weird word.
4 years ago
Amadeo García Torrano
5bc944e464
Small mistake
...
Forgot a preposition in the 'FOLLOW' message.
4 years ago
Amadeo García Torrano
ad57cf96ea
Spanish translation
...
- Fixed minor grammar issues.
- Translated Oymyakon in 'NOT_FOUND_MESSAGE'
4 years ago
Igor Chubin
9e62a8cdcb
Basque translation, v2 view ( #438 )
4 years ago
Igor Chubin
91a5f77d2e
JSON output mimetype ( fixes #514 )
4 years ago
Emil Lerch
17e6e6c218
initial metno implementation
4 years ago
Igor Chubin
79eea95904
moonphase depends on the hemishphere ( #247 )
4 years ago
Igor Chubin
a62e3d979d
fxed a regression (geolocation cache)
4 years ago
Igor Chubin
4a980be2f3
se pyphoon from PATH
4 years ago
Igor Chubin
1c7d2854fc
Merge pull request #505 from elerch/ipinfo
...
support for ipinfo and ip to location ordering
4 years ago
Igor Chubin
385cec249d
Merge pull request #519 from johnnyapol/http
...
wttr_srv: implement http status codes, resolves #163
4 years ago
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)
4 years ago
PinkPanther-ny
34ec4470d6
Update translations_v2.py
...
Add translation of Hungarian -- PinkPanther-ny
4 years ago
Emil Lerch
3c16ac7993
support for ipinfo and ip to location ordering
4 years ago
Igor Chubin
4a6b4ec797
v2: added Occitan translation ( #494 )
4 years ago
Igor Chubin
b85e5732ec
added oc to PROXY_LANGS ( #494 )
4 years ago
Igor Chubin
6b8ef7c330
recovered hi-translation broken by #501
4 years ago
Quentí
9508b2b17e
Update translations.py
4 years ago
Igor Chubin
7ef0c450b3
Merge pull request #495 from skyme5/translation-hi
...
[new] hindi translations
4 years ago
Igor Chubin
05f04fc272
single line: now newline for %-notation by default ( #496 )
4 years ago
Aakash Gajjar
677d7e19dc
[new] hindi translations
4 years ago
zhiqiang
9995ba4bb9
Add missing blank in ThunderyShowers
4 years ago
Igor Chubin
09e0979581
Merge pull request #475 from owl73/master
...
Fix current time output of pngs
4 years ago
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'
4 years ago
owl73
4bdd28b883
Fix current time output of pngs
4 years ago
Igor Chubin
f51fda3447
Merge branch 'master' of https://github.com/chubin/wttr.in
4 years ago
Igor Chubin
5b9ccb31d5
format=j1: output in utf8
4 years ago
Manuel Rüger
8dc0e08f5e
README: Document Prometheus format output
4 years ago