2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 03:44:52 +00:00

76_SolarForecast: contrib 1.44.1

git-svn-id: https://svn.fhem.de/fhem/trunk@29610 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2025-02-02 20:29:55 +00:00
parent 1fccacdb3d
commit 19f410b192

View File

@ -15209,7 +15209,7 @@ sub __batteryOnBeam {
my $stt = NexthoursVal ($name, $idx, 'starttime', undef);
next if(!defined $stt || !defined $rcdc);
my (undef,undef,$day_str,$time_str) = $stt =~ m/(\d{4})-(\d{2})-(\d{2})\s(\d{2}):(\d{2}):(\d{2})/xs;
my (undef,undef,$day_str,$time_str) = $stt =~ m/(\d{4})-(\d{2})-(\d{2})\s(\d{2})/xs;
$hh->{$day_str}{$time_str}{'rcdchargebat'.$bn} = $rcdc;
$hh->{$day_str}{$time_str}{'soc'.$bn} = NexthoursVal ($name, $idx, 'soc'.$bn, undef);
@ -15220,10 +15220,12 @@ sub __batteryOnBeam {
next if(!isNumeric ($kdx));
my $ds = $hfcg->{$kdx}{day_str};
my $ts = $hfcg->{$kdx}{time_str};
my $ts = $hfcg->{$kdx}{time_str};
next if(!defined $ds || !defined $ts);
$ts = (split ":", $ts)[0]; # Forum: https://forum.fhem.de/index.php?msg=1332721
for my $bn (1..MAXBATTERIES) {
$bn = sprintf "%02d", $bn;
$ds = sprintf "%02d", $ds;