EnO_motion.gplot 719 B

123456789101112131415161718192021222324252627
  1. ##############################################
  2. # $Id: EnO_motion.gplot 9541 2015-10-19 19:37:03Z klaus-schauer $
  3. # Display the on and off values for a Occupancy Sensor
  4. # FileLog definition:
  5. # define FileLog_device FileLog ./log/device-%Y.log device
  6. #
  7. # Logfile record example:
  8. # 2015-10-17_08:38:08 device motion on
  9. set terminal png transparent size <SIZE> crop
  10. set output '<OUT>.png'
  11. set title '<TL>'
  12. set xdata time
  13. set timefmt "%Y-%m-%d_%H:%M:%S"
  14. set xlabel " "
  15. set ylabel "Motion"
  16. set y2label ""
  17. set ytics ("on" 1, "off" 0.0)
  18. set y2tics ("on" 1, "off" 0.0)
  19. set yrange [-0.1:1.1]
  20. set y2range [-0.1:1.1]
  21. set grid
  22. #FileLog 4:motion:0:$fld[3]=~"on"?1:0
  23. plot "<IN>" using 1:2 axes x1y1 notitle ls l0 lw 1 with steps