PyRadmon install and set up on Raspberry Pi (Wheezy Raspbian)

More
6 years 5 months ago #3736 by jhackeur
My bad.... Indeed, working fine now!
Thanks !!

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #4229 by jnissen
Transitioned to a Raspberry Pi Model 3B. The WiFi seems to be significantly more stable with both 2.4GHz and 5GHz bands supported. The good news is the Python program transitioned without any edits at all. :)

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #4242 by pilovis
Tested on Raspberry Pi1 model B, if you launch it on foreground (/usr/bin/python /root/PyRadmon.py), it works,
but if you launch it in background (/usr/bin/python /root/PyRadmon.py > /dev/null 2>&1 &), the program stops sending any data and dies after a while.
Also if you launch it on startup (/etc/rc.local), the program stays in background, but it does not send data at all.

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago - 5 years 4 months ago #4243 by ThibmoRozier
That's a rather odd way of running stuff on the background..
Maybe you should look into services. Not sure what you have, but look at either SystemD service scripts or use the good old /etc/init.d/ script
Let me have a look..
Last edit: 5 years 4 months ago by ThibmoRozier.

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #4244 by pilovis
It seems I have found a solution:

crontab -e

@reboot /usr/bin/python /root/PyRadmon.py > /dev/null 2>&1

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago - 5 years 4 months ago #4245 by pilovis
No way, it doesn't work, it only works if you launch it in foreground, it doesn't matter if you launch it as a service, from /etc/rc.local or from crontab @startup, it simply dies after a few seconds.
I tested both, 1.2.0 and 1.3.0 versions.
Last edit: 5 years 4 months ago by pilovis.

Please Log in or Create an account to join the conversation.

Moderators: Gamma-Man
Time to create page: 0.259 seconds
Powered by Kunena Forum
Everything's free. Please support us by considering a donation. Log in first!
Solar powered Raspberry Pi 4 server stats: CPU 35% Memory 14% Swap 3% CPU temp=60.8'C Uptime 2 Days