2016 Jan 23, 06:42 PM
Not really sure if this is a feature request or a plugin suggestion, sorry if I mispost. I created a github issue
https://github.com/Dan-in-CA/SIP/issues/143
to add flow metering into SIP:
"Thanks for this wonderful application.
I have a Seed Studio flow meter http://www.seeedstudio.com/depot/G12-Wat...p-635.html hooked into my raspberry pi.
I am using wiringpi like the code posted here https://www.raspberrypi.org/forums/viewt...37&t=94656 to set up an interrupt handler and increment a counter. I see how I can write this as a so and read the counter from Python. I would like to get feedback in SIP about overall flow rate and expected vs actual flow rate (to detect leaks). What would be a strategy to get this into SIP? I see the way the clock time is updated, should I hook into that and update another div under it?
Note that I have not calibrated the flow meter, from some preliminary tests it seems the meter peaks out at about 100 pulses per second, so this might not be an accurate way to measure water quantity rather a qualitative go-no go check of the system, an arduino and maybe a better meter may be needed to get accurate measurements, but that is a different issue."
In response, someone suggested using the functions 'callback' and 'tally' from the pigpio interface library instead of a c-function
Any other thoughts?
Matti
https://github.com/Dan-in-CA/SIP/issues/143
to add flow metering into SIP:
"Thanks for this wonderful application.
I have a Seed Studio flow meter http://www.seeedstudio.com/depot/G12-Wat...p-635.html hooked into my raspberry pi.
I am using wiringpi like the code posted here https://www.raspberrypi.org/forums/viewt...37&t=94656 to set up an interrupt handler and increment a counter. I see how I can write this as a so and read the counter from Python. I would like to get feedback in SIP about overall flow rate and expected vs actual flow rate (to detect leaks). What would be a strategy to get this into SIP? I see the way the clock time is updated, should I hook into that and update another div under it?
Note that I have not calibrated the flow meter, from some preliminary tests it seems the meter peaks out at about 100 pulses per second, so this might not be an accurate way to measure water quantity rather a qualitative go-no go check of the system, an arduino and maybe a better meter may be needed to get accurate measurements, but that is a different issue."
In response, someone suggested using the functions 'callback' and 'tally' from the pigpio interface library instead of a c-function
Any other thoughts?
Matti