From af5544618f9b7e7d63d0e85046faa55bfed7c882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Thu, 19 Dec 2024 10:31:25 +0100 Subject: [PATCH] semikkolon vergessen wegzunehmen --- Ladestation_Universal/module.php | 8 ++++---- library.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Ladestation_Universal/module.php b/Ladestation_Universal/module.php index c53e83b..decbd08 100644 --- a/Ladestation_Universal/module.php +++ b/Ladestation_Universal/module.php @@ -179,10 +179,10 @@ class Ladestation_Universal extends IPSModule curl_setopt( $ch, CURLOPT_URL, - "https://api.smart-me.com/pico/charging/". $this->ReadPropertyInteger("ID"); + "https://api.smart-me.com/pico/charging/". $this->ReadPropertyString("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->ReadPropertyString("Username") . ":" . $this->ReadPropertyString("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->ReadPropertyString("Username") . ":" . $this->ReadPropertyString("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->ReadPropertyString("Username") . ":" . $this->ReadPropertyString("Password")); $response2 = curl_exec($ch); // Check for errors diff --git a/library.json b/library.json index 7885532..541d95f 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.201", + "version": "0.202", "build": 0, "date": 0 } \ No newline at end of file