From 4fb49df53a5aeb9b8ad9920aa16bf116a3dac53b Mon Sep 17 00:00:00 2001 From: DS_Starter Date: Sat, 17 Jul 2021 16:04:54 +0000 Subject: [PATCH] 76_SolarForecast.pm: contrib 0.54.4 git-svn-id: https://svn.fhem.de/fhem/trunk@24765 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 3ca881aab..2ad5aae41 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -4568,7 +4568,7 @@ sub _beamGraphicRemainingHours { $val3 = HistoryVal ($hash, $ds, $hfcg->{$i}{time_str}, "gcons", 0); $val4 = HistoryVal ($hash, $ds, $hfcg->{$i}{time_str}, "confc", 0); - $hfcg->{$i}{weather} = HistoryVal ($hash, $ds, $hfcg->{$i}{time_str}, "weatherid", undef); + $hfcg->{$i}{weather} = HistoryVal ($hash, $ds, $hfcg->{$i}{time_str}, "weatherid", 999); } else { $nh = sprintf('%02d', $i+$offset); @@ -4579,9 +4579,9 @@ sub _beamGraphicRemainingHours { } if (defined($nh)) { - $val1 = NexthoursVal ($hash, 'NextHour'.$nh, "pvforecast", 0); - $val4 = NexthoursVal ($hash, 'NextHour'.$nh, "confc", 0); - $hfcg->{$i}{weather} = NexthoursVal ($hash, 'NextHour'.$nh, "weatherid", undef); + $val1 = NexthoursVal ($hash, 'NextHour'.$nh, "pvforecast", 0); + $val4 = NexthoursVal ($hash, 'NextHour'.$nh, "confc", 0); + $hfcg->{$i}{weather} = NexthoursVal ($hash, 'NextHour'.$nh, "weatherid", 999); #$val4 = (ReadingsVal($name,"NextHour".$ii."_IsConsumptionRecommended",'no') eq 'yes') ? $icon : undef; }