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",
"name": "Seriennummer",
"caption": "Seriennummer",
"suffix": "",
"visible": true
"caption": "Seriennummer"
},
{
"type": "ValidationTextBox",
"name": "Username",
"caption": "Username",
"suffix": "",
"visible": true
"caption": "Username"
},
{ "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");
);
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_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);
$response = curl_exec($ch);
curl_close($ch);
@@ -394,7 +394,7 @@ class Ladestation_Universal extends IPSModule
$url2 = $baseUrl . $value*1000;
curl_setopt($ch, CURLOPT_URL, $url2);
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);
// Check for errors