Simple script written in Python for free use on your RaspberryPi with LedBorg, handy tool for monitoring your CPU usage in a simple way. I have implemented gradient of 10 colors, from blue(<10%)-green(<50%)-red(<90%) CPU usage.
- Raspberry Pi
- WiringPi2 Python module, installation instructions available here
- Python 2.7
- Some linux knowledge
sudo python ledborg-cpu-monitor.py
-
Copy ledborg-cpu-monitor.py in /usr/local/bin/ledborg #You can change the path
sudo cp ledborg-cpu-monitor.py /usr/local/bin/ledborg/
-
Make sure the script is executable
sudo chmod +x /usr/local/bin/ledborg/ledborg-cpu-monitor.py
-
Copy ledborg-cpu-monitor.sh in /etc/init.d #If you have changed default path of py script, you need to this file adding the correct path
sudo cp ledborg-cpu-monitor.sh /etc/init.d
-
Make sure the script is executable
sudo chmod +x /etc/init.d/ledborg-cpu-monitor.sh
-
Auto start at boot
sudo update-rc.d ledborg-cpu-monitor.sh defaults
To stop: `sudo /etc/init.d/ledborg-cpu-monitor.sh stop`
Bojan Vidanovic - Web Application Developer, in free time like to play with Raspberry Pi :) Follow me on:
Twitter
Google+