-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I just noticed (after receiving the energy usage email reports for many weeks!) that the total time calculation seems to be incorrect. It looks like it uses six days (the number of days between the first and last) rather than seven days (the number of days in the week).
For example, this is from my latest email. Given a total usage of 70.8 kWh I'd expect 70.8 / 7 = 10.1 per day, not 11.8!
Total Use: 70.8 kWh
11.8 kWh per day
I think that that the following two lines are incorrect. I'm not sure what the cleanest fix is (I'll leave that to you unless you'd like a suggestion). Thanks!
| $totaltime = ($data[6][0] - $data[0][0])*0.001; |
| $totaltime = ($use_data[6][0] - $use_data[0][0])*0.001; |
Metadata
Metadata
Assignees
Labels
No labels