fhem.pl: implement WARNING checks (Forum #92841)
git-svn-id: https://svn.fhem.de/fhem/trunk@20651 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -4873,9 +4873,9 @@ readingsBulkUpdate($$$@)
|
||||
$ts= $readings->{".ts"};
|
||||
} else {
|
||||
require "TimeSeries.pm";
|
||||
$ts= TimeSeries->new( { method => $method,
|
||||
autoreset => $duration,
|
||||
holdTime => $holdTime } );
|
||||
$ts = TimeSeries->new( { method => $method,
|
||||
autoreset=>(looks_like_number($duration) ? $duration:undef),
|
||||
holdTime =>(looks_like_number($holdTime) ? $holdTime:undef)});
|
||||
$readings->{".ts"}= $ts;
|
||||
# access from command line:
|
||||
# { $defs{"myClient"}{READINGS}{"myValue"}{".ts"}{max} }
|
||||
|
||||
Reference in New Issue
Block a user