Pachube rules

The whole Pachube concept is amazing, so many cool things made so simple! (...well, some of them not simple enough for me...)

The pachube feed is on. I have been struggling for a while with the xml system of putting data to the pachube site, finally decided to track back and start with the more simple csv system. And so this very simple sh script is uploading the temperature every 300 seconds:

#!/bin/sh
while [ 1 ]
do
temp=$(grep -m 1 "temp" /dev/ttyS0|cut -d "=" -f 2)
curl --request PUT --header "X-PachubeApiKey: your-key-here" --data "$temp" "http://www.pachube.com/api/1931.csv"
sleep 300
done


This is an example of the very cool things you can find in the Pachube site:



Comments

Popular posts from this blog

openwrt stuff

The temperature sensor

The Goal