Skip to content
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

Use 10 minute average instead of instantaneous data #50

Open
skalnik opened this issue Sep 10, 2020 · 4 comments
Open

Use 10 minute average instead of instantaneous data #50

skalnik opened this issue Sep 10, 2020 · 4 comments

Comments

@skalnik
Copy link
Owner

skalnik commented Sep 10, 2020

Someone requested we use the 10 minute average instead of the latest value. I think that'd be good, but I believe we'll need to poll ThingSpeak instead of PA for that. Unsure how hard that'd be to implement, but I wanted to make note of it.

@obra
Copy link
Collaborator

obra commented Sep 10, 2020

Is there a -reason- they want the 10 minute averages?

One -possible- alternative to using the thingspeak API would be to compute our own rolling 5 or 10 minute average if we have the data and the sensor we're polling hasn't changed.

@obra
Copy link
Collaborator

obra commented Sep 10, 2020

(I don't believe that there's no reason to want 10 minute averages or that those averages aren't better. I am absolutely not skilled in that side of things. But I'm a big fan of documenting the "why" of changes.

@skalnik
Copy link
Owner Author

skalnik commented Sep 10, 2020

They said they preferred the 10 minute average to avoid sudden spikes/dips and smooth those out. I think that's fair, but also not a huge problem. I promised I'd document this but I'm not sure it's a huge priority.

@obra
Copy link
Collaborator

obra commented Sep 10, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants