Skip to content

Instantly share code, notes, and snippets.

@hsiboy
Created March 4, 2014 18:04
Show Gist options
  • Save hsiboy/9352115 to your computer and use it in GitHub Desktop.
Save hsiboy/9352115 to your computer and use it in GitHub Desktop.
Create rrd database
#!/bin/bash
rrdtool create multirPItemp.rrd --step 300 \
DS:in_temp:GAUGE:600:-30:50 \
DS:out_temp:GAUGE:600:-30:50 \
RRA:AVERAGE:0.5:1:12 \
RRA:AVERAGE:0.5:1:288 \
RRA:AVERAGE:0.5:12:168 \
RRA:AVERAGE:0.5:12:720 \
RRA:AVERAGE:0.5:288:365</pre>
The graphs are generated every five minutes from a cron job with with this script
<pre class="brush: bash">#!/bin/bash
RRDPATH="/home/pi/temperature/"
RAWCOLOUR="#FF0000"
TRENDCOLOUR="#0000FF"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment