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)
5 years ago
PinkPanther-ny
34ec4470d6
Update translations_v2.py
...
Add translation of Hungarian -- PinkPanther-ny
5 years ago
Emil Lerch
3c16ac7993
support for ipinfo and ip to location ordering
5 years ago
Igor Chubin
4a6b4ec797
v2: added Occitan translation ( #494 )
5 years ago
Igor Chubin
b85e5732ec
added oc to PROXY_LANGS ( #494 )
5 years ago
Igor Chubin
6b8ef7c330
recovered hi-translation broken by #501
5 years ago
Quentí
9508b2b17e
Update translations.py
5 years ago
Igor Chubin
7ef0c450b3
Merge pull request #495 from skyme5/translation-hi
...
[new] hindi translations
5 years ago
Igor Chubin
05f04fc272
single line: now newline for %-notation by default ( #496 )
5 years ago
Aakash Gajjar
677d7e19dc
[new] hindi translations
5 years ago
zhiqiang
9995ba4bb9
Add missing blank in ThunderyShowers
5 years ago
Igor Chubin
09e0979581
Merge pull request #475 from owl73/master
...
Fix current time output of pngs
5 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'
5 years ago
owl73
4bdd28b883
Fix current time output of pngs
5 years ago
Igor Chubin
f51fda3447
Merge branch 'master' of https://github.com/chubin/wttr.in
5 years ago
Igor Chubin
5b9ccb31d5
format=j1: output in utf8
5 years ago
Manuel Rüger
8dc0e08f5e
README: Document Prometheus format output
5 years ago
Igor Chubin
ac62bb7387
prometheus: removed help lines duplicates ( #446 )
5 years ago
Igor Chubin
dabfc55c8b
prometheus format code clean up ( #446 )
5 years ago
Manuel Rüger
cc46d78442
prometheus: Add timestamp, astronomy fields
5 years ago
Manuel Rüger
5156b9e589
prometheus: Proper help format
5 years ago
Igor Chubin
d0023d7940
yet another typo fixed ( #446 , #469 )
5 years ago
Igor Chubin
6c7cd5a367
typo fixed ( #446 , #469 )
5 years ago
Manuel Rüger
5b7e10f7c6
prometheus: Add help descriptions, improve metric names
5 years ago
Manuel Rüger
1857581cce
Fix prometheus output
5 years ago
Igor Chubin
a573ae27eb
initial naïve Prometheus implementation ( #446 )
5 years ago
Igor Chubin
8b1a2658bb
cache signature location handling fixed ( #460 , #466 )
5 years ago
Igor Chubin
ef7d46723d
dont cache cyclic requests ( #460 )
5 years ago
Igor Chubin
b0a9d27a20
v2: fixed alignment problems for nerdphonts ( #363 )
5 years ago
Igor Chubin
949f601263
Merge pull request #463 from spywhere/feel-like
...
lib/view/line.py: add feel like temperature
5 years ago
Igor Chubin
228b93aad5
nerd fonts: initial support of v2d/v2n view ( #363 )
5 years ago
Sirisak Lueangsaksri
f312641f1a
lib/view/line.py: add feel like temperature
5 years ago
gnostiphage
6a7e25efa5
added dictionaries for weather-icons, aka nerd fonts
5 years ago
Igor Chubin
f488160294
even preciser wind direction visualization ( #455 )
5 years ago
Igor Chubin
4c32d57b39
enabled Irish translation in proxy ( #305 )
5 years ago
Conor OCallaghan
7def10c0eb
#305 adding some more translation
5 years ago
Igor Chubin
64322d7b61
use WTTR_IP2LOCATION_KEY_FILE ot override ip2location key location
5 years ago
Igor Chubin
fbf4aad445
use WTTR_WWO_KEY_FILE to override WWO keyfile location ( #238 )
5 years ago
Igor Chubin
bac771051a
v2?T: remve ansi codes ( #202 )
5 years ago
Igor Chubin
68e7b8bdb7
remve ansi codes from follow line ( #202 )
5 years ago
Igor Chubin
ce93b59a9e
minor fix
5 years ago
renyhp
8a0ca47421
Add italian translation for v2
5 years ago
Igor Chubin
b20f31c148
Merge branch 'master' into basque_translations_update
5 years ago
Igor Chubin
ebb961797f
added basque to proxy langs ( #438 )
5 years ago
Igor Chubin
d7afd94c31
v2: fixed bug with location behind polar circle
5 years ago
Iker Sagasti Markina
93cbeb8954
missing messages in lib/translations and share/we-lang/we-lang.go. Some spanish translations improved
...
missing messages in lib/translations and share/we-lang/we-lang.go. Some spanish translations improved
5 years ago
Igor Chubin
dd200a460b
Merge branch 'master' into v2
5 years ago
Iker Sagasti Markina
76bbbb2292
Basque translations added 💃
...
files added
5 years ago
Igor Chubin
270d77dd5f
line mode: astro funcs fixed
5 years ago
Igor Chubin
ddc08d6fba
%c: added spaces after weather confidition when needed ( #440 )
5 years ago
Igor Chubin
24850db80e
do not use u"" in python3 code
5 years ago
Igor Chubin
09e3d57b40
lib/cache.py: fixed expiration time
5 years ago
Igor Chubin
e1bd1bf4b4
lib/globals.py clean up
5 years ago
Igor Chubin
01a321c202
png rendering in a separate thread
5 years ago
Igor Chubin
12d3ea2035
view/wttr.py clean up
5 years ago
Igor Chubin
57f15b55c6
enabled partial Basque translation ( #438 )
5 years ago
Igor Chubin
6c7600c309
removed space before km/h ( #433 )
5 years ago
Igor Chubin
5e2ae43c96
updated from master
5 years ago
Igor Chubin
413f23bec3
/Moon language fixed
5 years ago
Igor Chubin
acb761be0d
v2 html: minor fix
5 years ago
Igor Chubin
192e633607
cache.py: add timestamp to each entry
5 years ago
Igor Chubin
0d5f6c298c
v2+png: new experimental query encoding
5 years ago
Igor Chubin
cecde8fec8
fixed location for localhost
5 years ago
Igor Chubin
e041280f27
do not pass query to view functions
5 years ago
Igor Chubin
0a8ab5e89f
one-letter options in png files ( #436 )
5 years ago
Igor Chubin
2ef8435b36
line.py: use new astral lib
5 years ago
Igor Chubin
156ab97cf2
do not add followme to json output
5 years ago
Igor Chubin
26a5fa533a
useragents fixed
5 years ago
Igor Chubin
40ad45ad03
minor fixes
5 years ago
Igor Chubin
16e9ba5740
added de and fr to PROXY_LANGS
5 years ago
Igor Chubin
71b3a70e02
view=format
5 years ago
Igor Chubin
fb21802982
fmt/png.py: font-size
5 years ago
Igor Chubin
9f5edb963e
v2 html
5 years ago
Igor Chubin
094a506d51
lib/view/line.py cleanup
5 years ago
Igor Chubin
d5fae22cde
view/wttr.py: fixed padding
5 years ago
Igor Chubin
4d9a4138aa
lib/wttr_srv.py clean up
5 years ago
Igor Chubin
bbd031cb7b
removed make_wttr_in_png() and other wttr.in specific functions
5 years ago
Igor Chubin
7a8327c13f
moved parse_wttrin_png_name() to lib/parse_query.py
5 years ago
Igor Chubin
250a94c802
minor fixes of Arabic translation ( #430 )
5 years ago
Igor Chubin
a0fcbec776
enabled Arabic translation
5 years ago
beshoux
c05ee31fac
Add files via upload
5 years ago
Igor Chubin
a284ff9de4
v2: use different color for captions
5 years ago
Igor Chubin
a3bf070bb3
added iterm2 demo page
5 years ago
Joel Bennett
7801bd0468
Add PowerShell user agent
...
PowerShell web and rest cmdlets use an agent like `Mozilla/5.0, (Windows NT 10.0; Microsoft Windows 10.0.18362; en-US), PowerShell/7.0.0`
5 years ago
Igor Chubin
7565baaa85
use (query, parsed_query) args for views
5 years ago
Igor Chubin
8855e494cd
cache png using cache.py
5 years ago
Igor Chubin
f4c7463209
lib/fmt/png.py: removed internal caching
5 years ago
Igor Chubin
a85cebaa15
lib/cache.py: cache binary objects
5 years ago
Igor Chubin
0ac4790007
lib/wttr_srv.py refactoring
5 years ago
Igor Chubin
e2cebf74f2
store big lru cache objects in files
5 years ago
Igor Chubin
826cedf1f0
moved wttr.py to lib/view/
5 years ago
Igor Chubin
4ea5c74b03
extracted get_moon() to lib/view/moon.py
5 years ago
Igor Chubin
bb17342b06
import view, import format
5 years ago
Igor Chubin
f363315476
moved formats to format/
5 years ago
Igor Chubin
e29e5784da
moved views to view/
5 years ago
Igor Chubin
5a6f7b317c
v2 fix: show localtime
5 years ago
Igor Chubin
88340abec2
switched to python3
5 years ago
Igor Chubin
b98d919d3c
switched to new astral version
5 years ago
Igor Chubin
ac1be8305b
lib/location.py: python3 fixes
5 years ago
Igor Chubin
7dd42abe8d
added lib/extract_emoji.py
5 years ago
Igor Chubin
9e3b32a97d
use Han-fond for Han characters ( #422 )
5 years ago
Igor Chubin
c58a9ca8d1
updated twitter button
5 years ago
Igor Chubin
0764e069bb
added ia to the proxy langs and full translations
5 years ago
Igor Chubin
158a035af9
Merge pull request #416 from dustinkredmond/master
...
Added Interlingua translation
5 years ago
Igor Chubin
d38ba63bc3
Merge pull request #395 from iago-lito/french_translation
...
French translation in v2 file for #324
5 years ago
Dustin Redmond
4897191a44
Added Interlingua translation
5 years ago