[rrd-users] Why is this happening?
Mike_K
mike at kalist.ca
Tue Feb 23 16:14:28 CET 2016
https://dl.dropboxusercontent.com/u/151622099/basement_h.png
<https://dl.dropboxusercontent.com/u/151622099/basement_h.png>
https://dl.dropboxusercontent.com/u/151622099/basement_h.png
#!/bin/bash
rrdtool create house.rrd --start N --step 150 \
DS:garageIN:GAUGE:300:U:U \
DS:garageRTN:GAUGE:300:U:U \
DS:bedroomIN:GAUGE:300:U:U \
DS:bedroomRTN:GAUGE:300:U:U \
DS:floorIN:GAUGE:300:U:U \
DS:floorRTN:GAUGE:300:U:U \
DS:watertankIN:GAUGE:300:U:U \
DS:watertankRTN:GAUGE:300:U:U \
DS:loopIN:GAUGE:300:U:U \
DS:loopRTN:GAUGE:300:U:U \
DS:headerIN:GAUGE:300:U:U \
DS:headerRTN:GAUGE:300:U:U \
DS:basementIN:GAUGE:300:U:U \
DS:basementRTN:GAUGE:300:U:U \
DS:mechanicalRM:GAUGE:300:U:U \
RRA:MIN:0:360:576 \
RRA:MIN:0:30:576 \
RRA:MIN:0:7:576 \
RRA:AVERAGE:0:360:576 \
RRA:AVERAGE:0:30:576 \
RRA:AVERAGE:0:7:576 \
RRA:AVERAGE:0:1:576 \
RRA:MAX:0:360:576 \
RRA:MAX:0:30:576 \
RRA:MAX:0:7:576
# Update database
rrdtool update house.rrd
N:$temp1:$temp2:$temp3:$temp4:$temp5:$temp6:$temp7:$temp8:$temp9:$temp10:$temp11:$temp12:$temp13:$temp14:$temp15
#echo -e Garage In $temp1"\n"Garage Return $temp2"\n""\n"Bedroom IN
$temp3"\n"Bedroom Return $temp4"\n""\n"Main Floor IN $temp5"\n"Main Floor
RTN $temp6"\n""\n"Water Tank In $temp7"\n"Water Tank Return
$temp8"\n""\n"Loop In $ $temp9"\n"Loop Return $temp10"\n""\n"Header Out
$temp11"\n"Header Return $temp12"\n""\n"Basment In $temp13"\n"Basement
Return $temp14"\n""\n"Mechanical Room $temp15"\n"
#F62217 RED
#0000FF BLUE
# Create graphs
#Mechanical Room
rrdtool graph mech_h.png --start -1h
DEF:mechanicalRM=house.rrd:mechanicalRM:AVERAGE
LINE1:mechanicalRM#0000FF:"Mechanical Room [deg C]"
rrdtool graph mech_d.png --start -1d
DEF:mechanicalRM=house.rrd:mechanicalRM:AVERAGE
LINE1:mechanicalRM#0000FF:"Mechanical Room [deg C]"
rrdtool graph mech_w.png --start -1w
DEF:mechanicalRM=house.rrd:mechanicalRM:AVERAGE
LINE1:mechanicalRM#0000FF:"Mechanical Room [deg C]"
rrdtool graph mech_m.png --start -1m
DEF:mechanicalRM=house.rrd:mechanicalRM:AVERAGE
LINE1:mechanicalRM#0000FF:"Mechanical Room [deg C]"
rrdtool graph mech_y.png --start -1y
DEF:mechanicalRM=house.rrd:mechanicalRM:AVERAGE
LINE1:mechanicalRM#0000FF:"Mechanical Room [deg C]"
#Garage
rrdtool graph garage_h.png --start -1h \
DEF:garageIN=house.rrd:garageIN:AVERAGE \
DEF:garageRTN=house.rrd:garageRTN:AVERAGE \
LINE1:garageIN#F62217:"Garage Supply Temp [deg C]" \
LINE1:garageRTN#0000FF:"Garage Return Temp [deg C]"
rrdtool graph garage_d.png --start -1d \
DEF:garageIN=house.rrd:garageIN:AVERAGE \
DEF:garageRTN=house.rrd:garageRTN:AVERAGE \
LINE1:garageIN#F62217:"Garage Supply Temp [deg C]" \
LINE1:garageRTN#0000FF:"Garage Return Temp [deg C]"
--
View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/Why-is-this-happening-tp7583286.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.
More information about the rrd-users
mailing list