EnO_keycard.gplot 719 B

12345678910111213141516171819202122232425262728
  1. ##############################################
  2. # $Id: EnO_keycard.gplot 9548 2015-10-19 19:55:47Z klaus-schauer $
  3. # Display a keycard 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 keycard_inserted|keycard_removed
  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 "Keycard"
  16. set y2label ""
  17. set ytics ("in" 1, "out" 0)
  18. set y2tics ("in" 1, "out" 0)
  19. set yrange [-0.1:1.1]
  20. set y2range [-0.1:1.1]
  21. set grid
  22. #FileLog 3:.*:0:$fld[2]=~"keycard_inserted"?1:0
  23. plot "<IN>" using 1:2 axes x1y1 notitle ls l0 lw 1 with steps