mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
76_SolarForecast.pm: contrib 0.38.3
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24302 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7b2588c476
commit
20a0ba8e6e
@ -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 ? "<img src=\"$FW_ME/www/images/default/10px-kreis-rot.png\">" :
|
||||
$pcq < 20 ? "<img src=\"$FW_ME/www/images/default/10px-kreis-gelb.png\">" :
|
||||
"<img src=\"$FW_ME/www/images/default/10px-kreis-gruen.png\">";
|
||||
$pcqicon = "-" if(!$pvfc00);
|
||||
|
||||
|
||||
## erste Header-Zeilen
|
||||
|
Loading…
x
Reference in New Issue
Block a user