url war unbekannt
This commit is contained in:
@@ -338,21 +338,31 @@ class Ladestation_Universal extends IPSModule
|
|||||||
// First request
|
// First request
|
||||||
if($this->ReadPropertyInteger("Ladestation")==2){
|
if($this->ReadPropertyInteger("Ladestation")==2){
|
||||||
$url = $baseUrl . "frc=2";
|
$url = $baseUrl . "frc=2";
|
||||||
|
curl_setopt($ch, CURLOPT_URL, $url);
|
||||||
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
|
$response1 = curl_exec($ch);
|
||||||
|
|
||||||
|
// Check for errors
|
||||||
|
if (curl_errno($ch)) {
|
||||||
|
curl_close($ch);
|
||||||
|
return "Error:" . curl_error($ch);
|
||||||
|
}
|
||||||
}elseif($this->ReadPropertyInteger("Ladestation")==1){
|
}elseif($this->ReadPropertyInteger("Ladestation")==1){
|
||||||
$url = $baseUrl . "alw=1";
|
$url = $baseUrl . "alw=1";
|
||||||
|
curl_setopt($ch, CURLOPT_URL, $url);
|
||||||
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
|
$response1 = curl_exec($ch);
|
||||||
|
|
||||||
|
// Check for errors
|
||||||
|
if (curl_errno($ch)) {
|
||||||
|
curl_close($ch);
|
||||||
|
return "Error:" . curl_error($ch);
|
||||||
|
}
|
||||||
|
|
||||||
}elseif($this->ReadPropertyInteger("Ladestation")==3){
|
}elseif($this->ReadPropertyInteger("Ladestation")==3){
|
||||||
// Nichts zu tun für Smart-Me station
|
// Nichts zu tun für Smart-Me station
|
||||||
}
|
}
|
||||||
curl_setopt($ch, CURLOPT_URL, $url);
|
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
||||||
$response1 = curl_exec($ch);
|
|
||||||
|
|
||||||
// Check for errors
|
|
||||||
if (curl_errno($ch)) {
|
|
||||||
curl_close($ch);
|
|
||||||
return "Error:" . curl_error($ch);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Second request
|
// Second request
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.203",
|
"version": "0.204",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user