mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
fhem.pl: implement WARNING checks (Forum #92841)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20651 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ec0b1b4c0a
commit
922f8ce511
6
fhem.pl
6
fhem.pl
@ -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} }
|
||||
|
Loading…
x
Reference in New Issue
Block a user