piri.gplot 491 B

1234567891011121314151617181920
  1. ############################
  2. # Display the on and off values for a single FS20 device
  3. # FileLog definition:
  4. # define fs20log FileLog /var/log/fhem/fs20dev-%Y-%U.log fs20dev
  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 title '<TL>'
  12. set grid
  13. set yrange [-0.2:1.2]
  14. #FileLog "1"::0:
  15. plot "< awk '{print $1, $3==\"on\"? 1 : 0; }' <IN>"\
  16. using 1:2 title 'On/Off' with impulses