mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
fhem.pl: reformat to 80-char
git-svn-id: https://svn.fhem.de/fhem/trunk@11655 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8313f00991
commit
6a3349ce24
10
fhem/fhem.pl
10
fhem/fhem.pl
@ -4093,7 +4093,8 @@ readingsBulkUpdate($$$@)
|
|||||||
|
|
||||||
if( $attreocr ) {
|
if( $attreocr ) {
|
||||||
if( my $attrtocr = $hash->{".attrtocr"} ) {
|
if( my $attrtocr = $hash->{".attrtocr"} ) {
|
||||||
$update_timestamp = $changed if( $attrtocr && grep($reading =~ m/^$_$/, @{$attrtocr}) );
|
$update_timestamp = $changed
|
||||||
|
if( $attrtocr && grep($reading =~ m/^$_$/, @{$attrtocr}) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4112,7 +4113,9 @@ readingsBulkUpdate($$$@)
|
|||||||
$ts= $readings->{".ts"};
|
$ts= $readings->{".ts"};
|
||||||
} else {
|
} else {
|
||||||
require "TimeSeries.pm";
|
require "TimeSeries.pm";
|
||||||
$ts= TimeSeries->new( { method => $method, autoreset => $duration, holdTime => $holdTime } );
|
$ts= TimeSeries->new( { method => $method,
|
||||||
|
autoreset => $duration,
|
||||||
|
holdTime => $holdTime } );
|
||||||
$readings->{".ts"}= $ts;
|
$readings->{".ts"}= $ts;
|
||||||
# access from command line:
|
# access from command line:
|
||||||
# { $defs{"myClient"}{READINGS}{"myValue"}{".ts"}{max} }
|
# { $defs{"myClient"}{READINGS}{"myValue"}{".ts"}{max} }
|
||||||
@ -4130,7 +4133,8 @@ readingsBulkUpdate($$$@)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
setReadingsVal($hash, $reading, $value, $hash->{".updateTimestamp"}) if( $update_timestamp );
|
setReadingsVal($hash, $reading, $value, $hash->{".updateTimestamp"})
|
||||||
|
if($update_timestamp);
|
||||||
|
|
||||||
my $rv = "$reading: $value";
|
my $rv = "$reading: $value";
|
||||||
if($changed) {
|
if($changed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user