temp4hum6.gplot 915 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # Display the measured temp and the humidity.
  3. # FileLog definition:
  4. # define <filelogname> FileLog /var/log/fhem/hmsname-%Y.log <hmsname>:T:.*
  5. #
  6. # Logfile record example:
  7. # 2008-07-24_02:20:57 UGHygro T: 17.2 H: 77.6 Bat: ok
  8. # Attribute 'small' is useful for gnuplot/-scroll only,
  9. # if plotsize is less than 800,400
  10. #set terminal png transparent small size <SIZE> crop
  11. set terminal png transparent truecolor rounded medium size <SIZE> enhanced
  12. set output '<OUT>.png'
  13. set xdata time
  14. set timefmt "%Y-%m-%d_%H:%M:%S"
  15. set xlabel " "
  16. set ytics nomirror
  17. set y2tics
  18. #set ytics
  19. set title '<L1>'
  20. set grid xtics y2tics
  21. set y2label "Temperature in C"
  22. set ylabel "Humidity (%)"
  23. #FileLog 4:T\x3a:0:
  24. #FileLog 6:H\x3a:0:
  25. plot \
  26. "< awk '/T:/ {print $1, $4}' <IN>" using 1:2 ls l0 axes x1y2 title 'Temperature' with lines,\
  27. "< awk '/H:/ {print $1, $6}' <IN>" using 1:2 ls l2fill axes x1y1 title 'Humidity' with lines