Originally posted by: <email address deleted>
Hi.
I'm really unsure why fhem doesn't log to a file with the following
commands in our config:
define em EM /dev/elv_em1010pc
define emlog FileLog /var/log/fhz/em-%Y-%U.log EM.*:.*
define emwz EMWZ 1
Note that I also tried the following regular expressions:
EMWZ.*:.*
emwz.*:.*
em.*:.*
However, this works fine for our fhz stuff:
define FHZ FHZ /dev/elv_fhz1300pc
define fht_schlaf FHT 0005
define ks1 KS300 1234 220 1.0
define wzlog FileLog /var/log/fhz/wz-%Y-%U.log \
fht_schlaf:.*(temp|actuator).*
define kslog FileLog /var/log/fhz/ks-%Y-%U.log ks.*:.*
I'm quite sure the assignment of the different log file names aren't
consistant with what the various frontends would expect, but I just
wanted to make sure this is all working at the basic level before
tackling the higher level stuff.
But since I'm writing anyway: Are the frontends (or at least one of
them) capable of dividing up a single log for fht, ks300 and hms stuff?
regards,
Sven
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-
> I'm really unsure why fhem doesn't log to a file with the following
> commands in our config:
Log in to fhem via telnet, and type "inform on". You will receive the
same notifications as the modules. FileLog checks if the regexp
matches the (full) message or the compound of device-name:message. In
your case em.*:.* should have matched, the others not. A shorter
regexp ist emwz.*
> But since I'm writing anyway: Are the frontends (or at least one of
> them) capable of dividing up a single log for fht, ks300 and hms stuff?
I speak for webpgm2:
- you cannot divide them, if you just want to display the log in
textform.
- For plotting you can, see the examples.
Rudi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-
Originally posted by: <email address deleted>
Rudolf Koenig schrieb:
>> I'm really unsure why fhem doesn't log to a file with the following
>> commands in our config:
>
> Log in to fhem via telnet, and type "inform on". You will receive the
> same notifications as the modules. FileLog checks if the regexp
> matches the (full) message or the compound of device-name:message. In
> your case em.*:.* should have matched, the others not. A shorter
> regexp ist emwz.*
Hmm, this results in these lines:
EMWZ emwz RperKW_EC: 150
EMWZ emwz energy: 0.020
EMWZ emwz cum_kWh: 4.464
EMWZ emwz price_CF: 0.150
EMWZ emwz 5min_pulses: 3
EMWZ emwz power: 0.240
EMWZ emwz alarm_PA: 23000 Watt
Now, what should the FileLog definition look like?
Only
define emlog FileLog /var/log/fhz/em-%Y-%U.log .*emwz.*
seems to work, but that surely isn't the best option, right?
>> But since I'm writing anyway: Are the frontends (or at least one of
>> them) capable of dividing up a single log for fht, ks300 and hms stuff?
>
> I speak for webpgm2:
> - you cannot divide them, if you just want to display the log in
> textform.
> - For plotting you can, see the examples.
So if I put all logging messages into a single file, webpgm2 is able to
split this file into the various graphics?
And if I split the various sources into individual files, I can't view
all of them individually?
Darfst auch gerne auf Deutsch antworten ;-)
Ciao,
Sven
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-
> Hmm, this results in these lines:
> EMWZ emwz RperKW_EC: 150
Sorry, inform outputs devicetype, devicename and message.
> Only
> define emlog FileLog /var/log/fhz/em-%Y-%U.log .*emwz.*
> seems to work, but that surely isn't the best option, right?
I use emwz:power.* and emem:power_kW:.*, both of them is working for a
year now.
> So if I put all logging messages into a single file, webpgm2 is able to
> split this file into the various graphics?
Yes, definitely.
> And if I split the various sources into individual files, I can't view
> all of them individually?
??? Viewing them individually is no problem in this case, in this case
it will be hard to show them together in one Plot, but with some hard
coding in the gnuplot file even this would be possible for
plotmode=gnuplot. But since I use the plotmode=SVG, I convert related
plots into "weblinks", and place these objects in the same "room". See
"http://www.koeniglich.de/fhem/pgm2-3.png"
Rudi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-