mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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
539c79202a
commit
5e47772973
@ -4796,9 +4796,7 @@ sub __planSwitchTimes {
|
||||
my $name = $paref->{name};
|
||||
my $c = $paref->{consumer};
|
||||
my $debug = $paref->{debug};
|
||||
|
||||
#return if(ConsumerVal ($hash, $c, "planstate", undef));
|
||||
|
||||
|
||||
my $dnp = ___noPlanRelease ($paref);
|
||||
if ($dnp) {
|
||||
if($debug =~ /consumerPlanning/x) {
|
||||
@ -4978,7 +4976,9 @@ sub ___noPlanRelease {
|
||||
}
|
||||
|
||||
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};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user