mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@5744 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
435d9ca9b2
commit
77d1c58bac
@ -229,7 +229,7 @@ statistics_doStatisticMinMax ($$$$$)
|
||||
return if not exists ($dev->{READINGS}{$readingName});
|
||||
|
||||
my $value = $dev->{READINGS}{$readingName}{VAL};
|
||||
$value = ($value =~ s/^([\d.]*)/$1/eg);
|
||||
$value =~ s/^([\d.]*)/$1/eg;
|
||||
|
||||
# statistics_doStatisticMinMaxSingle: $hash, $readingName, $value, $saveLast, decPlaces
|
||||
# Daily Statistic
|
||||
@ -261,7 +261,7 @@ statistics_doStatisticMinMaxSingle ($$$$$$)
|
||||
# Show since-Value
|
||||
$hidden[1] = 0; $hidden[3] = 0; $hidden[9] = 1;
|
||||
$stat[1] = $value; $stat[3] = $value; $stat[5] = $value;
|
||||
$stat[7] = strftime ("%Y-%m-%d_%H:%M:%S",localtime());
|
||||
$stat[7] = strftime ("%Y-%m-%d_%H:%M:%S",localtime() );
|
||||
} else {
|
||||
# Do calculations if hidden reading exists
|
||||
@hidden = split / /, $hash->{READINGS}{$hiddenReadingName}{VAL}; # Internal values
|
||||
|
Loading…
x
Reference in New Issue
Block a user