no message
This commit is contained in:
@@ -29,7 +29,7 @@ class Bat_EV_SDL extends IPSModule
|
||||
$this->RegisterVariableString("CalcJSON", "Berechnung (JSON)", "", 99);
|
||||
|
||||
// Timer (korrekt: Klassenname_Update)
|
||||
$this->RegisterTimer("UpdateTimer", 0, 'Bat_EV_SDL_Update($_IPS["TARGET"]);');
|
||||
$this->RegisterTimer("UpdateTimer", 0, 'GEF_Update($_IPS["TARGET"]);');
|
||||
}
|
||||
|
||||
public function ApplyChanges()
|
||||
@@ -185,14 +185,14 @@ class Bat_EV_SDL extends IPSModule
|
||||
|
||||
// Division absichern
|
||||
$den = ($capKWh - $real_kWh + $underKWh);
|
||||
$SDL_SOC = ($den > 0.0) ? ((2.0 * $underKWh) / $den * 100.0) : 0.0;
|
||||
$SDL_SOC = ($den > 0.0) ? ( $den / (2.0 * $underKWh) * 100.0) : 0.0;
|
||||
|
||||
$sdlDisKW = $sdlShareKW;
|
||||
$evDisKW = $evShareKW;
|
||||
$sdlChKW = $sdlShareKW;
|
||||
$evChKW = 0.0;
|
||||
|
||||
$real_kWh_ev = $real_kWh - 2.0 * $underKWh;
|
||||
$real_kWh_ev = $capKWh - 2.0 * $underKWh;
|
||||
$real_kWh_sdl = (2.0 * $underKWh) - ($capKWh - $real_kWh);
|
||||
|
||||
} elseif ($underKWh > $real_kWh) {
|
||||
@@ -263,6 +263,7 @@ class Bat_EV_SDL extends IPSModule
|
||||
"Cap_kWh" => round($capKWh, 3),
|
||||
"SoC_varId" => $socVarId,
|
||||
"SoC_pct" => round($socPct, 3),
|
||||
"Effektive kWh" => round($real_kWh, 3),
|
||||
|
||||
"EV_SOC" => round($EV_SOC, 3),
|
||||
"SDL_SOC" => round($SDL_SOC, 3),
|
||||
|
||||
Reference in New Issue
Block a user