76_Solarforcast: contrib 0.54.4

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24735 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2021-07-12 10:21:40 +00:00
parent 8d397a00f4
commit d4545b5a54

View File

@ -4663,11 +4663,14 @@ sub _beamGraphic {
last if ($ii > $maxhours); # vorzeitiger Abbruch
$val = formatVal6($hfcg->{$i}{diff},$kw,$hfcg->{$i}{weather});
if ($val ne ' ') { # Forum: https://forum.fhem.de/index.php/topic,117864.msg1166215.html#msg1166215
$val = $hfcg->{$i}{diff} < 0 ?
'<b>'.$val.'<b/>' :
$val > 0 ?
'+'.$val :
$val; # negative Zahlen in Fettschrift, 0 aber ohne +
}
$ret .= "<td class='solarfc' style='vertical-align:middle; text-align:center;'>$val</td>";
}