kleine syntaxfehler gefunden

This commit is contained in:
2024-12-19 10:21:18 +01:00
parent 00341c4dfe
commit 1a300c5185
3 changed files with 10 additions and 11 deletions

View File

@@ -68,21 +68,20 @@
{ {
"type": "ValidationTextBox", "type": "ValidationTextBox",
"name": "Seriennummer", "name": "Seriennummer",
"caption": "Seriennummer", "caption": "Seriennummer"
"suffix": "",
"visible": true
}, },
{ {
"type": "ValidationTextBox", "type": "ValidationTextBox",
"name": "Username", "name": "Username",
"caption": "Username", "caption": "Username"
"suffix": "",
"visible": true
}, },
{ "type": "PasswordTextBox", "name": "Password", "caption": "Passwort" } { "type": "PasswordTextBox",
"name": "Password",
"caption": "Passwort"
}
] ]
} }

View File

@@ -182,7 +182,7 @@ class Ladestation_Universal extends IPSModule
"https://api.smart-me.com/pico/charging/". $this->ReadPropertyInteger("ID"); "https://api.smart-me.com/pico/charging/". $this->ReadPropertyInteger("ID");
); );
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyInteger("Username") . ":" . $$this->ReadPropertyInteger("Password")); curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyInteger("Username") . ":" . $this->ReadPropertyInteger("Password"));
} }
@@ -322,7 +322,7 @@ class Ladestation_Universal extends IPSModule
curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyInteger("Username") . ":" . $$this->ReadPropertyInteger("Password")); curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyInteger("Username") . ":" . $this->ReadPropertyInteger("Password"));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch); $response = curl_exec($ch);
curl_close($ch); curl_close($ch);
@@ -394,7 +394,7 @@ class Ladestation_Universal extends IPSModule
$url2 = $baseUrl . $value*1000; $url2 = $baseUrl . $value*1000;
curl_setopt($ch, CURLOPT_URL, $url2); curl_setopt($ch, CURLOPT_URL, $url2);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyInteger("Username") . ":" . $$this->ReadPropertyInteger("Password")); curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyInteger("Username") . ":" . $this->ReadPropertyInteger("Password"));
$response2 = curl_exec($ch); $response2 = curl_exec($ch);
// Check for errors // Check for errors

View File

@@ -6,7 +6,7 @@
"compatibility": { "compatibility": {
"version": "7.1" "version": "7.1"
}, },
"version": "0.199", "version": "0.200",
"build": 0, "build": 0,
"date": 0 "date": 0
} }