-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change time interval rounding to 5s #15
base: main
Are you sure you want to change the base?
Conversation
@amosyuen what problem is this attempting to solve? Are you seeing inaccurate data with the 30 second interval? I'm new to this project, having just installed my first IotaWatt, but so far my data looks good. |
Is there any update on this? It appears the hard-coded 30 seconds instead of referencing the parameter The IoTaWatt built-in web UI has a 5 second refresh interval on displayed data. It should be possible to have a 5 second refresh interval instead of being confined to a 30 second interval. When will this be fixed? |
Actually I think this fix still has a bug in it - 30 seconds worked calculating the difference with an if/else because that is half a minute but I believe the correct way to make a 'diff' would be using mod-operator. I think you wanted |
25b6ad4
to
4481704
Compare
@mmiller7 Good catch, fixed the commit. Though not sure if maintainers are ever going to merge this fix in |
I have low expectations given how long its been open. Frustrating as I think this bug also would affect everything that uses it as a dependency. Unrelated, the friend I had helping me understand the Python pointed out the one warning that prints out also is missing the |
Change time interval rounding to 5s which matches iotawatts data log interval. See https://docs.iotawatt.com/en/master/query.html. This allows client to request data more frequently then every 30s.