diff --git a/fhem/webfrontend/pgm2/em.gplot b/fhem/webfrontend/pgm2/em.gplot index c22c8493f..4999ea1c6 100644 --- a/fhem/webfrontend/pgm2/em.gplot +++ b/fhem/webfrontend/pgm2/em.gplot @@ -4,16 +4,15 @@ #================= -set terminal png size 1024,240 crop +set terminal png size 800,200 crop set output '.png' set xdata time set timefmt "%Y-%m-%d_%H:%M:%S" set xlabel " " set ytics nomirror -set y2tics set title '' set grid -set ylabel "KW" +#set ytics .2 -plot "" using 1:4 title 'Power' with lines +plot "" using 1:4 title 'Power (KW)' with lines diff --git a/fhem/webfrontend/pgm2/fht.gplot b/fhem/webfrontend/pgm2/fht.gplot index 5ce1b2eb9..cb2883701 100644 --- a/fhem/webfrontend/pgm2/fht.gplot +++ b/fhem/webfrontend/pgm2/fht.gplot @@ -3,13 +3,14 @@ # FileLog definition: # define FileLog fhtlog1 fht1:.*(temp|actuator).* /var/log/fht1-%Y-%U.log # -set terminal png size 1024,240 crop +set terminal png size 800,200 crop set output '.png' set xdata time set timefmt "%Y-%m-%d_%H:%M:%S" set xlabel " " set ytics nomirror set y2tics +set ytics 1 set title '' set grid diff --git a/fhem/webfrontend/pgm2/fs20.gplot b/fhem/webfrontend/pgm2/fs20.gplot index 8f115ca9c..ab9bae14c 100644 --- a/fhem/webfrontend/pgm2/fs20.gplot +++ b/fhem/webfrontend/pgm2/fs20.gplot @@ -3,15 +3,14 @@ # FileLog definition: # define FileLog fs20log fs20dev /var/log/fs20dev-%Y-%U.log # -set terminal png size 1024,240 crop +set terminal png size 800,200 crop set output '.png' set xdata time set timefmt "%Y-%m-%d_%H:%M:%S" set xlabel " " -set ytics nomirror set title '' -set grid -set yrange [-0.2:1.2] +set noytics +set yrange [-0.1:1.1] plot "< awk '{print $1, $3==\"on\"? 1 : 0; }' "\ using 1:2 title 'On/Off' with steps diff --git a/fhem/webfrontend/pgm2/ks300_1.gplot b/fhem/webfrontend/pgm2/ks300_1.gplot index 2d454e2d0..2d7b370d2 100644 --- a/fhem/webfrontend/pgm2/ks300_1.gplot +++ b/fhem/webfrontend/pgm2/ks300_1.gplot @@ -3,7 +3,7 @@ # FileLog definition: # define FileLog ks300log ks300:.*H:.* /var/log/ks300-%Y-%U.log # -set terminal png size 1024,240 crop +set terminal png size 800,200 crop set output '.png' set xdata time set timefmt "%Y-%m-%d_%H:%M:%S" diff --git a/fhem/webfrontend/pgm2/ks300_2.gplot b/fhem/webfrontend/pgm2/ks300_2.gplot index 35403392b..b93bf3402 100644 --- a/fhem/webfrontend/pgm2/ks300_2.gplot +++ b/fhem/webfrontend/pgm2/ks300_2.gplot @@ -3,7 +3,7 @@ # FileLog definition: # define FileLog ks300log ks300:.*H:.* /var/log/ks300-%Y-%U.log # -set terminal png size 1024,240 crop +set terminal png size 800,200 crop set output '.png' set xdata time set timefmt "%Y-%m-%d_%H:%M:%S" diff --git a/fhem/webfrontend/pgm2/ks300_3.gplot b/fhem/webfrontend/pgm2/ks300_3.gplot index b09e2a2f7..9033d763a 100644 --- a/fhem/webfrontend/pgm2/ks300_3.gplot +++ b/fhem/webfrontend/pgm2/ks300_3.gplot @@ -3,7 +3,7 @@ # FileLog definition: # define FileLog ks300log ks300:.*H:.* /var/log/ks300-%Y-%U.log # -set terminal png size 1024,240 crop +set terminal png size 800,200 crop set output '.png' set xdata time set timefmt "%Y-%m-%d_%H:%M:%S" diff --git a/fhem/webfrontend/pgm2/mpiri.gplot b/fhem/webfrontend/pgm2/mpiri.gplot new file mode 100644 index 000000000..fc80b3a42 --- /dev/null +++ b/fhem/webfrontend/pgm2/mpiri.gplot @@ -0,0 +1,20 @@ +# +# Display a piri log with multiple units logging into the same file +# define pirilog FileLog /var/log/piri-%Y-%m-%d.log piri.* +# The devices are called piri.sz, piri.flo, piri.flu, prir.wz1 and piri.wz2 +# +set terminal png size 800,200 crop +set output '.png' +set xdata time +set timefmt "%Y-%m-%d_%H:%M:%S" +set xlabel " " +set title '' +set noytics +set yrange [-0.1:1.1] + +plot\ + "< awk '/sz/ {print $1, 0.8; }' " using 1:2 title 'sz' with points,\ + "< awk '/flo/{print $1, 0.6; }' " using 1:2 title 'flo' with points,\ + "< awk '/flu/{print $1, 0.4; }' " using 1:2 title 'flu' with points,\ + "< awk '/wz1/{print $1, 0.2; }' " using 1:2 title 'wz1' with points,\ + "< awk '/wz2/{print $1, 0.0; }' " using 1:2 title 'wz2' with points diff --git a/fhem/webfrontend/pgm2/piri.gplot b/fhem/webfrontend/pgm2/piri.gplot new file mode 100644 index 000000000..bd67aa63e --- /dev/null +++ b/fhem/webfrontend/pgm2/piri.gplot @@ -0,0 +1,17 @@ +# +# Display the on and off values off an FS20 device +# FileLog definition: +# define FileLog fs20log fs20dev /var/log/fs20dev-%Y-%U.log +# +set terminal png size 800,200 crop +set output '.png' +set xdata time +set timefmt "%Y-%m-%d_%H:%M:%S" +set xlabel " " +set ytics nomirror +set title '' +set grid +set yrange [-0.2:1.2] + +plot "< awk '{print $1, $3==\"on\"? 1 : 0; }' "\ + using 1:2 title 'On/Off' with impulses