-
Notifications
You must be signed in to change notification settings - Fork 3
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
Data gets duplicated 60x in influxdb? #11
Comments
Yes, the returned data from smarthub is in So if I were to allow for customization, it would be in the unit returned. I would want to have a metric for both But technically speaking, since the unit is watts and not watt-hours, the metric is not duplicated, it's just averaged since there is only hourly data to extrapolate from. Since the metric is in watts, the equation to accumulate it in prometheus or victoriametrics would be |
After importing the data, I noticed that the raw data included the same values for each minute of the hour. See screenshot:
The data returned from SmartHub (for me) seems to be hourly, see sample debug output:
I modified the local code to change the WriteMetrics function to write one point per hour which fixed the problem for me, and now I have single row for each hour with hourly value.
I'm not sure if my utility provider returns different data vs. yours, but some customization here would be nice to control the point interval.
The text was updated successfully, but these errors were encountered: