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

prescaler #14

Open
mauromago opened this issue Apr 1, 2020 · 3 comments
Open

prescaler #14

mauromago opened this issue Apr 1, 2020 · 3 comments
Assignees
Labels

Comments

@mauromago
Copy link

Hi
I am thinking to modify your node adding a prescaler to counter. I implemented it on my flows with 5 node and I should like to put order in my flows simplify it.
Anyway since it is a small variation I should like to know if it is OK for you or if you prefer to add it to your original one. In this second way I will give you all details on how I think it should works.
All best

@dkern
Copy link
Owner

dkern commented Apr 3, 2020

Hi

I don't even understand what a prescaler is or should do?! Feel free to make a pull request if this is a small change, i will review it then.

@dkern dkern self-assigned this Apr 3, 2020
@dkern dkern added the question label Apr 3, 2020
@mauromago
Copy link
Author

OK. I will. Just need to study a little more the git system, I am not so used to it :-)
All best

@mauromago
Copy link
Author

Just to start to let you understand the idea. This is what is working now and should be modified by one node updated.
immagine
fist counter count for 1 and the switch node stop all message before the reached value. It also drive the reset to previous counter.
The following counter counts the carry-over and the function just multiply the value for the same amount divided by the first part. Change node just move the value from count to payload.
In this way the value counted match with right counting but is done less times.
Why that? I use your node in my home system. I have some sensor that just send me a message (MQTT) when is time. e.g the water counter send a message any liter flows through the counter. The energy counter blink a led any W/h produced (or used). in this way the plot of full day become too dense of point and rendering it become too slow. also in some type of plot the plot itself become too confused. Use just a point any X is what I have done in this flow.
Simply adding a value in the node and do it on code is what I should like to do.
Maybe is possible to consider two output one prescaled and one standard.
All best

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

No branches or pull requests

2 participants