temp4.gplot 829 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # Display the measured temperature for Oregon sensors
  3. #
  4. # FileLog definition:
  5. # define <filelogname> FileLog /var/log/fhem/<devname>-%Y.log <devname>
  6. # Filelog example:
  7. # define FileLog_THR128_08 FileLog /var/log/fhem/THR128_08-%Y.log THR128_08
  8. #
  9. # Logfile record example:
  10. #2010-08-10_18:00:01 THR128_04 temperature: 20.7
  11. #
  12. # Attribute 'small' is useful for gnuplot/-scroll only,
  13. # if plotsize is less than 800,400
  14. #set terminal png transparent small size <SIZE> crop
  15. set terminal png transparent size <SIZE> crop
  16. set output '<OUT>.png'
  17. set xdata time
  18. set timefmt "%Y-%m-%d_%H:%M:%S"
  19. set xlabel " "
  20. set y2tics
  21. set title '<L1>'
  22. set grid xtics y2tics
  23. set y2label "Temperature in C"
  24. #FileLog 4:T\x3a|temperature:0:
  25. plot \
  26. "< egrep 'T:|temperature:' <IN>"\
  27. using 1:4 axes x1y2 title 'Measured temperature' with lines