2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 12:58:13 +00:00

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
This commit is contained in:
nasseeder1 2024-02-06 19:17:01 +00:00
parent 2ecb6330ce
commit 71847fa5e1
2 changed files with 10 additions and 8 deletions

View File

@ -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 <name> smartHome tempOffset
- bugfix: 76_SolarForecast: fix plant check ctrlWeatherDevX
- feature: 76_SolarForecast: add attr ctrlWeatherDev2, ctrlWeatherDev3

View File

@ -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) ? '<a href="https://solcast.com/live-and-forecast" style="color: inherit !important;" target="_blank">SolCast</a>:' :
isForecastSolarUsed ($hash) ? '<a href="https://forecast.solar" style="color: inherit !important;" target="_blank">Forecast.Solar</a>:' :
isVictronKiUsed ($hash) ? '<a href="https://www.victronenergy.com/blog/2023/07/05/new-vrm-solar-production-forecast-feature" style="color: inherit !important;" target="_blank">VictronVRM</a>:' :
isDWDUsed ($hash) ? '<a href="https://www.dwd.de/DE/leistungen/met_verfahren_mosmix/met_verfahren_mosmix.html" style="color: inherit !important;" target="_blank">DWD</a>:' :
q{};
my $nscc = ReadingsVal ($name, 'nextSolCastCall', '?');
@ -10031,7 +10032,7 @@ sub _graphicHeader {
}
}
if ($api eq 'SolCast:') {
if ($api =~ /SolCast/xs) {
$api .= '&nbsp;'.$lrt;
if ($scrm eq 'success') {
@ -10061,7 +10062,7 @@ sub _graphicHeader {
$api .= ')';
$api .= '</span>';
}
elsif ($api eq 'Forecast.Solar:') {
elsif ($api =~ /Forecast.Solar/xs) {
$api .= '&nbsp;'.$lrt;
if ($scrm eq 'success') {
@ -10085,7 +10086,7 @@ sub _graphicHeader {
$api .= ')';
$api .= '</span>';
}
elsif ($api eq 'VictronVRM:') {
elsif ($api =~ /VictronVRM/xs) {
$api .= '&nbsp;'.$lrt;
if ($scrm eq 'success') {
@ -10104,7 +10105,7 @@ sub _graphicHeader {
$api .= ')';
$api .= '</span>';
}
elsif ($api eq 'DWD:') {
elsif ($api =~ /DWD/xs) {
$nscc = ReadingsVal ($name, 'nextCycletime', '?');
$api .= '&nbsp;'.$lrt;