We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f675f11 commit 3ccab75Copy full SHA for 3ccab75
WeatherStationCoreLink/main.py
@@ -108,7 +108,7 @@ def looprequest():
108
data["timestamp"] = round(time.time(),0)
109
110
windSpeeds[str(int(round(time.time())))] = data["windSpeed"] #add this data point to the gust speeds list
111
- data["wind10MinGust"] = max(windSpeeds, key=windSpeeds.get)
+ data["wind10MinGust"] = max(windSpeeds.values()) #Return the largest value in the dictionary
112
except Exception as e:
113
log("[ERROR] Ignoring data because of error: " + str(e))
114
errorcount = errorcount + 1
0 commit comments