I am in need of some help setting up pulse counting to determine the hourly and daily water usage. I currently have a water meter that outputs 2 pulses per gallon and the output is connected to an Insteon 2450 i/O Linc. I know is is connected correctly as the light flashes when water is being used. What I would like to do is be able to set up a script to track the water usage hourly and daily and display it in a format similar to the following (see image) When entering a date it display the hourly amounts at the top graph and the daily for the month below.
I'm kind of new to using python and would need some help getting started and how to accomplish this. I have search online but did not really find anything. One option is to use Grafana but I still need to log the hourly and daily amount and store the data. That is the first part of the project. Once that is completed then I can work on the display options.
The graphic comes from a device called irrigation caddy. Mine is starting to fail and no longer reliable. I am not sure how to hack the web interface to determine how things are scripted. If someone can tell me how to do that then that would also be a solution.