From 92c7c552638f2d6728b11f23e554559417506df1 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sun, 14 Mar 2021 05:56:30 +0000 Subject: [PATCH] 76_SolarForecast.pm: contrib 0.10.0 git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@23956 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- contrib/DS_Starter/76_SolarForecast.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/DS_Starter/76_SolarForecast.pm b/contrib/DS_Starter/76_SolarForecast.pm index 217c54d64..76b2fdb18 100644 --- a/contrib/DS_Starter/76_SolarForecast.pm +++ b/contrib/DS_Starter/76_SolarForecast.pm @@ -438,7 +438,7 @@ sub _readCacheFile { my $name = $hash->{NAME}; - my ($error, @content) = FileRead ($file); # Cache File lesen wenn vorhanden + my ($error, @content) = FileRead ($file); if(!$error) { my $json = join "", @content; @@ -448,7 +448,7 @@ sub _readCacheFile { $data{$hash->{TYPE}}{$name}{$cachename} = decode_json ($json); } else { - Log3($name, 2, qq{$name - WARNING - the content of file "$file" is not readable and may be corrupt}); + Log3($name, 2, qq{$name - WARNING - The content of file "$file" is not readable and may be corrupt}); } } @@ -1456,7 +1456,7 @@ sub _transferInverterValues { $data{$hash->{TYPE}}{$name}{pvreal}{sprintf("%02d",$nhour)} = $ethishour; # Hilfshash Wert PV real Forum: https://forum.fhem.de/index.php/topic,117864.msg1133350.html#msg1133350 $paref->{ethishour} = $ethishour; - $paref->{nhour} = $nhour; + $paref->{nhour} = sprintf("%02d",$nhour); $paref->{histname} = "pvrl"; setPVhistory ($paref); delete $paref->{histname};