From 400077a3be0d5eafc4aa44c0f4f04c953481e6eb Mon Sep 17 00:00:00 2001 From: klaus-schauer <> Date: Tue, 20 Oct 2015 04:23:06 +0000 Subject: [PATCH] EnO_valveCtrl.gplot: new definition git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@9557 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- www/gplot/EnO_valveCtrl.gplot | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 www/gplot/EnO_valveCtrl.gplot diff --git a/www/gplot/EnO_valveCtrl.gplot b/www/gplot/EnO_valveCtrl.gplot new file mode 100644 index 000000000..b152c6442 --- /dev/null +++ b/www/gplot/EnO_valveCtrl.gplot @@ -0,0 +1,27 @@ +############################################## +# $Id$ +# Display a valve log +# FileLog definition: +# define FileLog_device FileLog ./log/device-%Y.log device +# +# Logfile record example: +# 2015-10-17_08:38:08 device open|opens|closed|closes + +set terminal png transparent size crop +set output '.png' +set title '' +set xdata time +set timefmt "%Y-%m-%d_%H:%M:%S" +set xlabel " " +set ylabel "Valve" +set y2label "" +set ytics ("open" 1, "closed" 0) +set y2tics ("open" 1, "closed" 0) +set yrange [-0.1:1.1] +set y2range [-0.1:1.1] +set grid + +#FileLog 3:.*:0:$fld[2]=~m/open|opens/?1:0 + +plot "" using 1:2 axes x1y1 notitle ls l0 lw 1 with steps +