Hey All I cant seem to get this working. Temps either show wrong temp or no
temp in graphs.
Alias.txt
/10.8865CB010800 Bedroom_In
/10.7336CB010800 Bedroom_Return
/10.7950CB010800 Garage_In
/10.D022CB010800 Garage_Return
/10.3469CB010800 Floor_In
/10.FC72E5020800 Floor_Return
/10.DF7FE5020800 Water_Tank_In
/10.1C72E5020800 Water_Tank_Return
/10.2690E5020800 Loop_In
/10.4781E5020800 Loop_Return
/10.6498E5020800 Header_Out
/10.A187E5020800 Header_Return
/10.9288E5020800 Basement_In
/10.3F8DE5020800 Basement_Return
/10.9429CB010800 Mechanical
Creat DB
#!/bin/bash
rrdtool create house.rrd --start N --step 300 \
DS:garageIN:GAUGE:600:U:U \
DS:garageRTN:GAUGE:600:U:U \
DS:bedroomIN:GAUGE:600:U:U \
DS:bedroomRTN:GAUGE:600:U:U \
DS:floorIN:GAUGE:600:U:U \
DS:floorRTN:GAUGE:600:U:U \
DS:watertankIN:GAUGE:600:U:U \
DS:watertankRTN:GAUGE:600:U:U \
DS:loopIN:GAUGE:600:U:U \
DS:loopRTN:GAUGE:600:U:U \
DS:headerIN:GAUGE:600:U:U \
DS:headerRTN:GAUGE:600:U:U \
DS:basementIN:GAUGE:600:U:U \
DS:basementRTN:GAUGE:600:U:U \
DS:mechanicalRM:GAUGE:600:U:U \
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
#!/bin/bash
# Read temperature from sensor
temp1=`cat /mnt/owfs/uncached/Garage_In/temperature`
temp2=`cat /mnt/owfs/uncached/Garage_Return/temperature`
temp3=`cat /mnt/owfs/uncached/Bedroom_In/temperature`
temp4=`cat /mnt/owfs/uncached/Bedroom_Return/temperature`
temp5=`cat /mnt/owfs/uncached/Floor_In/temperature`
temp6=`cat /mnt/owfs/uncached/Floor_Return/temperature`
temp7=`cat /mnt/owfs/uncached/Water_Tank_In/temperature`
temp8=`cat /mnt/owfs/uncached/Water_Tank_Return/temperature`
temp9=`cat /mnt/owfs/uncached/Loop_In/temperature`
temp10=`cat /mnt/owfs/uncached/Loop_Return/temperature`
temp11=`cat /mnt/owfs/uncached/Header_Out/temperature`
temp12=`cat /mnt/owfs/uncached/Header_Return/temperature`
temp13=`cat /mnt/owfs/uncached/Basement_In/temperature`
temp14=`cat /mnt/owfs/uncached/Basement_Return/temperature`
temp15=`cat /mnt/owfs/uncached/Mechanical/temperature`
# Update database
rrdtool update house.rrd
N:$temp1:$temp2:$temp3:$temp4:$temp5:$temp6:$temp7:$temp8:$temp9:$temp10:$te
mp11:$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"
# 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]"
#0000FF means blue trace color in the graphs
#Garage
#rrdtool graph Garage_h.png --start -1h
DEF:x1=garageIn=house.rrd:garageIN:AVERAGE LINE1:garageIN#0000FF:"Garage
Supply Temp [deg C]":DEF:x2=garageRTN=house.rrd:garageRTN:AVERAGE
LINE1:garageRTN#0000FF:"Garage Return Temp [deg C]"
#rrdtool graph Garage_d.png --start -1d
DEF:mechanical=house.rrd:mechanicalRM:AVERAGE
LINE1:mechanical#0000FF:"Mechanical Room [deg C]"
#rrdtool graph Garage_w.png --start -1w
DEF:mechanical=house.rrd:mechanicalRM:AVERAGE
LINE1:mechanical#0000FF:"Mechanical Room [deg C]"
#rrdtool graph Garage_m.png --start -1m
DEF:mechanical=house.rrd:mechanicalRM:AVERAGE
LINE1:mechanical#0000FF:"Mechanical Room [deg C]"
#rrdtool graph Garage_y.png --start -1y
DEF:mechanical=house.rrd:mechanicalRM:AVERAGE
LINE1:mechanical#0000FF:"Mechanical Room [deg C]"
#0000FF means blue trace color in the graphs
#DS:garageIN:GAUGE:600:U:U \ 1
#DS:garageRTN:GAUGE:600:U:U \2
#DS:bedroomIN:GAUGE:600:U:U \3
#DS:bedroomRTN:GAUGE:600:U:U \4
#DS:floorIN:GAUGE:600:U:U \5
#DS:floorRTN:GAUGE:600:U:U \6
#DS:watertankIN:GAUGE:600:U:U \7
#DS:watertankRTN:GAUGE:600:U:U \8
#DS:loopIN:GAUGE:600:U:U \9
#DS:loopRTN:GAUGE:600:U:U \10
#DS:headerIN:GAUGE:600:U:U \11
#DS:headerRTN:GAUGE:600:U:U \12
#DS:basementIN:GAUGE:600:U:U \13
#DS:basementRTN:GAUGE:600:U:U \14
#DS:mechanicalRM:GAUGE:600:U:U \15
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers