From 75b21ada14ae5fc7c6a7dc678ab1f22b64494296 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Tue, 6 Feb 2024 19:17:01 +0000 Subject: [PATCH] 76_SolarForecast: Links to the website of the API used git-svn-id: https://svn.fhem.de/fhem/trunk@28485 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/76_SolarForecast.pm | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 39f37b8d5..b82258170 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: Links to the website of the API used - bugfix: 72_FRITZBOX: kleiner Fehler bei set smartHome tempOffset - bugfix: 76_SolarForecast: fix plant check ctrlWeatherDevX - feature: 76_SolarForecast: add attr ctrlWeatherDev2, ctrlWeatherDev3 diff --git a/fhem/FHEM/76_SolarForecast.pm b/fhem/FHEM/76_SolarForecast.pm index f3eb61c5c..7eb2376c2 100644 --- a/fhem/FHEM/76_SolarForecast.pm +++ b/fhem/FHEM/76_SolarForecast.pm @@ -157,6 +157,7 @@ BEGIN { # Versions History intern my %vNotesIntern = ( + "1.15.3" => "06.02.2024 Header: add links to the API website dependend from the used API ", "1.15.2" => "05.02.2024 __mergeDataWeather: fix merger failures, number of temperature decimal places ". "cicrular Hash: replace 'percentile' by 'simple' ", "1.15.1" => "04.02.2024 checkPlantConfig: fix check attribute ctrlWeatherDevX ", @@ -10012,10 +10013,10 @@ sub _graphicHeader { ## Solare API Sektion ######################## - my $api = isSolCastUsed ($hash) ? 'SolCast:' : - isForecastSolarUsed ($hash) ? 'Forecast.Solar:' : - isVictronKiUsed ($hash) ? 'VictronVRM:' : - isDWDUsed ($hash) ? 'DWD:' : + my $api = isSolCastUsed ($hash) ? 'SolCast:' : + isForecastSolarUsed ($hash) ? 'Forecast.Solar:' : + isVictronKiUsed ($hash) ? 'VictronVRM:' : + isDWDUsed ($hash) ? 'DWD:' : q{}; my $nscc = ReadingsVal ($name, 'nextSolCastCall', '?'); @@ -10031,7 +10032,7 @@ sub _graphicHeader { } } - if ($api eq 'SolCast:') { + if ($api =~ /SolCast/xs) { $api .= ' '.$lrt; if ($scrm eq 'success') { @@ -10061,7 +10062,7 @@ sub _graphicHeader { $api .= ')'; $api .= ''; } - elsif ($api eq 'Forecast.Solar:') { + elsif ($api =~ /Forecast.Solar/xs) { $api .= ' '.$lrt; if ($scrm eq 'success') { @@ -10085,7 +10086,7 @@ sub _graphicHeader { $api .= ')'; $api .= ''; } - elsif ($api eq 'VictronVRM:') { + elsif ($api =~ /VictronVRM/xs) { $api .= ' '.$lrt; if ($scrm eq 'success') { @@ -10104,7 +10105,7 @@ sub _graphicHeader { $api .= ')'; $api .= ''; } - elsif ($api eq 'DWD:') { + elsif ($api =~ /DWD/xs) { $nscc = ReadingsVal ($name, 'nextCycletime', '?'); $api .= ' '.$lrt;