diff --git a/Ladestation_Universal/form.json b/Ladestation_Universal/form.json index a5062ab..287959c 100644 --- a/Ladestation_Universal/form.json +++ b/Ladestation_Universal/form.json @@ -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" + } ] } \ No newline at end of file diff --git a/Ladestation_Universal/module.php b/Ladestation_Universal/module.php index caf5d9c..c53e83b 100644 --- a/Ladestation_Universal/module.php +++ b/Ladestation_Universal/module.php @@ -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 diff --git a/library.json b/library.json index 9e47d76..3ab977b 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.199", + "version": "0.200", "build": 0, "date": 0 } \ No newline at end of file