Tuesday, March 5, 2013

Raspberry Pi Performance to Pachube version 2.0 [UPDATED]

What's this?

rpi2pachube is a set of scripts written in Bash that gather and push performance data from your Raspberry Pi to Pachube.

My own feed


  1. Raspberry Pi connected to the Internet.
  2. Debian-flavor "ifstat command". Run "ifstat -v"; You should have version 1.1.
  3. realpath command for setup.sh. Run "realpath --version" to see if you have it installed. Use apt-get or pacman to install it depending on which linux distro you are using.
Arch Linux users: You WILL have to download the source code for ifstat and compile it yourself if you want to monitor a network interface with this script. Arch Linux's ifstat command output format is significantly different from Debian's ifstat. You will otherwise have to modify rpi2pachube to work with whatever flavor of ifstat Arch Linux uses if you do not wish to do this.

How does it work?

rpi2pachube gathers performance data from your Raspberry Pi (temperature, load, network throughput, etc.) at 5 minute intervals and pushes this data to Pachube. From Pachube, you can watch how your Pi is doing from basically anywhere in the world.

What's new in version 2.0?

  • Temperature can now be pushed to Pachube in Fahrenheit.
  • Enable/disable monitoring of any performance value.
  • Monitor multiple network interfaces.

Where can I get it?

Remove any files from any previous versions before installing version 2.0.

There's two ways to get rpi2pachube v2.0.
  1. Cloning the Github repository and switching to tag v2.0
    git clone https://github.com/Cameri/iot_push.git
    git checkout v2.0
  2. Download v2.0 from Github using wget:
    wget https://github.com/Cameri/iot_push/archive/v2.0.tar.gz
    tar xzf v2.0.tar.gz
If you'd like to run the development version of rpi2pachube, simply clone the Github repository without running the command "git checkout v2.0".
After that, run the configuration utility:
cd rpi2pachube*

Now rpi2pachube.sh will be executed every 5 minutes in the background. Take a look at my feed, populated with performance data from my own Raspberry Pi.

Found a bug or have an idea?

If you have found a bug or you have an idea to enhance rpi2pachube, please open a new issue on the Github repository.