Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # create rrd graphs
- # 10 minute power graph
- rrdtool graph /var/www/currentcost/graphs/power-10min.png \
- --start end-10m --width 700 --end now --slope-mode \
- --no-legend --vertical-label Watts --lower-limit 0 \
- --alt-autoscale-max \
- DEF:Power=powertemp.rrd:Power:AVERAGE LINE3:Power#0000FF:Average > /dev/null
- # 1hr graph
- rrdtool graph /var/www/currentcost/graphs/power-60min.png \
- --start end-60m --width 700 --end now --slope-mode \
- --no-legend --vertical-label Watts --lower-limit 0 \
- --alt-autoscale-max \
- DEF:Power=powertemp.rrd:Power:AVERAGE LINE3:Power#0000FF:Average > /dev/null
- # 1 day power graph
- rrdtool graph /var/www/currentcost/graphs/power-day.png \
- --start end-1d --width 700 --end now --slope-mode \
- --no-legend --vertical-label Watts --lower-limit 0 \
- --alt-autoscale-max \
- DEF:Power=powertemp.rrd:Power:AVERAGE \
- DEF:PowerMin=powertemp.rrd:Power:MIN \
- DEF:PowerMax=powertemp.rrd:Power:MAX \
- CDEF:PowerRange=PowerMax,PowerMin,- \
- LINE1:PowerMin: \
- AREA:PowerRange#0000FF11:"Error Range":STACK \
- LINE1:PowerMin#0000FF33:"Min" \
- LINE1:PowerMax#0000FF33:"Max" \
- LINE1:Power#0000FF:"Average" > /dev/null
- # 1 week power graph
- rrdtool graph /var/www/currentcost/graphs/power-week.png \
- --start end-7d --width 700 --end now --slope-mode \
- --no-legend --vertical-label Watts --lower-limit 0 \
- --alt-autoscale-max \
- DEF:Power=powertemp.rrd:Power:AVERAGE \
- DEF:PowerMin=powertemp.rrd:Power:MIN \
- DEF:PowerMax=powertemp.rrd:Power:MAX \
- CDEF:PowerRange=PowerMax,PowerMin,- \
- LINE1:PowerMin: \
- AREA:PowerRange#0000FF11:"Error Range":STACK \
- LINE1:PowerMin#0000FF33:"Min" \
- LINE1:PowerMax#0000FF33:"Max" \
- LINE1:Power#0000FF:"Average" > /dev/null
- # ################# TEMPERATURE GRAPHS ######################
- # 60 min temp graph
- #rrdtool graph /var/www/currentcost/graphs/temp-hour.png --start end-60m \
- --width 700 --end now --slope-mode --no-legend --vertical-label Celcius \
- --lower-limit 0 --alt-autoscale-max \
- DEF:Power=powertemp.rrd:Temperature:AVERAGE LINE3:Power#0000FF:Average > /dev/null
- # 1 day temperature
- rrdtool graph /var/www/currentcost/graphs/temp-day.png --start end-1d \
- --width 700 --end now --slope-mode --no-legend --vertical-label Celcius \
- --lower-limit 0 --alt-autoscale-max \
- DEF:Power=powertemp.rrd:Temperature:AVERAGE LINE3:Power#0000FF:Average > /dev/null
- # 1 week temperature
- rrdtool graph /var/www/currentcost/graphs/temp-week.png --start end-7d \
- --width 700 --end now --slope-mode --no-legend --vertical-label Celcius \
- --lower-limit 0 --alt-autoscale-max \
- DEF:Power=powertemp.rrd:Temperature:AVERAGE LINE3:Power#0000FF:Average > /dev/null
- # 1 month temperature
- rrdtool graph /var/www/currentcost/graphs/temp-month.png --start end-30d \
- --width 700 --end now --slope-mode --no-legend --vertical-label Celcius \
- --lower-limit 0 --alt-autoscale-max \
- DEF:Power=powertemp.rrd:Temperature:AVERAGE LINE3:Power#0000FF:Average > /dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement