EnO_motion3.gplot 795 B

12345678910111213141516171819202122232425262728
  1. ##############################################
  2. # $Id: EnO_motion3.gplot 9508 2015-10-18 08:33:29Z klaus-schauer $
  3. # Display a motion log
  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|off
  9. set terminal png transparent size <SIZE> crop
  10. set output '<OUT>.png'
  11. set xdata time
  12. set timefmt "%Y-%m-%d_%H:%M:%S"
  13. set xlabel " "
  14. set ylabel "Motion"
  15. set title '<TL>'
  16. set ytics ("on" 1, "off" 0.0)
  17. set y2tics ("on" 1, "off" 0.0)
  18. set yrange [-0.1:1.1]
  19. set y2range [-0.1:1.1]
  20. #FileLog "1.0":motion..on:1.0:
  21. #FileLog "0.0":motion..off:0.0:
  22. plot\
  23. "< awk '/motion:.on/ {print $1, 1.0; }' <IN>" using 1:2 notitle with points,\
  24. "< awk '/motion:.off/{print $1, 0.0; }' <IN>" using 1:2 notitle with points