mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 12:46:03 +00:00
76_SolarForecast.pm: contrib 0.39.0
git-svn-id: https://svn.fhem.de/fhem/trunk@24327 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a0375b578e
commit
0737a4ac48
@ -2417,7 +2417,8 @@ sub _calcSummaries {
|
||||
|
||||
my $consumption = int ($pvgen - $gfeedin + $gcon - $batin + $batout);
|
||||
my $selfconsumption = int ($pvgen - $gfeedin);
|
||||
my $selfconsumptionrate = sprintf("%.0f", $selfconsumption / $pvgen * 100);
|
||||
my $selfconsumptionrate = 0;
|
||||
$selfconsumptionrate = sprintf("%.0f", $selfconsumption / $pvgen * 100) if($pvgen);
|
||||
my $autarkyrate = sprintf("%.0f", $selfconsumption / ($selfconsumption + $gcon) * 100);
|
||||
|
||||
$data{$type}{$name}{current}{consumption} = $consumption;
|
||||
|
Loading…
x
Reference in New Issue
Block a user