Hi All,
Like many before me, I'm at am impasse and I'm coming to all of you for help. Initially, I set up Raspberry Pints without the flow meters, reasoning I could figure out the difference between the two installs when the time came and add what was needed. So, I'm now at that point, and making strides but still finding obstacles as well. My chief question is do I start over and make a clean install using the "with flow meters" (and if so, what is the best way to do this?), or is there a fix to get me to the end? Here is what I can share.
Along my way, I bungled through the initial install, was trying to add the stuff for flow meters to my existing install, and came to a point where I was getting an error message that there was no config.php file in /var/www/includes. I mention this because in my bungling, it appears I must have installed RaspberryPints in the /var/www/ location, as well as /var/www/html/ location. I copied the config.php file from the /var/www/html/ location to the other, and things move along. But, because I did not take notes on my original set up of Pints, I'm not sure which location I am using, nor how to determine this. However, as the /html location had the config.php file and the other location didn't, and it was noted as an error, then I take it to mean my Pints is running from /var/www. Is that a fair conclusion? Do I need to do anything about seeming to have it in two locations?
I worked through the installation using an Arduino Uno reposted on page 245 of this thread, and was able to get to the point of having the Uno linked.
Next, I originally had some trouble getting the flowmon file to the /etc/init.d location, and for it to be recognized. I was able to get past that, and when I boot up and check for its status, I get:
● flowmon.service - LSB: Put a short description of the service here
Loaded: loaded (/etc/init.d/flowmon)
Active: inactive (dead)
Do I need to do something to insure it is running after every boot up?
When I start it and check status, I see:
● flowmon.service - LSB: Put a short description of the service here
Loaded: loaded (/etc/init.d/flowmon)
Active: active (running) since Sat 2017-03-11 23:03:17 CST; 1min 16s ago
Process: 2082 ExecStart=/etc/init.d/flowmon start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/flowmon.service
└─2088 /usr/bin/python /var/www/python/flow_monitor.py
Mar 11 23:03:17 raspberrypi flowmon[2082]: Starting system RPFlowMon daemon:.
Mar 11 23:03:17 raspberrypi systemd[1]: Started LSB: Put a short description....
Hint: Some lines were ellipsized, use -l to show in full.
I'm not sure all is well there or not, as it has more than what I see in instructions elsewhere.
Finally, I found the following earlier in thread (along with tons of other useful hints).
Ok, if you've installed the full 2.0.1 kit, one way to debug the meters is to:
- Stop the Flowmon service:
Code:
$ sudo /etc/init.d/flowmon stop
Run the flow_monitor script in a terminal:
Code:
$ sudo python /var/www/python/flow_monitor.py
Leave that running while you blow through your meter(s).
It should display a terse (3 short lines iirc) pour packet in response to meter rotation. Get that to work first.
Once you're getting pour messages you will need to alter a constant in pours.php to account for the non-Swissflow SF800 meter...
Cheers!
When I do the latter, I see the following:
There are no windows in the stack
Invalid window '%1'
Usage: windowactivate [options] [window=%1]
--sync - only exit once the window is active (is visible + active)
If no window is given, %1 is used. See WINDOW STACK in xdotool(1)
Okay, so I just vomited all my challenges out there. Sorry. Any advice would be much appreciated.