76_SolarForecast.pm: contrib 0.4.0

git-svn-id: https://svn.fhem.de/fhem/trunk@23610 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
DS_Starter
2021-01-24 20:06:33 +00:00
parent 2882484c0f
commit e59d93a3b4

View File

@@ -1445,9 +1445,10 @@ sub forecastGraphic {
my $pv0 = ReadingsNum ($name, "ThisHour_PVforecast", undef);
my $ma = ReadingsNum ($name, "moduleArea", 0); # Solar Modulfläche (qm)
my $moddir = ReadingsVal ($name, "moduleDirection", ""); # aktuelles Inverter Device
my $moddir = ReadingsVal ($name, "moduleDirection", ""); # aktuelles Inverter Device
my $ta = ReadingsNum ($name, "moduleTiltAngle", undef); # Neigungswinkel Solarmodule
if(!$fcdev || !$ma || !defined $pv0 || !$moddir) {
if(!$fcdev || !$ma || !defined $pv0 || !$moddir || !defined $ta) {
$height = AttrNum($name, 'beamHeight', 200);
$ret .= "<table class='roomoverview'>";
$ret .= "<tr style='height:".$height."px'>";
@@ -1465,6 +1466,9 @@ sub forecastGraphic {
elsif(!$moddir) {
$ret .= qq{Please specify the module Direction with "set $name moduleDirection"};
}
elsif(!defined $ta) {
$ret .= qq{Please specify the module tilt angle with "set $name moduleTiltAngle"};
}
elsif(!defined $pv0) {
$ret .= qq{Awaiting data from selected Solar Forecast device ...};
}