mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +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
@ -4797,8 +4797,6 @@ sub __planSwitchTimes {
|
|||||||
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…
Reference in New Issue
Block a user