From 20a0ba8e6e07cc38f81e07ebdb313e3d871bf3e6 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Wed, 21 Apr 2021 19:52:20 +0000 Subject: [PATCH] 76_SolarForecast.pm: contrib 0.38.3 git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24302 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- contrib/DS_Starter/76_SolarForecast.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/contrib/DS_Starter/76_SolarForecast.pm b/contrib/DS_Starter/76_SolarForecast.pm index e6e780127..2d945537c 100644 --- a/contrib/DS_Starter/76_SolarForecast.pm +++ b/contrib/DS_Starter/76_SolarForecast.pm @@ -2725,9 +2725,10 @@ sub forecastGraphic { my $pcfa = ReadingsVal ($name,"pvCorrectionFactor_Auto", "off"); - my $pvcorrf = NexthoursVal($hash, "NextHour00", "pvcorrf", "-/m"); - my ($pcf,$pcq) = split "/", $pvcorrf; - $pcq =~ s/m/15/xs; + my $pvcorrf00 = NexthoursVal($hash, "NextHour00", "pvcorrf", "-/m"); + my ($pcf,$pcq) = split "/", $pvcorrf00; + $pcq =~ s/m/15/xs; + my $pvfc00 = NexthoursVal($hash, "NextHour00", "pvfc", undef); if ($kw eq 'kWh') { $co4h = sprintf("%.1f" , $co4h/1000)." kWh"; @@ -2836,6 +2837,7 @@ sub forecastGraphic { $pcqicon = $pcq < 10 ? "" : $pcq < 20 ? "" : ""; + $pcqicon = "-" if(!$pvfc00); ## erste Header-Zeilen