mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 16:05:19 +00:00
76_Solarforcast: contrib 0.74.1
git-svn-id: https://svn.fhem.de/fhem/trunk@26707 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1d2d9cf3fb
commit
fdb75b0473
@ -4796,9 +4796,7 @@ sub __planSwitchTimes {
|
|||||||
my $name = $paref->{name};
|
my $name = $paref->{name};
|
||||||
my $c = $paref->{consumer};
|
my $c = $paref->{consumer};
|
||||||
my $debug = $paref->{debug};
|
my $debug = $paref->{debug};
|
||||||
|
|
||||||
#return if(ConsumerVal ($hash, $c, "planstate", undef));
|
|
||||||
|
|
||||||
my $dnp = ___noPlanRelease ($paref);
|
my $dnp = ___noPlanRelease ($paref);
|
||||||
if ($dnp) {
|
if ($dnp) {
|
||||||
if($debug =~ /consumerPlanning/x) {
|
if($debug =~ /consumerPlanning/x) {
|
||||||
@ -4978,7 +4976,9 @@ sub ___noPlanRelease {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isSolCastUsed ($hash)) {
|
if (isSolCastUsed ($hash)) {
|
||||||
if (!SolCastAPIVal ($hash, '?All', '?All', 'todayDoneAPIcalls', 0)) { # Planung erst nach dem ersten API Abruf freigeben
|
my $tdc = SolCastAPIVal ($hash, '?All', '?All', 'todayDoneAPIcalls', 0);
|
||||||
|
|
||||||
|
if ($tdc <= 2) { # Planung erst nach dem zweiten API Abruf freigeben
|
||||||
$dnp = qq{do not plan because off "todayDoneAPIcalls" not set};
|
$dnp = qq{do not plan because off "todayDoneAPIcalls" not set};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user