EnO_liquidLeakage.gplot: changed
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9549 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
##############################################
|
##############################################
|
||||||
# $Id$
|
# $Id$
|
||||||
# Display a keycard log
|
# Display a liquid leakage sensor log
|
||||||
# FileLog definition:
|
# FileLog definition:
|
||||||
# define FileLog_device FileLog ./log/device-%Y.log device
|
# define FileLog_device FileLog ./log/device-%Y.log device
|
||||||
#
|
#
|
||||||
@@ -9,19 +9,18 @@
|
|||||||
|
|
||||||
set terminal png transparent size <SIZE> crop
|
set terminal png transparent size <SIZE> crop
|
||||||
set output '<OUT>.png'
|
set output '<OUT>.png'
|
||||||
|
set title '<TL>'
|
||||||
set xdata time
|
set xdata time
|
||||||
set timefmt "%Y-%m-%d_%H:%M:%S"
|
set timefmt "%Y-%m-%d_%H:%M:%S"
|
||||||
set xlabel " "
|
set xlabel " "
|
||||||
set ylabel "Liquid Leakage Sensor"
|
set ylabel "Liquid Leakage Sensor"
|
||||||
set title '<TL>'
|
set y2label ""
|
||||||
set ytics ("wet" 1, "dry" 0)
|
set ytics ("wet" 1, "dry" 0)
|
||||||
set y2tics ("wet" 1, "dry" 0)
|
set y2tics ("wet" 1, "dry" 0)
|
||||||
set yrange [-0.1:1.1]
|
set yrange [-0.1:1.1]
|
||||||
set y2range [-0.1:1.1]
|
set y2range [-0.1:1.1]
|
||||||
|
set grid
|
||||||
|
|
||||||
#FileLog "1":wet:1:
|
#FileLog 3:.*:0:$fld[2]=~"wet"?1:0
|
||||||
#FileLog "0":dry:0:
|
|
||||||
|
|
||||||
plot\
|
plot "<IN>" using 1:2 axes x1y1 notitle ls l0 lw 1 with steps
|
||||||
"< awk '/wet/ {print $1, 1;}' <IN>" using 1:2 notitle with points,\
|
|
||||||
"< awk '/dry/ {print $1, 0;}' <IN>" using 1:2 notitle with points
|
|
||||||
|
|||||||
Reference in New Issue
Block a user