dayAvgTemp5rain11.gplot 641 B

123456789101112131415161718192021222324
  1. ############################
  2. # Display the daily avarage temperature and rainfall from a KS300.
  3. # Corresponding FileLog definition:
  4. # define avglog FileLog /var/log/fhem/ks300-%Y.log ks300:.*avg.*
  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 '<TL>'
  13. set grid
  14. set y2label "Temperature in C"
  15. set ylabel "Rain (l/m2)"
  16. #FileLog 5:avg_day:0:
  17. #FileLog 11:avg_day:0:
  18. plot "<grep avg_day <IN>" using 1:5 axes x1y2 title 'Temperature' with lines,\
  19. "<grep avg_day <IN>" using 1:11 axes x1y1 title 'Rain' with histeps