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:
parent
0fa5b07d4b
commit
16bfda431c
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user