When there's a failed weather update (which almost happens every hour for me) you have an issue where you shift the weather values (copy_len)
However the weather graph always assumes all 24/25 values are available. Some values then become 0. This messed up the graph drawing because now there are 0's in hourly (and pts and apt). You need to pass in the number of valid values (copy_len) to the graph UI and change your for loops to only look at the valid values.
I really need to look into why almost every hour the weather update fails.
When there's a failed weather update (which almost happens every hour for me) you have an issue where you shift the weather values (copy_len)
However the weather graph always assumes all 24/25 values are available. Some values then become 0. This messed up the graph drawing because now there are 0's in hourly (and pts and apt). You need to pass in the number of valid values (copy_len) to the graph UI and change your for loops to only look at the valid values.
I really need to look into why almost every hour the weather update fails.