mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 14:04:15 +00:00
98_Twilight: logging eliminated
git-svn-id: https://svn.fhem.de/fhem/trunk@8588 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
576862a961
commit
fcf39c6d85
@ -416,7 +416,7 @@ sub Twilight_fireEvent($)
|
|||||||
|
|
||||||
if ($hash->{TW}{$nextEvent}{TIME} ne "nan") {
|
if ($hash->{TW}{$nextEvent}{TIME} ne "nan") {
|
||||||
$nextEventTime = FmtTime($hash->{TW}{$nextEvent}{TIME});
|
$nextEventTime = FmtTime($hash->{TW}{$nextEvent}{TIME});
|
||||||
Log3 $hash, 3,
|
Log3 $hash, 4,
|
||||||
sprintf ("[$hash->{NAME}] %-10s %-08s ", $event, FmtTime($eventTime)).
|
sprintf ("[$hash->{NAME}] %-10s %-08s ", $event, FmtTime($eventTime)).
|
||||||
sprintf ("===> %-10s %-08s ", $nextEvent, $nextEventTime).
|
sprintf ("===> %-10s %-08s ", $nextEvent, $nextEventTime).
|
||||||
sprintf ("===> state/light/deg==$state/$light/%+.1f°", $deg);
|
sprintf ("===> state/light/deg==$state/$light/%+.1f°", $deg);
|
||||||
@ -427,7 +427,7 @@ sub Twilight_fireEvent($)
|
|||||||
|
|
||||||
|
|
||||||
my $doTrigger = !(defined($hash->{LOCAL})) && ( abs($delta)<6 || $swip && $state gt $oldState);
|
my $doTrigger = !(defined($hash->{LOCAL})) && ( abs($delta)<6 || $swip && $state gt $oldState);
|
||||||
Log3 $hash, 3, "swip-delta-oldState-doTrigger===>$swip/$delta/$oldState/$doTrigger";
|
#Log3 $hash, 3, "swip-delta-oldState-doTrigger===>$swip/$delta/$oldState/$doTrigger";
|
||||||
|
|
||||||
readingsBeginUpdate($hash);
|
readingsBeginUpdate($hash);
|
||||||
readingsBulkUpdate ($hash, "state", $state);
|
readingsBulkUpdate ($hash, "state", $state);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user