Re: Abfrage von WS300 und EM1010 Werten

Begonnen von Guest, 15 Oktober 2011, 23:25:58

Vorheriges Thema - Nächstes Thema

Guest

Originally posted by: <email address deleted>

danke für alle Antworten, obwohl ich nicht alles verstanden habe.

Ich freue mich nun dass ich wengistens etwas im log habe

Ich logge nun so:

define WS300logMainlog FileLog /var/tmp/ws300.log Ws300
DEF
/var/tmp/ws300.log Ws300
 NAME WS300logMainLog NR 18 REGEXP Ws300 STATE active TYPE FileLog
currentlogfile /var/tmp/ws300.log logfile /var/tmp/ws300.log

im Log habe ich aber zuviel Info:

2011-10-15_23:00:42 global DEFINED WS300Device_timer
2011-10-15_23:00:47 global DELETED WS300Device_timer
2011-10-15_23:00:47 global DEFINED WS300Device_timer2011-10-15_22:59:52 A2 T: 11.3  H: 66  Bat: Ok  LR: 0
2011-10-15_22:59:52 A2 temperature: 11.3 (Celsius)
2011-10-15_22:59:52 A2 humidity: 66 (%)
2011-10-15_22:59:52 A2 battery: Ok  
2011-10-15_22:59:52 A2 lost_receives: 0 (counter)
2011-10-15_22:59:52 A3 T: 10.9  H: 76  Bat: Ok  LR: 0
2011-10-15_22:59:52 A3 temperature: 10.9 (Celsius)
2011-10-15_22:59:52 A3 humidity: 76 (%)
2011-10-15_22:59:52 A3 battery: Ok  
2011-10-15_22:59:52 A3 lost_receives: 0 (counter)
2011-10-15_22:59:52 A4 T: 3.3  H: 77  Bat: Ok  LR: 0
2011-10-15_22:59:52 A4 temperature: 3.3 (Celsius)
2011-10-15_22:59:52 A4 humidity: 77 (%)
2011-10-15_22:59:52 A4 battery: Ok  
2011-10-15_22:59:52 A4 lost_receives: 0 (counter)
2011-10-15_22:59:52 A5 T: 23.9  H: 53  Bat: Ok  LR: 0
2011-10-15_22:59:52 A5 temperature: 23.9 (Celsius)
2011-10-15_22:59:52 A5 humidity: 53 (%)
2011-10-15_22:59:52 A5 battery: Ok  
2011-10-15_22:59:52 A5 lost_receives: 0 (counter)
2011-10-15_22:59:52 A6 T: 7.2  H: 75  Bat: Ok  LR: 0
2011-10-15_22:59:52 A6 temperature: 7.2 (Celsius)
2011-10-15_22:59:52 A6 humidity: 75 (%)
2011-10-15_22:59:52 A6 battery: Ok  
2011-10-15_22:59:52 A6 lost_receives: 0 (counter)
2011-10-15_22:59:52 A7 T: 25.5  H: 45  Bat: Ok  LR: 3
2011-10-15_22:59:52 A7 temperature: 25.5 (Celsius)
2011-10-15_22:59:52 A7 humidity: 45 (%)
2011-10-15_22:59:52 A7 battery: Ok  
2011-10-15_22:59:52 A7 lost_receives: 3 (counter)
2011-10-15_22:59:52 A8 T: 23.9  H: 54  Bat: Ok  LR: 0
2011-10-15_22:59:52 A8 temperature: 23.9 (Celsius)
2011-10-15_22:59:52 A8 humidity: 54 (%)
2011-10-15_22:59:52 A8 battery: Ok  
2011-10-15_22:59:52 A8 lost_receives: 0 (counter)
2011-10-15_22:59:52 Ws300 T: 24.6  H: 51  P: 1028.9  Willi: 0
2011-10-15_22:59:52 Ws300 temperature: 24.6 (Celsius)
2011-10-15_22:59:52 Ws300 humidity: 51 (%)
2011-10-15_22:59:52 Ws300 pressure: 1028.9 (hPa)
2011-10-15_22:59:52 Ws300 willi: 0
2011-10-15_22:59:52 Ws300 T: 24.6  H: 51  P: 1028.9  Willi: 0
2011-10-15_22:59:52 Ws300 temperature: 24.6 (Celsius)
2011-10-15_22:59:52 Ws300 humidity: 51 (%)
2011-10-15_22:59:52 Ws300 pressure: 1028.9 (hPa)
2011-10-15_22:59:52 Ws300 willi: 02011-10-15_23:00:52 global DELETED WS300Device_timer
2011-10-15_23:00:52 global DEFINED WS300Device_timer
2011-10-15_23:00:57 global DELETED WS300Device_timer



gleiches mit:

DEF
/var/tmp/ws300.log *.*
 NAME WS300AllLog NR 76 REGEXP *.* STATE active TYPE FileLog currentlogfile
/var/tmp/ws300.log logfile /var/tmp/ws300.log

Aber egal, da komme ich schon dahinter.

die Anweisung:
define log_WZ FileLog /volume1/web/test/%Y/%Y-%m/%Y-%m-%d/3.log WZ.*

bringt ein leeres Log.

Während  die Expression A* auch ein komplettes Log liefert, obwohl das
device mit "W" beginnt.

Aber so ganz habe ich die Sache scheinbar noch nicht gerafft. Ich bekommes
es schon irgendwie gebacken.

Danke an alle.

Schade dass ich immer noch nicht weiss, ob das Events sind:

2011-10-13 12:00:46 WS300 A8 humidity: 56 (%)
2011-10-13 12:00:46 WS300 A8 battery: Ok  
2011-10-13 12:00:46 WS300 A8 lost_receives: 0 (counter)


Gruß Thomas

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com

tiptronic

                                                 

Hallo Thomas,

jetzt wo Du's erwähnst fällt es mir wieder ein: dieses Define funktioniert natürlich nur auf meinem HomeServer (wegen dem Pfad) - und ausserdem habe ich die FileLog.pm etwas umgeschrieben, so dass diese mir täglich neue logs anlegt; nach diesem Schema:
2011
   2011-09
      2011-09-01
         1.log
         2.log
         3.log
         ...
      ...
      2011-09-30
         1.log
         2.log
         ...
      ...
   2011-10
      2011-10-01
         1.log
         2.log
         ...
      2011-10-02
         1.log
         2.log
         ...
      ...
usw.

Dies habe ich gemacht, damit ich eine bessere Übersicht habe und sich die Daten aus den FileLogs einfacher mit php parsen lassen. Mittlerweile bin ich allerdings auf DBLog umgestiegen, da ich damit einfach noch flexibler bin (obwohl es länger dauert, die Daten zu lesen).

define log_DB DbLog /var/log/fhem/db.conf .*:.*

Gruß

andy

Am 15.10.2011 um 23:25 schrieb Thomas Hase:

> define log_WZ FileLog /volume1/web/test/%Y/%Y-%m/%Y-%m-%d/3.log WZ.*

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com

Guest

Originally posted by: <email address deleted>

Grafische Ausgabe der Daten?

In der Doku habe ich gelesen, dass es ein Plotmodul gibt und man in
edit.files nach einem entsprechenden Eintrag schauen soll. Einen direkten
Eintrag für Ws300 fand ich dort nicht.

Wie kann ich aus der Logdatei trotzdem einen >Gnuplot erzeugen?



--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com