0 medlemmar och 1 gäst tittar på detta ämne.
file_name = "110420-2.LOG"set xrange [ "2011-04-27\t00:00:01":"2011-05-03\t23:59:59" ]set title "Nibe 1245-6"set style data fstepsset xlabel "Date\nTime"set timefmt "%Y-%m-%d\t%H:%M:%S"set yrange [ -30 : 60 ]set y2range [ 0 : 180 ]set xdata timeset ylabel "Temperature"set y2label "kWh"set y2ticsset format x "%d-%H:%M"set gridset key abovertu(x) = x/10rtc(x) = x/100acc_pow = 0diff = 0inc_pow(x, y) = acc_pow + (x<=6 ? 0 : 1350*30/3600) + (y*10*30/3600)power(x) = (x<=6 ? 0 : 100)plot file_name using 1:(($17)==0?power($13):1/0) t 'kWh' axes x1y2 lc rgb '#F0F8E8' with boxes fs transparent, \ file_name using 1:(($17)>0?power($13):1/0) t 'kWh' axes x1y2 lc rgb '#B04848' with boxes fs transparent, \ file_name using 1:(rtu($4)) t 'Ute temp' lc rgb 'blue', \ file_name using 1:(rtu($20)) t 'Inne temp' lc rgb 'blue', \ file_name using 1:(rtu($10)) t 'Önskad Framledning' lc rgb 'violet', \ file_name using 1:(rtc($11)) t 'GM' lc rgb 'cyan', \ file_name every 12 using 1:((($8-$9)<10 || ($8) > 50)?1/0:(($8-$9)>=28?($8+$9)/20:1/0)):($8)/10:($9)/10 t 'KB' with errorlines lc rgb 'green' , \ file_name every 12 using 1:((($8-$9)<10 || ($8) > 50)?1/0:(($8-$9)<28?($8+$9)/20:1/0)):($8)/10:($9)/10 t 'KB' with errorlines lc rgb 'red' , \ file_name using 1:(rtu($6)) t 'Framlednings temp' lc rgb 'green' , \ file_name using 1:(($6-$7)/10) t 'Delta temp' lc rgb 'orange' , \ file_name using 1:((acc_pow = inc_pow($13, $17))/1000) t 'kWh' axes x1y2 lc rgb 'red'errorbars lc rgb '#003000' , \print acc_powreset