mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
76_SolarForecast.pm: contrib 0.10.0
git-svn-id: https://svn.fhem.de/fhem/trunk@23961 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0e38ef699b
commit
bd092720c3
@ -2667,11 +2667,17 @@ sub calcFromHistory {
|
||||
unshift @efa, $k[$ei];
|
||||
$ei--;
|
||||
}
|
||||
|
||||
my $anzavg = scalar(@efa);
|
||||
|
||||
if($anzavg) {
|
||||
Log3 ($name, 4, "$name - PV History -> Day $day has index $idx. Days ($calcd) for calc: ".join " ",@efa);
|
||||
}
|
||||
else { # vermeide Fehler: Illegal division by zero
|
||||
Log3 ($name, 4, "$name - PV History -> Day $day has index $idx. Use only current day for average calc");
|
||||
return;
|
||||
}
|
||||
|
||||
Log3 ($name, 4, "$name - PV History -> Day $day has index $idx. Days ($calcd) for calc: ".join " ",@efa);
|
||||
|
||||
# my $pvhh = $data{$type}{$name}{pvhist};
|
||||
my $anzavg = scalar(@efa);
|
||||
my ($pvrl,$pvfc) = (0,0);
|
||||
|
||||
for my $dayfa (@efa) {
|
||||
@ -2881,7 +2887,7 @@ return;
|
||||
}
|
||||
|
||||
################################################################
|
||||
# alle Readings eines Devices oder nur Reaging-Regex
|
||||
# alle Readings eines Devices oder nur Reading-Regex
|
||||
# löschen
|
||||
################################################################
|
||||
sub deleteReadingspec {
|
||||
|
Loading…
Reference in New Issue
Block a user