From 78fc76c52bc620d79179c5681b8b1f736ff33c76 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Mon, 3 Oct 2022 08:55:17 +0000 Subject: [PATCH] 76_SolarForecast.pm: contrib 0.68.4 git-svn-id: https://svn.fhem.de/fhem/trunk@26474 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 84d00041e..59e9a96bf 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -6979,17 +6979,19 @@ sub _beamGraphic { } } - if ($show_diff eq 'bottom') { # zusätzliche diff Anzeige + if ($show_diff eq 'bottom') { # zusätzliche diff Anzeige $val = formatVal6($hfcg->{$i}{diff},$kw,$hfcg->{$i}{weather}); - $val = ($hfcg->{$i}{diff} < 0) ? ''.$val.'' : ($val > 0 ) ? '+'.$val : $val if ($val ne ' '); # negative Zahlen in Fettschrift, 0 aber ohne + + $val = ($hfcg->{$i}{diff} < 0) ? ''.$val.'' : ($val > 0 ) ? '+'.$val : $val if ($val ne ' '); # negative Zahlen in Fettschrift, 0 aber ohne + $ret .= "$val"; } $ret .= ""; - $ret .= (($hfcg->{$i}{time} == $thishour) && ($offset < 0)) ? ''.$hfcg->{$i}{time_str}.'' : $hfcg->{$i}{time_str}; + $ret .= $hfcg->{$i}{time} == $thishour ? # wenn Hervorhebung nur bei gestztem Attr 'historyHour' ? dann hinzufügen: "&& $offset < 0" + ''.$hfcg->{$i}{time_str}.'' : + $hfcg->{$i}{time_str}; if($hfcg->{$i}{time} == $thishour) { - $thishour = 99; # nur einmal verwenden ! + $thishour = 99; # nur einmal verwenden ! } $ret .="";