4.5 Prep
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@274 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -794,6 +794,8 @@ FW_showLog($)
|
||||
if($pm =~ m/gnuplot/) {
|
||||
|
||||
my $tmpfile = "/tmp/file.$$";
|
||||
my $errfile = "/tmp/gnuplot.err";
|
||||
|
||||
if($pm eq "gnuplot" || !$__devs{$d}{from}) {
|
||||
|
||||
# Looking for the logfile....
|
||||
@@ -819,7 +821,7 @@ FW_showLog($)
|
||||
$gplot_script =~ s/(set timefmt ".*")/$1\n$fr/;
|
||||
}
|
||||
|
||||
open(FH, "|gnuplot > /dev/null");# feed it to gnuplot
|
||||
open(FH, "|gnuplot >> $errfile 2>&1");# feed it to gnuplot
|
||||
print FH $gplot_script;
|
||||
close(FH);
|
||||
|
||||
@@ -864,7 +866,7 @@ FW_showLog($)
|
||||
close(FH);
|
||||
}
|
||||
|
||||
open(FH, "|gnuplot > /dev/null");# feed it to gnuplot
|
||||
open(FH, "|gnuplot >> $errfile 2>&1");# feed it to gnuplot
|
||||
print FH $gplot_script, $xrange, $plot;
|
||||
close(FH);
|
||||
foreach my $p (@path) {
|
||||
|
||||
25
webfrontend/pgm2/cul_em.gplot
Normal file
25
webfrontend/pgm2/cul_em.gplot
Normal file
@@ -0,0 +1,25 @@
|
||||
############################
|
||||
# Display the power reported by the EM1010
|
||||
# Corresponding FileLog definition:
|
||||
# define ememlog FileLog /var/log/fhem/emem-%Y.log emem:power.*
|
||||
|
||||
set terminal png transparent size <SIZE> crop
|
||||
set output '<OUT>.png'
|
||||
set xdata time
|
||||
set timefmt "%Y-%m-%d_%H:%M:%S"
|
||||
set xlabel " "
|
||||
|
||||
set title '<TL>'
|
||||
set ylabel "Power (KW)"
|
||||
set y2label "Power (KW)"
|
||||
set grid
|
||||
set ytics
|
||||
set y2tics
|
||||
set format y "%.1f"
|
||||
set format y2 "%.1f"
|
||||
|
||||
#FileLog 8:emem:0:
|
||||
#FileLog 8:emwz:0:
|
||||
|
||||
plot "<grep emem <IN>" using 1:8 title 'EMEM' with lines,\
|
||||
"<grep emwz <IN>" using 1:8 title 'EMWZ' with lines
|
||||
27
webfrontend/pgm2/cul_ws.gplot
Normal file
27
webfrontend/pgm2/cul_ws.gplot
Normal file
@@ -0,0 +1,27 @@
|
||||
############################
|
||||
# Display the s300th data reported by the CUL
|
||||
# Corresponding FileLog definition:
|
||||
# define ememlog FileLog /var/log/fhem/s300th-%Y.log s300th.*
|
||||
|
||||
set terminal png transparent size <SIZE> crop
|
||||
set output '<OUT>.png'
|
||||
set xdata time
|
||||
set timefmt "%Y-%m-%d_%H:%M:%S"
|
||||
set xlabel " "
|
||||
|
||||
set title '<TL>'
|
||||
set ylabel "Temp (C)"
|
||||
set y2label "Temp (C)"
|
||||
set grid
|
||||
set ytics
|
||||
set y2tics
|
||||
set format y "%.1f"
|
||||
set format y2 "%.1f"
|
||||
|
||||
#FileLog 4:s300th1:0:
|
||||
#FileLog 4:s300th3:0:
|
||||
#FileLog 4:s300th5:0:
|
||||
|
||||
plot "<grep s300th1 <IN>" using 1:8 title '1' with lines,\
|
||||
"<grep s300th3 <IN>" using 1:8 title '3' with lines,\
|
||||
"<grep s300th5 <IN>" using 1:8 title '5' with lines
|
||||
Reference in New Issue
Block a user