bojanvidanovic / LedBorg-CPU-Monitor

CPU usage monitor using LedBorg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LedBorg CPU Monitor on RaspberryPi

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.

Requirements

    • Raspberry Pi
      Python 2.7
      Some linux knowledge
  • Test

    sudo python ledborg-cpu-monitor.py
    

    Installation

    1. 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/
      
    2. Make sure the script is executable

      sudo chmod +x /usr/local/bin/ledborg/ledborg-cpu-monitor.py
      
    3. 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
      
    4. Make sure the script is executable

      sudo chmod +x /etc/init.d/ledborg-cpu-monitor.sh
      
    5. Auto start at boot

      sudo update-rc.d ledborg-cpu-monitor.sh defaults
      

    Usage

    To start: `sudo /etc/init.d/ledborg-cpu-monitor.sh start`
    To stop: `sudo /etc/init.d/ledborg-cpu-monitor.sh stop`

    Author

    Bojan Vidanovic - Web Application Developer, in free time like to play with Raspberry Pi :) Follow me on:
    Twitter
    Google+

    About

    CPU usage monitor using LedBorg


    Languages

    Language:Shell 62.4%Language:Python 37.6%