Closed bfonn closed 5 years ago
I have always used Raspbian Lite . Did you use no-binary all when installing? See the install doc.
On Sun, Jun 9, 2019, 2:52 PM bjornarfonn notifications@github.com wrote:
Have tested raspi-sump for a while now, and has been working great. Tried installing it a smaller and more lightweight build today using Raspbian Stretch Lite, but that doesn't work. Time formatting doesn't work, graph line is not displayed and the graph doesn't update with cronjob. Is there a known issue with some dependencies and Raspbian Lite?
Raspberry Pi 3 Python version 3.5.3 Running lighttpd on the same PI [image: screengrab raspi-sump] https://user-images.githubusercontent.com/19434691/59162841-407d8080-8af8-11e9-81a4-fca1001e8b0a.png
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alaudet/raspi-sump/issues/47?email_source=notifications&email_token=ABZWS5YSS5A66QCY26242ALPZVGO3A5CNFSM4HWMUKXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYOME5A, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZWS57GNFZZ7JMTQE7INGDPZVGO3ANCNFSM4HWMUKXA .
Yes, installed as per install doc. Formatted the sd card and re-installed everything again, still the same issue? Anything you could point me too in terms of troubleshooting?
So after some trials and errors, it seems that it failed to start running the process? I tried changing /etc/rc.local adding sudo; sudo /usr/local/bin/rsump.py &
It seems to be producing charts now, will try some more testing. Is this something you have any experience with?
usually with stretch you don't need to run sudo. you def don't run it from rc.local with sudo. You are already starting the process with elevated priviledges at that point.
What happens if you kill the process and then try and start it without.
sudo killall 09 rsump.py /usr/local/bin/rsump.py &
I would try it manually this way to see if it is throwing any errors. There is no way to tell what is going on right now. Anything in /home/pi/raspi-sump/logs?
hmm... i spoke to soon when i said i got it running. It did one graph and that was it. removed the sudo as your comments states, its starting with privileges.
Trying to killall gives me this output; pi@raspberrypi:~/raspi-sump/logs $ sudo killall 09 rsump.py 09: no process found rsump.py: no process found
Starting it manually using /usr/local/bin/rsump.py & then trying to generate new graph by doing $ rsumpwebchart.py does nothing.
Starting it manually and stopping it again gives me this output; pi@raspberrypi:~/raspi-sump/logs $ sudo killall 09 rsump.py 09: no process found rsump.py: no process found [1]+ Done /usr/local/bin/rsump.py
My logs folder is also empty, so there is no help there
Although when i start it manually, it produced a chart with a mismatch between the times. The time at the top of the chart is correctly stating 23.50, but the chart is saying 01 23:42. 01 I'm assuming is some of the latest addition where it states which host is pushing the data. but 23:42 says that is didn't actually get the latest update when producing the .png file.
Perhaps a matplotlib issue?
try running it not as a process to start. Simply run rsump.py Does it create a csv file in /home/pi/raspi-sump/csv? What subfolders are in your /home/pi/raspi-sump/csv file?
Can you actually take a reading? Try accessing the sensor directly.
try;
hcsr04.py -t 17 -e 27
Those are my trig and echo pins(17 and 27) Make sure to enter the pins you are using and have configured in your raspisump.conf file.
It works when adding rsump.py to crontab with 1minute intervals. It's a weird issue, as basically the startup file is doing the same thing, the difference being its starting as a continual process rather than starting occasionally.
So my crontab is running rsump.py every minute, that produces a sample from the sensor every minute, and then I am generating a chart every 10 minutes (will change this when deployed outside) this all seems to work. So, I guess I'm happy with this so far.
/1 /usr/local/bin/rsump.py /10 /usr/local/bin/rsumpwebchart.py /5 * sudo /usr/local/bin/rsumpmonitor.py
If you launch it as a process manually does it work as intended? Or is it just when you use rc.local?
Have tested raspi-sump for a while now, and has been working great. Tried installing it a smaller and more lightweight build today using Raspbian Stretch Lite, but that doesn't work. Time formatting doesn't work, graph line is not displayed and the graph doesn't update with cronjob. Is there a known issue with some dependencies and Raspbian Lite?
Raspberry Pi 3 Python version 3.5.3 Running lighttpd on the same PI