FHEM Forum

FHEM => fhem-users => Thema gestartet von: rudolfkoenig am 24 August 2009, 23:58:42

Titel: [FHZ] fhem.pl setstate bug
Beitrag von: rudolfkoenig am 24 August 2009, 23:58:42
Originally posted by: <email address deleted>

Hallo  Rudi,

Deine Doku in der commandref:
       { $defs{emwz}{READINGS}{basis}{VAL} = }
sollte ergänzt werden, ansonsten läuft im WriteStatefile (fhem.pl) der
Befehl:
        print SFH "setstate $d $r->{$c}{TIME} $c $r->{$c}{VAL}\n";
auf den Poller
     Use of uninitialized value in concatenation (.) or string at C:
\fhem\fhem.pl line xxx

Empfehlung:
a) commandref erweitern um
  {  $defs{emwz}{READINGS}{basis}{TIME} = TimeNow() }

b) print erweitern (ich mag solche Sollbruchstellen gar nicht :-) ) um
Fehlerroutine:
if (defined({$c}{TIME})) {
        print SFH "setstate $d $r->{$c}{TIME} $c $r->{$c}{VAL}\n";
  } else {
        Log 1,"setstate $d $r $c impossible, please follow commandref
doc and set TIME too!\n";
  }
(Punkt b nur Entwurf, noch nicht getestet)

Gruss
Klaus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users" group.
To post to this group, send email to fhem-users@googlegroups.com
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en
-~----------~----~----~----~------~----~------~--~-