mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
76_SolarForecast.pm: contrib 0.10.0
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@23956 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
91ab536cf7
commit
92c7c55263
@ -438,7 +438,7 @@ sub _readCacheFile {
|
|||||||
|
|
||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
|
|
||||||
my ($error, @content) = FileRead ($file); # Cache File lesen wenn vorhanden
|
my ($error, @content) = FileRead ($file);
|
||||||
|
|
||||||
if(!$error) {
|
if(!$error) {
|
||||||
my $json = join "", @content;
|
my $json = join "", @content;
|
||||||
@ -448,7 +448,7 @@ sub _readCacheFile {
|
|||||||
$data{$hash->{TYPE}}{$name}{$cachename} = decode_json ($json);
|
$data{$hash->{TYPE}}{$name}{$cachename} = decode_json ($json);
|
||||||
}
|
}
|
||||||
else {
|
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
|
$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->{ethishour} = $ethishour;
|
||||||
$paref->{nhour} = $nhour;
|
$paref->{nhour} = sprintf("%02d",$nhour);
|
||||||
$paref->{histname} = "pvrl";
|
$paref->{histname} = "pvrl";
|
||||||
setPVhistory ($paref);
|
setPVhistory ($paref);
|
||||||
delete $paref->{histname};
|
delete $paref->{histname};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user