diff --git a/pi_temp.py b/pi_temp.py index 7bc4081..3a22172 100755 --- a/pi_temp.py +++ b/pi_temp.py @@ -128,7 +128,7 @@ def history(): timestep_minutes = 1 # Calculate minutes for each streak streak_minutes = streak_lengths(time_series_temperature_values)*timestep_minutes - streak_minutes = [x-1 for x in streak_minutes] #Turn this into a duration + streak_minutes = [x-1 for x in streak_minutes if x > 2] #Turn this into a duration, filter out < 2 # Send output to page return render_template("history.html", timezone = timezone, @@ -217,4 +217,4 @@ def validate_date(d): return False if __name__ == "__main__": - app.run(host='0.0.0.0', port=8080) \ No newline at end of file + app.run(host='0.0.0.0', port=8080)