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