From 7314302a15d5576c3ccd84e0df19475edb9c27c7 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Mon, 11 Mar 2024 21:23:43 +0000 Subject: [PATCH] 76_SolarForecast: minor code changes git-svn-id: https://svn.fhem.de/fhem/trunk@28637 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/76_SolarForecast.pm | 15 +++------------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index bf23850fc..1f366406f 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. + - change: 76_SolarForecast: minor code changes - feature: 93_DbRep: prepare client - server communication compression support - feature: 76_SMAInverter: add GridConection reading (SI only) - bugfix: 88_HMCCU: Fixed syntax errors in HMCCUConf.pm diff --git a/fhem/FHEM/76_SolarForecast.pm b/fhem/FHEM/76_SolarForecast.pm index 11c86f9df..8da3c3f6e 100644 --- a/fhem/FHEM/76_SolarForecast.pm +++ b/fhem/FHEM/76_SolarForecast.pm @@ -158,6 +158,7 @@ BEGIN { # Versions History intern my %vNotesIntern = ( + "1.16.6" => "11.03.2024 plantConfigCheck: join forecastProperties with ',' ", "1.16.5" => "04.03.2024 setPVhistory: code changes, plantConfigCheck: check forecastRefresh ". "check age of weather data according to used MOSMIX variant ", "1.16.4" => "02.03.2024 __getDWDSolarData: change check reading to fcx_12_x, internal code changes ". @@ -5639,16 +5640,6 @@ sub centralTask { ### nicht mehr benötigte Daten verarbeiten - Bereich kann später wieder raus !! ########################################################################################################################## - ## AI Raw Daten formatieren # 09.02.2024 - if (defined $data{$type}{$name}{aidectree}{airaw}) { - for my $idx (sort keys %{$data{$type}{$name}{aidectree}{airaw}}) { - delete $data{$type}{$name}{aidectree}{airaw}{$idx}{wrp}; - $data{$type}{$name}{aidectree}{airaw}{$idx}{temp} = 0 if(AiRawdataVal ($hash, $idx, 'temp', 0) eq '00'); - $data{$type}{$name}{aidectree}{airaw}{$idx}{temp} = 5 if(AiRawdataVal ($hash, $idx, 'temp', 0) eq '05'); - $data{$type}{$name}{aidectree}{airaw}{$idx}{temp} = -5 if(AiRawdataVal ($hash, $idx, 'temp', 0) eq '-05'); - } - } - ## percentile in simple umsetzen # 05.02.2024 for my $idx (sort keys %{$data{$type}{$name}{circular}}) { if(defined $data{$type}{$name}{circular}{$idx}{pvcorrf}{percentile}) { @@ -14259,7 +14250,7 @@ sub checkPlantConfig { } $result->{'DWD Weather Properties'}{note} .= qq{checked parameters and attributes of device "$fcname":
}; - $result->{'DWD Weather Properties'}{note} .= 'forecastProperties -> '.join (' ', @dweattrmust).'
'; + $result->{'DWD Weather Properties'}{note} .= 'forecastProperties -> '.join (',', @dweattrmust).'
'; $result->{'DWD Weather Properties'}{note} .= 'forecastRefresh '.($mosm eq 'MOSMIX_L' ? '-> set attribute to "1" if possible' : '').'
'; } } @@ -14333,7 +14324,7 @@ sub checkPlantConfig { $result->{'DWD Radiation Properties'}{note} .= qq{checked global Radiation parameters:
}; $result->{'DWD Radiation Properties'}{note} .= 'MOSMIX variant, Age of Radiation data.
'; $result->{'DWD Radiation Properties'}{note} .= qq{
checked parameters and attributes device "$raname":
}; - $result->{'DWD Radiation Properties'}{note} .= 'forecastProperties -> '.join (' ', @draattrmust).'
'; + $result->{'DWD Radiation Properties'}{note} .= 'forecastProperties -> '.join (',', @draattrmust).'
'; $result->{'DWD Radiation Properties'}{note} .= 'forecastRefresh '.($mosm eq 'MOSMIX_L' ? '-> set attribute to "1" if possible' : '').'
'; }