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