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
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
859756cd8b
Merge pull request #541 from amekare/master
...
added spanish translation corrections
4 years ago
Andrea Torres
280675775d
added spanish translation corrections
4 years ago
Igor Chubin
df4e145ffb
Add link to doc/terminal-images.md to README
4 years ago
Igor Chubin
3ecc3a8273
Add doc/
4 years ago
Igor Chubin
848f50574f
Add v3.wttr.in description
4 years ago
Igor Chubin
5529a4f2f0
Merge pull request #537 from oersen/typo-fix-tr
...
Fix a typo and alignments in Turkish translations
4 years ago
Oğuz Ersen
c0327757d4
Fix a typo and alignments in Turkish translations
4 years ago
Igor Chubin
32d0a4b61f
Merge pull request #534 from amadeogarcia/patch-1 ( #533 )
...
Patch 1 - Spanish translation
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
Igor Chubin
a35a0f678c
Merge pull request #532 from elerch/metno
...
initial metno implementation
4 years ago
Igor Chubin
8e87bcc731
Remove "Prob. of prep" ( #485 )
4 years ago
Igor Chubin
d76d2b1314
use pip --no-cache-dir in Dockerfile ( #504 )
4 years ago
Emil Lerch
17e6e6c218
initial metno implementation
4 years ago
Igor Chubin
54d71beea2
Merge pull request #524 from SuperSandro2000/docker-review
...
Docker review
4 years ago
Sandro Jäckel
399c4d25ef
Document files that should be mounted in Docker
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