From fd69427ea56eb5eaf436316f89f2d35913aada18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Thu, 19 Dec 2024 11:24:26 +0100 Subject: [PATCH] logging --- Ladestation_Universal/module.php | 8 +++++++- library.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Ladestation_Universal/module.php b/Ladestation_Universal/module.php index 4d92962..6601377 100644 --- a/Ladestation_Universal/module.php +++ b/Ladestation_Universal/module.php @@ -237,7 +237,11 @@ class Ladestation_Universal extends IPSModule } elseif ($data["car"] != 1) { SetValue($this->GetIDForIdent("Lademodus"), 0); } - }} + }else{ + SetValue($this->GetIDForIdent("Lademodus"), 1); + + } + } } } @@ -403,6 +407,8 @@ class Ladestation_Universal extends IPSModule } elseif($this->ReadPropertyInteger("Ladestation")==3){ $url2 = $baseUrl . $value*1000; + IPS_LogMessage("Ladestation", "Aufgerufene ip" . $url2); + curl_setopt($ch, CURLOPT_URL, $url2); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyString("Username") . ":" . $this->ReadPropertyString("Password")); diff --git a/library.json b/library.json index 259daab..68c1bcf 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.205", + "version": "0.207", "build": 0, "date": 0 } \ No newline at end of file