[gelöst] Logfile und deren Darstellung

Begonnen von maci, 01 November 2017, 13:20:09

Vorheriges Thema - Nächstes Thema

maci

Hallo,
Mir passt die Darstellung von Plot und Logfile nicht zusammen.
Hier ein Auszug aus dem Logfile:
2017-11-01_05:00:35 Gaseinsatz on
2017-11-01_05:00:36 Gaseinsatz_Stoerung off
2017-11-01_05:10:35 Gaseinsatz on
2017-11-01_05:10:36 Gaseinsatz_Stoerung off
2017-11-01_05:20:35 Gaseinsatz on
2017-11-01_05:20:36 Gaseinsatz_Stoerung off
2017-11-01_05:30:35 Gaseinsatz on
2017-11-01_05:30:36 Gaseinsatz_Stoerung off
2017-11-01_05:40:35 Gaseinsatz on
2017-11-01_05:40:36 Gaseinsatz_Stoerung off
2017-11-01_05:50:35 Gaseinsatz on
2017-11-01_05:50:36 Gaseinsatz_Stoerung off
2017-11-01_06:00:35 Gaseinsatz on
2017-11-01_06:00:36 Gaseinsatz_Stoerung off
2017-11-01_06:10:35 Gaseinsatz on
2017-11-01_06:10:36 Gaseinsatz_Stoerung off
2017-11-01_06:20:48 Gaseinsatz on
2017-11-01_06:20:49 Gaseinsatz_Stoerung off
2017-11-01_06:30:49 Gaseinsatz on
2017-11-01_06:30:50 Gaseinsatz_Stoerung off
2017-11-01_06:40:49 Gaseinsatz on
2017-11-01_06:40:49 Gaseinsatz_Stoerung off
2017-11-01_06:50:49 Gaseinsatz on
2017-11-01_06:50:50 Gaseinsatz_Stoerung off
2017-11-01_07:00:54 Gaseinsatz on
2017-11-01_07:00:55 Gaseinsatz_Stoerung off
2017-11-01_07:10:50 Gaseinsatz on
2017-11-01_07:10:51 Gaseinsatz_Stoerung off
2017-11-01_07:20:50 Gaseinsatz on
2017-11-01_07:20:51 Gaseinsatz_Stoerung off
2017-11-01_07:30:51 Gaseinsatz on
2017-11-01_07:30:51 Gaseinsatz_Stoerung off
2017-11-01_07:40:51 Gaseinsatz on
2017-11-01_07:40:52 Gaseinsatz_Stoerung off
2017-11-01_07:50:52 Gaseinsatz on
2017-11-01_07:50:52 Gaseinsatz_Stoerung off
2017-11-01_08:00:56 Gaseinsatz on
2017-11-01_08:00:57 Gaseinsatz_Stoerung off
2017-11-01_08:10:52 Gaseinsatz on
2017-11-01_08:10:53 Gaseinsatz_Stoerung off
2017-11-01_08:20:53 Gaseinsatz on
2017-11-01_08:20:53 Gaseinsatz_Stoerung off
2017-11-01_08:30:53 Gaseinsatz on
2017-11-01_08:30:53 Gaseinsatz_Stoerung off
2017-11-01_08:40:53 Gaseinsatz on
2017-11-01_08:40:54 Gaseinsatz_Stoerung off
2017-11-01_08:50:54 Gaseinsatz on
2017-11-01_08:50:54 Gaseinsatz_Stoerung off
2017-11-01_09:00:35 Gaseinsatz on
2017-11-01_09:00:36 Gaseinsatz_Stoerung off
2017-11-01_09:10:35 Gaseinsatz on
2017-11-01_09:10:36 Gaseinsatz_Stoerung off
2017-11-01_09:20:36 Gaseinsatz on
2017-11-01_09:20:37 Gaseinsatz_Stoerung off
2017-11-01_09:30:36 Gaseinsatz on
2017-11-01_09:30:36 Gaseinsatz_Stoerung off
2017-11-01_09:40:36 Gaseinsatz on
2017-11-01_09:40:36 Gaseinsatz_Stoerung off
2017-11-01_09:50:36 Gaseinsatz on
2017-11-01_09:50:36 Gaseinsatz_Stoerung off
2017-11-01_10:00:35 Gaseinsatz on
2017-11-01_10:00:36 Gaseinsatz_Stoerung off
2017-11-01_10:10:35 Gaseinsatz on
2017-11-01_10:10:36 Gaseinsatz_Stoerung off
2017-11-01_10:20:35 Gaseinsatz on
2017-11-01_10:20:36 Gaseinsatz_Stoerung off
2017-11-01_10:30:35 Gaseinsatz on
2017-11-01_10:30:36 Gaseinsatz_Stoerung off
2017-11-01_10:40:35 Gaseinsatz on
2017-11-01_10:40:36 Gaseinsatz_Stoerung off
2017-11-01_10:50:35 Gaseinsatz on
2017-11-01_10:50:36 Gaseinsatz_Stoerung off
2017-11-01_11:00:35 Gaseinsatz on
2017-11-01_11:00:36 Gaseinsatz_Stoerung off
2017-11-01_11:10:35 Gaseinsatz on
2017-11-01_11:10:36 Gaseinsatz_Stoerung off
2017-11-01_11:20:36 Gaseinsatz on
2017-11-01_11:20:36 Gaseinsatz_Stoerung off
2017-11-01_11:30:35 Gaseinsatz on
2017-11-01_11:30:36 Gaseinsatz_Stoerung off
2017-11-01_11:40:35 Gaseinsatz on
2017-11-01_11:40:36 Gaseinsatz_Stoerung off
2017-11-01_11:50:35 Gaseinsatz on
2017-11-01_11:50:36 Gaseinsatz_Stoerung off
2017-11-01_12:00:35 Gaseinsatz on
2017-11-01_12:00:36 Gaseinsatz_Stoerung off
2017-11-01_12:01:06 Gaseinsatz on
2017-11-01_12:01:09 Gaseinsatz off
2017-11-01_12:10:35 Gaseinsatz off
2017-11-01_12:10:36 Gaseinsatz_Stoerung off
2017-11-01_12:20:35 Gaseinsatz off
2017-11-01_12:20:36 Gaseinsatz_Stoerung off
2017-11-01_12:30:35 Gaseinsatz off
2017-11-01_12:30:36 Gaseinsatz_Stoerung off
2017-11-01_12:40:35 Gaseinsatz off
2017-11-01_12:40:36 Gaseinsatz_Stoerung off
2017-11-01_12:50:36 Gaseinsatz off
2017-11-01_12:50:36 Gaseinsatz_Stoerung off
2017-11-01_13:00:35 Gaseinsatz off
2017-11-01_13:00:36 Gaseinsatz_Stoerung off


