From 5ee7dea1d1d32883532a0c3a139d627362e948ff Mon Sep 17 00:00:00 2001 From: mrp666 Date: Thu, 5 Feb 2015 10:23:01 +0000 Subject: [PATCH] CO20: Added plot file for co20 sensor git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7881 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/gplot/co20.gplot | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 fhem/www/gplot/co20.gplot diff --git a/fhem/www/gplot/co20.gplot b/fhem/www/gplot/co20.gplot new file mode 100644 index 000000000..b85a324e5 --- /dev/null +++ b/fhem/www/gplot/co20.gplot @@ -0,0 +1,30 @@ +############################ +# Display the current voc (volatile organic compounds) value in three color gradients. +# Corresponding FileLog definition: +# define FileLog ./log/co20-%Y-%m.log +# define SVG :co20:CURRENT +# attr label "Air quality - Min $data{min1}, Max $data{max1}, Last $data{currval1}" + +set terminal png transparent size crop +set output '.png' +set xdata time +set timefmt "%Y-%m-%d_%H:%M:%S" +set xlabel " " +set title '' +set ytics "good" 750, "ok" 1250, "bad" 1750 +set y2tics "" 1000,"" 1500 +set grid y2tics +set ylabel "" +set y2label "Air quality (ppm)" +set yrange [450:2000] +set y2range [450:2000] + +#FileLog 4:voc:: +#FileLog 4:voc::$fld[3]>1000?1000:$fld[3] +#FileLog 4:voc::$fld[3]>1500?1500:$fld[3] +#FileLog 4:voc::$fld[3]>2000?2000:$fld[3] + +plot "" using 1:2 axes x1y2 title 'Air quality (ppm)' ls l5 lw 0.2 with lines,\ + "" using 1:2 axes x1y2 title ' ' ls l1fill lw 0.2 with lines,\ + "" using 1:2 axes x1y2 title ' ' ls l4fill lw 0.2 with lines,\ + "" using 1:2 axes x1y2 title ' ' ls l0fill lw 0.2 with lines