1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-09-03 21:57:47 -04:00

Merge pull request #186 from pheezer/master

Use OpenWeatherMap One Call v3.0 API
This commit is contained in:
Walter A. Boring IV 2025-03-14 07:52:18 -04:00 committed by GitHub
commit ad1e62b17c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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