Die "off" Einträge sind meiner Meinung nach im Plot richtig. Nur die "on" Einträge sind Kammartig.
Warum?
Fhem auf Dell Thinclient, Fhem auf Raspebrry Pi4,
UniPi Vers. 1.1 mit Raspberry Pi3, 1wire USB Adapter mit OWX
Netatmo Wetterstation + Regenmesser + Netatmo Thermostat
Homematic mit HMLan

betateilchen

Es wäre extrem hllfreich, wenn Du das gplot File dazu posten würdest...
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

OiledAmoeba

Ohne die def zu sehen, sieht es so aus, als würde der Plot auch auf _Störung triggern. Vllt liegt da schon der Hase?

Gesendet von meinem SM-G900F mit Tapatalk

Gruß
Florian

Jail auf XigmaNAS (freeBSD); CCU2 mit CULv3, nanoCUL868 und JeeLink-Clone; div. FS20-Komponenten; andFHEM; div. hm- und hmip-Komponenten; div. IT+

maci

Sorry, habe ich vergessen zum Anhängen.

Hier mein gplot File:
# Created by FHEM/98_SVG.pm, 2017-02-17 08:15: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 'Gaseinsatz Ein / Aus'
set ytics ("on" 1, "off" 0)
set y2tics ("on" 1, "off" 0)
set grid
set ylabel "Ein/Aus"
set y2label "Status"
set yrange [-0.1:1.2]
set y2range [-0.1:1.2]

#FileLog_Gaseinsatz 3:Gaseinsatz.*::$fld[2]=~"on"?1:0
#FileLog_Gaseinsatz_Stoerung 3:Gaseinsatz_Stoerung.*::$fld[2]=~"on"?1.05:0.05

plot "<IN>" using 1:2 axes x1y2 title 'Gaseinsatz' ls l1 lw 1 with steps
plot "<IN>" using 1:2 axes x1y2 title 'Gaseinsatz_Störung' ls l0 lw 1 with steps
Fhem auf Dell Thinclient, Fhem auf Raspebrry Pi4,
UniPi Vers. 1.1 mit Raspberry Pi3, 1wire USB Adapter mit OWX
Netatmo Wetterstation + Regenmesser + Netatmo Thermostat
Homematic mit HMLan

maci

Kann mir hier jemand bitte weiterhelfen?

Gruß
Georg
Fhem auf Dell Thinclient, Fhem auf Raspebrry Pi4,
UniPi Vers. 1.1 mit Raspberry Pi3, 1wire USB Adapter mit OWX
Netatmo Wetterstation + Regenmesser + Netatmo Thermostat
Homematic mit HMLan

amenomade

Zitat#FileLog_Gaseinsatz 3:Gaseinsatz.*
Sowas reagiert nicht nur auf Gaseinsatz, sondern auch auf Gaseinsatz_Stoerung.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

maci

Fhem auf Dell Thinclient, Fhem auf Raspebrry Pi4,
UniPi Vers. 1.1 mit Raspberry Pi3, 1wire USB Adapter mit OWX
Netatmo Wetterstation + Regenmesser + Netatmo Thermostat
Homematic mit HMLan