mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-10-30 22:01:57 +01:00
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:
1 parent
601e876527
commit
b9a2f56e39
1 file changed
+2
-2
+2
-2
@@ -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. "
|
||||
|
||||
|
||||
Reference in new issue
Block a user