fht.gplot 729 B

12345678910111213141516171819202122232425262728
  1. ############################
  2. # Display the measured temp and the actuator.
  3. # Corresponding FileLog definition:
  4. # define <filelogname> FileLog /var/log/fhem/fht-%Y.log <fhtname>
  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 ytics
  13. set title '<L1>'
  14. set grid xtics y2tics
  15. set y2label "Temperature in C"
  16. set ylabel "Actuator (%)"
  17. #FileLog 4:measured:0:
  18. #FileLog 4:actuator.*[0-9]+%:0:int
  19. plot \
  20. "< awk '/measured/{print $1, $4}' <IN>"\
  21. using 1:2 axes x1y2 title 'Measured temperature' with lines,\
  22. "< awk '/actuator/ {print $1, $4+0}' <IN>"\
  23. using 1:2 axes x1y1 title 'Actuator (%)' with lines\