From ad1d42c736413873ca48e8e5495c237fdb376390 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 26 Jun 2024 13:55:26 -0700 Subject: [PATCH] dependent on position when fuzzed .. --- locationdata.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/locationdata.py b/locationdata.py index e732734..e51df4a 100644 --- a/locationdata.py +++ b/locationdata.py @@ -84,10 +84,12 @@ def get_weather(lat=0, lon=0, unit=0): if float(lat) == 0 and float(lon) == 0: return NO_DATA_NOGPS + weather_url = "https://forecast.weather.gov/MapClick.php?FcstType=text&lat=" + str(lat) + "&lon=" + str(lon) if unit == 1: - weather_url += "&unit=0" + weather_url += "&unit=1" + try: weather_data = requests.get(weather_url, timeout=URL_TIMEOUT) if not weather_data.ok: