Hi!
Thanks for sharing! I managed to get your code running, altered it to log to a round robin database instead of through Mosquitto, and I am now graphing my water usage!
I have posted a description of my setup and code (Swedish I'm afraid, google translate is your friend - everyone except @gol ) to http://blog.m.nu/vattenmatning-med-raspberry-pi-och-webkamera/
Thanks and Regards,
Jim, Linköping