fht80tf.gplot 533 B

12345678910111213141516171819202122
  1. ############################
  2. # Display the on and off values for a single FHT80TF device
  3. # FileLog definition:
  4. # define fht80tflog FileLog /var/log/fhem/fht80tf-%Y-%U.log fht80tfdev
  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 4:Window:0:$fld[3]=~"Open"?1:0
  15. plot "< awk '{print $1, $4==\"Open\"? 1 : 0; }' <IN>"\
  16. using 1:2 title 'Open/Closed' with impulses