mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
76_SolarForecast.pm: contrib 0.38.3
git-svn-id: https://svn.fhem.de/fhem/trunk@24299 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f419c16223
commit
2f5fb970b9
@ -118,7 +118,7 @@ BEGIN {
|
||||
|
||||
# Versions History intern
|
||||
my %vNotesIntern = (
|
||||
"0.38.3" => "21.04.2021 minor fixes in sub calcVariance ",
|
||||
"0.38.3" => "21.04.2021 minor fixes in sub calcVariance, Traffic light indicator for prediction quality ",
|
||||
"0.38.2" => "20.04.2021 fix estConsumptionForecast, add consumption values to graphic ",
|
||||
"0.38.1" => "19.04.2021 bug fixing ",
|
||||
"0.38.0" => "18.04.2021 consumption forecast for the next hours prepared ",
|
||||
@ -2725,6 +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;
|
||||
|
||||
if ($kw eq 'kWh') {
|
||||
$co4h = sprintf("%.1f" , $co4h/1000)." kWh";
|
||||
$coRe = sprintf("%.1f" , $coRe/1000)." kWh";
|
||||
@ -2756,6 +2760,7 @@ sub forecastGraphic {
|
||||
|
||||
my $lupt = "last update:";
|
||||
my $autoct = "automatic correction:";
|
||||
my $lbpcq = "correction quality current hour:";
|
||||
my $lblPv4h = "next 4h:";
|
||||
my $lblPvRe = "remain today:";
|
||||
my $lblPvTo = "tomorrow:";
|
||||
@ -2764,6 +2769,7 @@ sub forecastGraphic {
|
||||
if($lang eq "DE") { # Header globales Sprachschema Deutsch
|
||||
$lupt = "Stand:";
|
||||
$autoct = "automatische Korrektur:";
|
||||
$lbpcq = encode("utf8", "Korrekturqualität akt. Stunde:");
|
||||
$lblPv4h = encode("utf8", "nächste 4h:");
|
||||
$lblPvRe = "Rest heute:";
|
||||
$lblPvTo = "morgen:";
|
||||
@ -2823,11 +2829,19 @@ sub forecastGraphic {
|
||||
$acicon = "<img src=\"$FW_ME/www/images/default/10px-kreis-rot.png\">";
|
||||
}
|
||||
|
||||
## Qualitäts-Icon
|
||||
######################
|
||||
my $pcqicon;
|
||||
|
||||
$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\">";
|
||||
|
||||
|
||||
## erste Header-Zeilen
|
||||
#######################
|
||||
$header .= "<tr><td colspan=\"3\" align=\"left\"><b>".$dlink."</b></td><td colspan=\"3\" align=\"left\">".$lupt. " ".$lup." ".$upicon."</td></tr>";
|
||||
$header .= "<tr><td colspan=\"3\" align=\"left\"><b> </b></td><td colspan=\"3\" align=\"left\">".$autoct." " .$acicon."</td></tr>";
|
||||
$header .= "<tr><td colspan=\"3\" align=\"left\"><b>".$dlink."</b></td><td colspan=\"3\" align=\"left\">".$lupt. " ".$lup." ".$upicon."</td> </tr>";
|
||||
$header .= "<tr><td colspan=\"3\" align=\"left\"><b> </b></td><td colspan=\"3\" align=\"left\">".$autoct." " .$acicon."</td><td colspan=\"2\" align=\"left\">".$lbpcq." " .$pcqicon. "</td></tr>";
|
||||
}
|
||||
|
||||
########################
|
||||
|
Loading…
x
Reference in New Issue
Block a user