From bb4387e515b315c9b15e48215a85555f6726a6e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Tue, 17 Jun 2025 16:41:11 +0200 Subject: [PATCH] no message --- Ladestation_v2/module.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index a40e8f7..1979681 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -346,7 +346,7 @@ class Ladestation_v2 extends IPSModule $response = curl_exec($ch); curl_close($ch); - $ch = curl_init(); + $ch2 = curl_init(); $url2 = "https://api.easee.com/api/chargers/".$this->ReadPropertyString("Seriennummer")."/state"; curl_setopt_array($ch, [ @@ -361,10 +361,10 @@ class Ladestation_v2 extends IPSModule ], ]); - curl_setopt($ch, CURLOPT_URL, $url2); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - $response_easee = curl_exec($ch); - curl_close($ch); + curl_setopt($ch2, CURLOPT_URL, $url2); + curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true); + $response_easee = curl_exec($ch2); + curl_close($ch2); if ($response === false || $response_easee === false) { IPS_LogMessage("Ladestation", "Fehler beim Abrufen der API-Daten");