Originally posted by: <email address deleted>
Hallo,
ich möchte mittels FileLog die Daten aufzeichnen welche vom
Google-Dienst kommen.
Naiv wie ich bin dachte ich mir das so.
###
...
define MyWeatherLog FileLog /var/log/fhem/MyWeatherLog-%Y-%m.log
(temp_c|wind_condition|humidity|condition):.*
define MyWeather Weather VIENNA,AT 300 de
attr MyWeather icon icoWelt.png
...
###
Was leider nicht ganz funktioniert, wahrscheinlich hab ich das
http://fhem.de/commandref.html#FileLog
nicht ganz verstanden.
Kann mir da bitte jemand helfen, danke.
Hier die Ausgabe von einem Testlauf unten das ganze Log.
2012.08.06 00:36:02 5: Cmd: >define MyWeatherLog FileLog
/var/log/fhem/MyWeatherLog-%Y-%m.log
(temp_c|wind_condition|humidity|condition):.*<
2012.08.06 00:36:09 0: Server started (version Fhem 5.2 (DEVELOPMENT),
$Id: fhem.pl 1764 2012-07-28 06:27:09Z rudolfkoenig $, pid 3592)
2012.08.06 00:41:03 4: GetFileFromURL: Got
http://www.google.com/ig/api?weather=VIENNA,AT&hl=de, length: 1369
2012.08.06 00:41:03 4: Weather MyWeather: T: 24 H: 78 W: 11
2012.08.06 00:41:03 5: Triggering MyWeather (35 changes)
2012.08.06 00:41:03 5: MyWeather trigger: Checking Logfile for notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking MyWeatherLog for
notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking WEB for notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking WEBphone for notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking WEBtablet for notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking autocreate for
notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking initialUsbCheck for
notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking telnetPort for
notify
Volles debug start log http://pastebin.com/GQNnB1bV
LG
Aleks
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Originally posted by: <email address deleted>
Sorry alles zurück, war nur die falsche regex.
korrekt ist
define MyWeatherLog FileLog /var/log/fhem/MyWeatherLog-%Y-%m.log
.*(temp_c|wind_condition|humidity|condition).*
Kann man das auch in eine Zeile Schreiben für den Gnuplot?!
LG
Aleks
On 06-08-2012 00:47, Aleksandar Lazic wrote:
> Hallo,
>
> ich möchte mittels FileLog die Daten aufzeichnen welche vom
> Google-Dienst kommen.
>
> Naiv wie ich bin dachte ich mir das so.
>
> ###
> ...
> define MyWeatherLog FileLog /var/log/fhem/MyWeatherLog-%Y-%m.log
> (temp_c|wind_condition|humidity|condition):.*
>
> define MyWeather Weather VIENNA,AT 300 de
> attr MyWeather icon icoWelt.png
> ...
> ###
>
> Was leider nicht ganz funktioniert, wahrscheinlich hab ich das
>
> http://fhem.de/commandref.html#FileLog
>
> nicht ganz verstanden.
>
> Kann mir da bitte jemand helfen, danke.
>
> Hier die Ausgabe von einem Testlauf unten das ganze Log.
>
> 2012.08.06 00:36:02 5: Cmd: >define MyWeatherLog FileLog
> /var/log/fhem/MyWeatherLog-%Y-%m.log
> (temp_c|wind_condition|humidity|condition):.*<
>
> 2012.08.06 00:36:09 0: Server started (version Fhem 5.2
> (DEVELOPMENT), $Id: fhem.pl 1764 2012-07-28 06:27:09Z rudolfkoenig $,
> pid 3592)
>
> 2012.08.06 00:41:03 4: GetFileFromURL: Got
> http://www.google.com/ig/api?weather=VIENNA,AT&hl=de, length: 1369
> 2012.08.06 00:41:03 4: Weather MyWeather: T: 24 H: 78 W: 11
> 2012.08.06 00:41:03 5: Triggering MyWeather (35 changes)
> 2012.08.06 00:41:03 5: MyWeather trigger: Checking Logfile for notify
> 2012.08.06 00:41:03 5: MyWeather trigger: Checking MyWeatherLog for
> notify
> 2012.08.06 00:41:03 5: MyWeather trigger: Checking WEB for notify
> 2012.08.06 00:41:03 5: MyWeather trigger: Checking WEBphone for
> notify
> 2012.08.06 00:41:03 5: MyWeather trigger: Checking WEBtablet for
> notify
> 2012.08.06 00:41:03 5: MyWeather trigger: Checking autocreate for
> notify
> 2012.08.06 00:41:03 5: MyWeather trigger: Checking initialUsbCheck
> for notify
> 2012.08.06 00:41:03 5: MyWeather trigger: Checking telnetPort for
> notify
>
> Volles debug start log http://pastebin.com/GQNnB1bV
>
> LG
> Aleks
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Hallo,
schau Dir bitte noch mal an, wie der reguläre Ausdruck beim FileLog funktioniert. Er sollte MyWeather:.*(foo|bar|baz).* sein.
Viele Grüße
Boris
Aleksandar Lazic
schrieb:
Hallo,
ich möchte mittels FileLog die Daten aufzeichnen welche vom
Google-Dienst kommen.
Naiv wie ich bin dachte ich mir das so.
###
...
define MyWeatherLog FileLog /var/log/fhem/MyWeatherLog-%Y-%m.log
(temp_c|wind_condition|humidity|condition):.*
define MyWeather Weather VIENNA,AT 300 de
attr MyWeather icon icoWelt.png
...
###
Was leider nicht ganz funktioniert, wahrscheinlich hab ich das
http://fhem.de/commandref.html#FileLog
nicht ganz verstanden.
Kann mir da bitte jemand helfen, danke.
Hier die Ausgabe von einem Testlauf unten das ganze Log.
2012.08.06 00:36:02 5: Cmd: >define MyWeatherLog FileLog
/var/log/fhem/MyWeatherLog-%Y-%m.log
(temp_c|wind_condition|humidity|condition):.*<
2012.08.06 00:36:09 0: Server started (version Fhem 5.2 (DEVELOPMENT),
$Id: fhem.pl 1764 2012-07-28 06:27:09Z rudolfkoenig $, pid 3592)
2012.08.06 00:41:03 4: GetFileFromURL: Got
http://www.google.com/ig/api?weather=VIENNA,AT&hl=de, length: 1369
2012.08.06 00:41:03 4: Weather MyWeather: T: 24 H: 78 W: 11
2012.08.06 00:41:03 5: Triggering MyWeather (35 changes)
2012.08.06 00:41:03 5: MyWeather trigger: Checking Logfile for notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking MyWeatherLog for
notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking WEB for notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking WEBphone for notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking WEBtablet for notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking autocreate for
notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking initialUsbCheck for
notify
2012.08.06 00:41:03 5: MyWeather trigger: Checking telnetPort for
notify
Volles debug start log http://pastebin.com/GQNnB1bV
LG
Aleks
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com