1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-06-13 20:02:26 -04:00

Compare commits

...

3 Commits

Author SHA1 Message Date
ad1e62b17c
Merge pull request #186 from pheezer/master
Use OpenWeatherMap One Call v3.0 API
2025-03-14 07:52:18 -04:00
Philip Duvall
bd83e53838
Merge branch 'master' into master 2025-03-07 22:06:44 -07:00
Philip Duvall
16bfda431c use OWM onecall v3.0 2025-03-01 09:29:05 -07:00

View File

@ -66,8 +66,8 @@ def fetch_openweathermap(api_key, lat, lon, units='metric', exclude=None):
exclude = 'minutely,hourly,daily,alerts'
try:
url = (
'https://api.openweathermap.org/data/2.5/onecall?'
'lat={}&lon={}&appid={}&units={}&exclude={}'.format(
"https://api.openweathermap.org/data/3.0/onecall?"
"lat={}&lon={}&appid={}&units={}&exclude={}".format(
lat,
lon,
api_key,