Update locationdata.py

This commit is contained in:
SpudGunMan
2024-08-07 21:26:54 -07:00
parent 0514d51aea
commit 4f24701460
+4 -1
View File
@@ -97,7 +97,10 @@ def get_weather(lat=0, lon=0, unit=0):
if float(lat) == 0 and float(lon) == 0:
return NO_DATA_NOGPS
# get weather data from NOAA units for metric
# get weather data from NOAA units for metric unit = 1 is metric
if use_metric:
unit = 1
weather_url = "https://forecast.weather.gov/MapClick.php?FcstType=text&lat=" + str(lat) + "&lon=" + str(lon)
if unit == 1:
weather_url += "&unit=1"