Hallo,
ich versuche ganz simpel superstandard im FHT Plot auch den Aktuator darzustellen. Leider gelingt mir keine SVG Konfiguration.
Der Reihe nach, im Editor sieht es so aus:
(http://www.kippings.de/fhem_wz.png)
die SVG Datei so:
# Created by FHEM/98_SVG.pm, 2013-10-10 20:41:53
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 '<L1>'
set ytics nomirror
set y2tics
set grid y2tics
set ylabel "Actuator (%)"
set y2label "Temperature in C"
set yrange [0:100]
set y2range [15:25]
#FileLog 4:fht.wozi.measured-temp\x3a:0:
#FileLog 3:fht.wozi.actuator\x3a:0:int
#FileLog 4:fht.wozi.desired-temp::
plot "<IN>" using 1:2 axes x1y2 title 'Temp' ls l0 lw 2 with lines,\
"<IN>" using 1:2 axes x1y1 title 'Actuator (%)' ls l1 lw 1 with steps,\
"<IN>" using 1:2 axes x1y2 title 'soll' ls l0 lw 1 with steps
Im Log sind aktuatorbewegungen:
2013-10-10_19:26:47 fht.wozi actuator: 0%
2013-10-10_19:26:48 fht.wozi desired-temp: 17.5
2013-10-10_19:27:32 fht.wozi desired-temp 23.0
2013-10-10_19:28:43 fht.wozi actuator: 0%
2013-10-10_19:28:44 fht.wozi desired-temp: 23.0
2013-10-10_19:30:39 fht.wozi actuator: 87%
2013-10-10_19:30:40 fht.wozi desired-temp: 23.0
2013-10-10_19:32:35 fht.wozi actuator: 87%
2013-10-10_19:32:36 fht.wozi measured-temp: 18.4
2013-10-10_19:32:36 fht.wozi temperature: 18.4
2013-10-10_19:32:37 fht.wozi battery: ok
2013-10-10_19:32:37 fht.wozi lowtemp: ok
2013-10-10_19:32:37 fht.wozi window: closed
2013-10-10_19:32:37 fht.wozi windowsensor: ok
2013-10-10_19:32:37 fht.wozi warnings: none
2013-10-10_19:32:42 fht.wozi desired-temp 17.0
2013-10-10_19:34:31 fht.wozi actuator: 87%
2013-10-10_19:34:32 fht.wozi desired-temp: 17.0
2013-10-10_19:36:27 fht.wozi actuator: 0%
2013-10-10_19:38:23 fht.wozi actuator: 0%
2013-10-10_19:40:19 fht.wozi actuator: 0%
2013-10-10_19:42:15 fht.wozi actuator: 0%
2013-10-10_19:42:16 fht.wozi measured-temp: 18.4
2013-10-10_19:42:16 fht.wozi temperature: 18.4
2013-10-10_19:42:17 fht.wozi battery: ok
die fhem config:
define fht.wozi FHT 555a
attr fht.wozi retrycount 3
attr fht.wozi room FHT
define FileLog_fht.wozi FileLog ./log/fht.wozi-%Y.log fht.wozi
attr FileLog_fht.wozi logtype fht:Temp/Act,text
attr FileLog_fht.wozi room FHT
define SVG_fht.wozi SVG FileLog_fht.wozi:fht:CURRENT
attr SVG_fht.wozi label "fht.wozi Min $data{min1}, Max $data{max1}, Last $data{currval1}"
attr SVG_fht.wozi room Plots
Irgendwo ist der Wurm drin. Im Editor oben kann ich keine Regular expression mit "%" auswählen.
die SVG von hand zu ändern in etwas wie:
#FileLog 3:fht.wozi.actuator.*[0-9]+%:0:int
hat keine Wirkung, auch nach neustart von fhem nicht.
was mach ich falsch?
Zitat von: swifty schrieb am Do, 10 Oktober 2013 21:07was mach ich falsch?
Falsche Spalte. Nimm mal die 4 statt der 3.
Spalte 1: 2013-10-10_19:28:43
Spalte 2: fht.wozi
Spalte 3: actuator:
Spalte 4: 0%
und schon gehts...
DANKE!