semikolon falsch gesetzt
This commit is contained in:
@@ -275,12 +275,11 @@ class Ladestation_Universal extends IPSModule
|
|||||||
$response = curl_exec($ch);
|
$response = curl_exec($ch);
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
return $response;
|
return $response;
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
// For value between 1 and 32, make two requests
|
// For value between 1 and 32, make two requests
|
||||||
elseif ($value >= 1 && $value <= 32) {
|
elseif ($value >= 1 && $value <= 32) {
|
||||||
// First request
|
// First request
|
||||||
if ($value == 0) {
|
|
||||||
if(ReadPropertyInteger("Ladestation")==2){
|
if(ReadPropertyInteger("Ladestation")==2){
|
||||||
$url = $baseUrl . "frc=2";
|
$url = $baseUrl . "frc=2";
|
||||||
}elseif(ReadPropertyInteger("Ladestation")==1){
|
}elseif(ReadPropertyInteger("Ladestation")==1){
|
||||||
@@ -299,7 +298,7 @@ class Ladestation_Universal extends IPSModule
|
|||||||
|
|
||||||
// Second request
|
// Second request
|
||||||
|
|
||||||
if ($value == 0) {
|
|
||||||
if(ReadPropertyInteger("Ladestation")==2){
|
if(ReadPropertyInteger("Ladestation")==2){
|
||||||
$url2 = $baseUrl . "amp=$value";
|
$url2 = $baseUrl . "amp=$value";
|
||||||
}elseif(ReadPropertyInteger("Ladestation")==1){
|
}elseif(ReadPropertyInteger("Ladestation")==1){
|
||||||
@@ -326,6 +325,7 @@ class Ladestation_Universal extends IPSModule
|
|||||||
else {
|
else {
|
||||||
return "Invalid value. Must be between 0 and 32.";
|
return "Invalid value. Must be between 0 and 32.";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function convertPowerToCurrent($value, $Lademodus)
|
public function convertPowerToCurrent($value, $Lademodus)
|
||||||
@@ -525,5 +525,6 @@ class Ladestation_Universal extends IPSModule
|
|||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.191",
|
"version": "0.192",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user