Skip to content

Commit

Permalink
Correct returning timestamp as gust bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jbithell committed Apr 8, 2018
1 parent f675f11 commit 3ccab75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WeatherStationCoreLink/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def looprequest():
data["timestamp"] = round(time.time(),0)

windSpeeds[str(int(round(time.time())))] = data["windSpeed"] #add this data point to the gust speeds list
data["wind10MinGust"] = max(windSpeeds, key=windSpeeds.get)
data["wind10MinGust"] = max(windSpeeds.values()) #Return the largest value in the dictionary
except Exception as e:
log("[ERROR] Ignoring data because of error: " + str(e))
errorcount = errorcount + 1
Expand Down

0 comments on commit 3ccab75

Please sign in to comment.