fix meteo precipitation probability

fixes https://github.com/SpudGunMan/meshing-around/issues/329

Co-Authored-By: va3vbe <209848734+va3vbe@users.noreply.github.com>
This commit is contained in:
Kellyandva3vbe committed 2026-08-11 20:47:31 -07:00
1 parent 601e876527
commit b9a2f56e39
1 file changed
+2 -2
+2 -2
View File
@@ -174,9 +174,9 @@ def get_wx_meteo(lat=0, lon=0, unit=0):
# check for precipitation
if daily_precipitation_hours[i] > 0:
if unit == 0:
weather_report += "Precip: " + str(round(daily_precipitation_probability_max[i],2)) + "in, in " + str(round(daily_precipitation_hours[i],2)) + " hours. "
weather_report += "Precip: " + str(round(daily_precipitation_probability_max[i],2)) + "% chance, in " + str(round(daily_precipitation_hours[i],2)) + " hours. "
else:
weather_report += "Precip: " + str(round(daily_precipitation_probability_max[i],2)) + "mm, in " + str(round(daily_precipitation_hours[i],2)) + " hours. "
weather_report += "Precip: " + str(round(daily_precipitation_probability_max[i],2)) + "% chance, in " + str(round(daily_precipitation_hours[i],2)) + " hours. "
else:
weather_report += "No Precip. "