mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-06-24 20:11:20 +02:00
Update locationdata.py
This commit is contained in:
@@ -207,8 +207,8 @@ def getWeatherAlerts(lat=0, lon=0):
|
||||
if float(lat) == 0 and float(lon) == 0:
|
||||
return NO_DATA_NOGPS
|
||||
|
||||
alert_url = "https://api.weather.gov/alerts/active.atom?point=" + str(lat) + "," + str(lon)
|
||||
#alert_url = "https://api.weather.gov/alerts/active.atom?area=WA"
|
||||
alert_url = "https://api.weather.gov/alerts/active?point=" + str(lat) + "," + str(lon)
|
||||
#alert_url = "https://api.weather.gov/alerts/active?area=WA"
|
||||
|
||||
try:
|
||||
alert_data = requests.get(alert_url, timeout=urlTimeoutSeconds)
|
||||
|
||||
Reference in New Issue
Block a user