Update locationdata.py

limit noaa which just gave me a 11 digit richter ooof
This commit is contained in:
SpudGunMan
2025-09-13 17:33:18 -07:00
parent d589d3e155
commit 7ca8b6793a
+2 -1
View File
@@ -804,6 +804,7 @@ def checkUSGSEarthQuake(lat=0, lon=0):
for event in quake_xml.getElementsByTagName("event"):
mag = event.getElementsByTagName("magnitude")[0]
mag_value = float(mag.getElementsByTagName("value")[0].childNodes[0].nodeValue)
mag_value = round(mag_value, 1)
if mag_value > largest_mag:
largest_mag = mag_value
# set description text
@@ -812,7 +813,7 @@ def checkUSGSEarthQuake(lat=0, lon=0):
if quake_count == 0:
return NO_ALERTS
else:
return f"{quake_count} quakes in last {history} days within {radius}km of you largest was {largest_mag}. {description_text}"
return f"{quake_count} 🫨quakes in last {history} days within {radius}km of you largest was {largest_mag}. {description_text}"
howfarDB = {}
def distance(lat=0,lon=0,nodeID=0, reset=False):