diff --git a/fhem/CHANGED b/fhem/CHANGED index 219522e9f..f8d98cc13 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - feature: 76_SolarForecast: plant check reviews SolarForecast widget files - bugfix: 38_netatmo: fixed login problems by adapting to latest auth changes - feature: 76_SolarForecast: new get ftuiFramefiles command - feature: 76_SolarForecast: plantConfig: check module update in repo diff --git a/fhem/FHEM/76_SolarForecast.pm b/fhem/FHEM/76_SolarForecast.pm index 2b2b0d817..43c0de92e 100644 --- a/fhem/FHEM/76_SolarForecast.pm +++ b/fhem/FHEM/76_SolarForecast.pm @@ -153,6 +153,8 @@ BEGIN { # Versions History intern my %vNotesIntern = ( + "1.5.1" => "07.12.2023 function _getftui can now process arguments (compatibility to new ftui widgets), plant check ". + "reviews SolarForecast widget files ", "1.5.0" => "05.12.2023 new getter ftuiFramefiles ", "1.4.3" => "03.12.2023 hidden set or attr commands in user specific header area when called by 'get ... html' ". "plantConfig: check module update in repo ", @@ -549,6 +551,12 @@ my @dd = qw( none pvCorrection radiationProcess saveData2Cache + ); + # FTUI V2 Widget Files + my @fs = qw( ftui_forecast.css + widget_forecast.js + ftui_smaportalspg.css + widget_smaportalspg.js ); my $allwidgets = 'icon|sortable|uzsu|knob|noArg|time|text|slider|multiple|select|bitfield|widgetList|colorpicker'; @@ -736,6 +744,12 @@ my %hqtxt = ( DE => qq{nächste SolCast Abfrage} }, fulfd => { EN => qq{fulfilled}, DE => qq{erfüllt} }, + widok => { EN => qq{The FHEM Tablet UI widget Files are up to date.}, + DE => qq{Die FHEM Tablet UI Widget-Dateien sind aktuell.} }, + widnup => { EN => qq{The SolarForecast FHEM Tablet UI widget files are not up to date.}, + DE => qq{Die FHEM Tablet UI Widget-Dateien sind nicht aktuell.} }, + widerr => { EN => qq{The FHEM Tablet UI V2 is installed but the update status of widget Files can't be checked.}, + DE => qq{FTUI V2 ist installiert, der Aktualisierungsstatus der Widgets kann nicht geprüft werden.} }, pmtp => { EN => qq{produced more than predicted :-D}, DE => qq{mehr produziert als vorhergesagt :-D} }, petp => { EN => qq{produced same as predicted :-)}, @@ -3854,8 +3868,9 @@ return pageAsHtml ($name, '-', $arg); sub _getftui { my $paref = shift; my $name = $paref->{name}; + my $arg = $paref->{arg} // ''; -return pageAsHtml ($name, "ftui"); +return pageAsHtml ($name, 'ftui', $arg); } ############################################################### @@ -4031,13 +4046,7 @@ sub _ftuiFramefiles { my $pPath = '?format=txt'; my $cfile = 'controls_solarforecast.txt'; my $cfurl = $bPath.$cfile.$pPath; - - my @fs = qw( ftui_forecast.css - widget_forecast.js - ftui_smaportalspg.css - widget_smaportalspg.js - ); - + for my $file (@fs) { my $lencheck = 1; @@ -8524,8 +8533,8 @@ return; ################################################################ sub pageAsHtml { my $name = shift; - my $ftui = shift // ""; - my $gsel = shift // ""; # direkte Auswahl welche Grafik zurück gegeben werden soll (both, flow, forecast) + my $ftui = shift // ''; + my $gsel = shift // ''; # direkte Auswahl welche Grafik zurück gegeben werden soll (both, flow, forecast) my $ret = ""; $ret .= entryGraphic ($name, $ftui, $gsel, 1); @@ -8539,8 +8548,8 @@ return $ret; ################################################################ sub entryGraphic { my $name = shift; - my $ftui = shift // ""; - my $gsel = shift // ""; # direkte Auswahl welche Grafik zurück gegeben werden soll (both, flow, forecast) + my $ftui = shift // ''; + my $gsel = shift // ''; # direkte Auswahl welche Grafik zurück gegeben werden soll (both, flow, forecast) my $pah = shift // 0; # 1 wenn durch pageAsHtml aufgerufen my $hash = $defs{$name}; @@ -8570,7 +8579,7 @@ sub entryGraphic { if (!$gsel) { $gsel = AttrVal ($name, 'graphicSelect', 'both'); # Auswahl der anzuzeigenden Grafiken } - + my $paref = { hash => $hash, name => $name, @@ -8664,7 +8673,8 @@ sub entryGraphic { if ($legendtxt && ($clegend eq 'top')) { $ret .= "