km271_1.gplot 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. ############################
  2. # Display the Water temperature and burner runtime values.
  3. # Corresponding FileLog definition:
  4. # define KM271 FileLog /var/log/fhem/km271-%Y.log KM271
  5. set terminal png transparent size <SIZE> crop
  6. set output '<OUT>.png'
  7. set xdata time
  8. set timefmt "%Y-%m-%d_%H:%M:%S"
  9. set xlabel " "
  10. set ytics nomirror
  11. set y2tics
  12. set title '<L1>'
  13. set grid
  14. set y2label "Temperature in C"
  15. set format y "%0.1f"
  16. set ylabel "Minutes"
  17. set yrange [0:]
  18. #FileLog 4:WW_Isttemperatur:0:
  19. #FileLog 4:Brenner_Laufzeit1_Minuten\x3a:0:delta-h
  20. plot "<grep WW_Isttemperatur <IN>" using 1:4 axes x1y2 ls l0 title 'WW-Temp' with lines,\
  21. "<grep Brenner_Laufzeit1_Minuten: <IN> | perl -ane '\
  22. @a = split(\"[_:]\", $F[0]);\
  23. if(defined($lh) && $lh ne $a[1])\
  24. { printf(\"${ld}_$lh:30:00 %f\n\", $hv); $hv = 0; }\
  25. if($lv) { $hv += ($F[3]-$lv); }\
  26. $lh = $a[1]; $ld = $a[0]; $lv = $F[3];\
  27. END { printf(\"${ld}_$lh:30:00 %f\n\", $hv) }'"\
  28. using 1:2 axes x1y1 ls l6fill title 'Runtime/h (Min)' with histeps