mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
statistics: bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk@8931 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
454b088089
commit
792bb6f454
@ -833,14 +833,14 @@ sub statistics_doStatisticSpecialPeriod ($$$$$)
|
||||
########################################
|
||||
sub statistics_doStatisticSpecialPeriod2 ($$$$$)
|
||||
{
|
||||
my ($hash, $dev, $readingName,$statType, $period, $decPlaces, $value) = @_;
|
||||
my ($hash, $devName, $readingName,$statType, $period, $decPlaces, $value) = @_;
|
||||
my $name = $hash->{NAME};
|
||||
|
||||
my $specialPeriod = AttrVal($name, "specialPeriod", "");
|
||||
|
||||
return unless $specialPeriod;
|
||||
|
||||
if ("$devName:$readingName:$statType:$period=([\d:]+)" =~ /^($specialPeriod)$/) {
|
||||
# if ("$devName:$readingName:$statType:$period=([\d:]+)" =~ /^($specialPeriod)$/) {
|
||||
|
||||
my $statReadingName = $hash->{PREFIX} . ucfirst($readingName) . ucfirst($statType) . ucfirst($period);
|
||||
my $hiddenReadingName = ".".$dev->{NAME} . ":" . $readingName . ":" . $statType . ":" . $period;
|
||||
@ -1278,7 +1278,7 @@ sub statistics_UpdateDevReading($$$$)
|
||||
</li><br>
|
||||
</ul>
|
||||
Über die <a href="#statisticsattr">Attribute</a> <code>deltaReadings, durationReadings, minAvgMaxReadings, tendencyReadings</code> können weitere Gerätewerte hinzugefügt oder
|
||||
einem anderem Statistik-Typ zugeordnet werden.
|
||||
einem anderen Statistik-Typ zugeordnet werden.
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user