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

support for deadband in v2 #34

Open
vdwpsmt opened this issue Jan 28, 2020 · 4 comments
Open

support for deadband in v2 #34

vdwpsmt opened this issue Jan 28, 2020 · 4 comments

Comments

@vdwpsmt
Copy link

vdwpsmt commented Jan 28, 2020

Hi,

Are there plans for adding deadband facilities, similar to the first version of the logger?

kind regards
Pascal

@coussej
Copy link
Owner

coussej commented Jan 30, 2020

Hi Pascal,

I removed that functionality because I thought it was not usefull, as influx has such good compression that storage shouldn't really be an issue.

Could you perhaps elaborate on your use-case?

@vdwpsmt
Copy link
Author

vdwpsmt commented Jan 31, 2020

If you have for instance a temperature sensor with an accuracy of +- 1% or +-0.5°C and you have a process where in 99% of the time the temperature is constant. You only want to log the changes caused by the process, not the small fluctuations that are caused by a sensor inaccuracy.
This would make a whole lot of difference in data traffic, storage, query performance, hardware etc, Certainly if you have xx sensors on xx machines.
It simply seems like good practice to avoid "useless" data.
Maybe oldschool thoughts? ;-)

@lifeisawavesorideit
Copy link

Hi guys,

first of all I would like to thank @coussej for puttin in the effort and creating this logger.

On this point I must agree with @Scelle, it would be interesting to have an option to save only the relevant data by that I mean high value changes not caused by sensor inaccuracy. Certainly this days storage costs almost nothing but it would be ideal to use less insead of using more.

@samborambo
Copy link

I suggest that adding deadband isn't the best solution. Your sensors might have an absolute accuracy of +/-1% but the relative accuracy is useful for sub-sampling. That 'noise' in between your useful measurement periods can be down-sampled to give much better accuracy of the useful data. You're better off pouring the raw data into a short term bucket and running a continuous query in Flux to down-sample the readings into a useful set.

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

No branches or pull requests

4 participants