git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@274 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2008-12-03 16:49:19 +00:00
parent 82410dd2c9
commit 7bcd155000
7 changed files with 73 additions and 18 deletions

View File

@@ -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) {

View 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

View 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