Hallo Rudi
bei dem plot oben hatte ich übersehen, das ich diese Zeilen auch für
gnuplot-scroll brauche. Die Ausgabe funktioniert, nur <L1> wird nicht
gesetzt, ich würde hier den Logfilenamen erwarten.
Ich habe mich jetzt um die Piri's gekümmert. Wieder klappt alles mit
gnuplot aber ich bekomme im SVG mode keine Achsbeschriftung und gar
nichts, dafür wird hier L1 gesetzt.
Der Test mit get HausLog - - 2011-08-07 2011-08-08 "1.6":MarkusP:1.6:
liefert
2011-08-07 1.6
#"1.6":MarkusP:1.6:
Der Grep auf die Datei liefert:
2011.08.08 11:54:36 2: FS20 MarkusP on
2011.08.08 12:04:52 2: FS20 MarkusP on
2011.08.08 12:15:05 2: FS20 MarkusP on
2011.08.08 12:20:48 2: FS20 MarkusP on
2011.08.08 12:31:18 2: FS20 MarkusP on
2011.08.08 12:34:05 2: FS20 MarkusP on
2011.08.08 13:00:12 2: FS20 MarkusP on
############################
# Display a piri log with multiple units logging into the same file.
# Corresponding FileLog definition:
# define pirilog FileLog /var/log/fhem/piri-%Y-%m-%d.log piri.*
# The devices are called
piri.sz, piri.flo, piri.flu, prir.wz1 and
piri.wz2
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 ylabel "Piri"
set y2label "Piri"
set title '<TL>'
set ytics ("Markus" 1.6, "Barbara" 1.4, "Dusche" 1.2, "Bad" 1.0, "Sz"
0.8, "Gang" 0.6, "Flur" 0.4, "Wz" 0.2, "Kueche" 0.0)
set y2tics ("Markus" 1.6, "Barbara" 1.4, "Dusche" 1.2, "Bad" 1.0, "Sz"
0.8, "Gang" 0.6, "Flur" 0.4, "Wz" 0.2, "Kueche" 0.0)
set yrange [-0.1:1.7]
set y2range [-0.1:1.7]
#FileLog "1.6":MarkusP:1.6:
#FileLog "1.4":BarbaraP:1.4:
#FileLog "1.2":DuscheP:1.2:
#FileLog "1.0":BadP:1.0:
#FileLog "0.8":SchlafP:0.8:
#FileLog "0.6":GangP:0.6:
#FileLog "0.4":FlurP:0.4:
#FileLog "0.2":WohnP:0.2:
#FileLog "0.0":KuecheP:0.0:
plot\
"< awk '/MarkusP/{print $1, 1.6; }' <IN>" using 1:2 notitle with
points,\
"< awk '/BarbaraP/{print $1, 1.4; }' <IN>" using 1:2 notitle with
points,\
"< awk '/Duschep/{print $1, 1.2; }' <IN>" using 1:2 notitle with
points,\
"< awk '/BadP/{print $1, 1.0; }' <IN>" using 1:2 notitle with points
"< awk '/SchlafP/ {print $1, 0.8; }' <IN>" using 1:2 notitle with
points,\
"< awk '/GangP/{print $1, 0.6; }' <IN>" using 1:2 notitle with
points,\
"< awk '/FlurP/{print $1, 0.4; }' <IN>" using 1:2 notitle with
points,\
"< awk '/WohnP/{print $1, 0.2; }' <IN>" using 1:2 notitle with
points,\
"< awk '/KuecheP/{print $1, 0.0; }' <IN>" using 1:2 notitle with
points
Hast Du wieder einen schnellen Tipp, was ich diesmal falsch mache?
Vielen Dank
Markus
On 7 Aug., 22:39, Rudolf Koenig <
inf...@koeniglich.de> wrote:
> > ich habe den Plottmode auf gnuplot-scroll gehabt.
>
> Wahrscheinlich liefert die #FileLog Spezifikation nicht das was gnuplot
> erwartet. Was der liefert, kann man selber mit
>
> get <filelog> - - 2011-08-07 2011-08-08 <spec>
>
> testen, siehe auchhttp://
fhem.de/commandref.html#FileLogget