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:
parent
1fccacdb3d
commit
19f410b192
@ -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);
|
||||
@ -15224,6 +15224,8 @@ sub __batteryOnBeam {
|
||||
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user