1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-09-02 13:17:54 -04:00

use OWM onecall v3.0

This commit is contained in:
Philip Duvall 2025-03-01 09:29:05 -07:00
parent 0fa5b07d4b
commit 16bfda431c

View File

@ -67,7 +67,7 @@ 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,