From e900d0718213c2ba1c4ce48d9422153a7f3897f2 Mon Sep 17 00:00:00 2001 From: klaus-schauer <> Date: Thu, 22 Oct 2015 19:57:45 +0000 Subject: [PATCH] EnO_A5-30-04.gplot: new defintion git-svn-id: https://svn.fhem.de/fhem/trunk@9596 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/gplot/EnO_A5-30-04.gplot | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 fhem/www/gplot/EnO_A5-30-04.gplot diff --git a/fhem/www/gplot/EnO_A5-30-04.gplot b/fhem/www/gplot/EnO_A5-30-04.gplot new file mode 100644 index 000000000..83ebc2623 --- /dev/null +++ b/fhem/www/gplot/EnO_A5-30-04.gplot @@ -0,0 +1,34 @@ +############################################## +# $Id$ +# Display contact sensor log +# FileLog definition: +# define FileLog_device FileLog ./log/device-%Y.log device +# +# Logfile record example: +# 2015-10-17_08:38:08 device contact open|closed +# 2015-10-17_08:38:08 device battery ok|low + +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 "Digital" +set y2label "Contact" +set y2tics ("high" 0.95, "low" 0.7) +set y2tics ("high" 0.625, "low" 0.375) +set y2tics ("high" 0.3, "low" 0.05) +set yrange [0:255] +set y2range [0:1] +set grid + +#FileLog 4:in0:0:$fld[3]=~"high"?0.95:0.7 +#FileLog 4:in1:0:$fld[3]=~"high"?0.625:0.375 +#FileLog 4:in2:0:$fld[3]=~"high"?0.3:0.05 +#FileLog 4:in3:0: + +plot "" using 1:2 axes x1y1 title "Input 0" ls l1 lw 1 with steps,\ + "" using 1:2 axes x1y1 title "Input 1" ls l2 lw 1 with steps,\ + "" using 1:2 axes x1y1 title "Input 2" ls l3 lw 1 with steps,\ + "" using 1:2 axes x1y1 title "Input 3" ls l4 lw 1 with speps