no message
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
{
|
||||
"caption":"Leistung in W",
|
||||
"name":"powerbat",
|
||||
"width":"300px",
|
||||
"width":"200px",
|
||||
"add":5000,
|
||||
"edit":{
|
||||
"type":"NumberSpinner"
|
||||
@@ -28,7 +28,7 @@
|
||||
{
|
||||
"caption":"Kapazität in kWh",
|
||||
"name":"capazity",
|
||||
"width":"400px",
|
||||
"width":"200px",
|
||||
"add":60,
|
||||
"edit":{
|
||||
"type":"NumberSpinner"
|
||||
@@ -37,7 +37,25 @@
|
||||
{
|
||||
"caption":"SoC",
|
||||
"name":"soc",
|
||||
"width":"400px",
|
||||
"width":"200px",
|
||||
"add":0,
|
||||
"edit":{
|
||||
"type":"SelectVariable"
|
||||
}
|
||||
},
|
||||
{
|
||||
"caption":"Batterieleistung",
|
||||
"name":"powerbat_laden",
|
||||
"width":"200px",
|
||||
"add":0,
|
||||
"edit":{
|
||||
"type":"SelectVariable"
|
||||
}
|
||||
},
|
||||
{
|
||||
"caption":"Batterieleistung",
|
||||
"name":"powerbat_entladen",
|
||||
"width":"200px",
|
||||
"add":0,
|
||||
"edit":{
|
||||
"type":"SelectVariable"
|
||||
|
||||
@@ -352,10 +352,6 @@ class Bat_EV_SDL extends IPSModule
|
||||
|
||||
$soc = (float)$v;
|
||||
|
||||
// 0..1 -> 0..100
|
||||
if ($soc >= 0.0 && $soc < 1.0) {
|
||||
$soc *= 100.0;
|
||||
}
|
||||
|
||||
if ($soc < 0.0) $soc = 0.0;
|
||||
if ($soc > 100.0) $soc = 100.0;
|
||||
|
||||
Reference in New Issue
Block a user