# # Display the on and off values off an FS20 device # FileLog definition: # define FileLog fs20log fs20dev /var/log/fs20dev-%Y-%U.log # set terminal png size 800,200 crop set output '.png' set xdata time set timefmt "%Y-%m-%d_%H:%M:%S" set xlabel " " set title '' set noytics set yrange [-0.1:1.1] plot "< awk '{print $1, $3==\"on\"? 1 : 0; }' "\ using 1:2 title 'On/Off' with steps