From 5fb47be874134b4a448241f28fce0f650f90fafd Mon Sep 17 00:00:00 2001 From: jhartworks Date: Fri, 4 Jul 2025 14:59:17 +0200 Subject: [PATCH] path edited --- Monitoring Server Influx V1/module.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Monitoring Server Influx V1/module.php b/Monitoring Server Influx V1/module.php index 02a4c41..ad55014 100644 --- a/Monitoring Server Influx V1/module.php +++ b/Monitoring Server Influx V1/module.php @@ -629,7 +629,8 @@ class MonitoringServer extends IPSModule { // Pfad erstellen $ftpPath = "$yearName/$projectName/$ispName"; - $pathParts = explode("/", $ftpPath); + ftp_mkdir($ftp, $currentPath); +/* $pathParts = explode("/", $ftpPath); $currentPath = ""; foreach ($pathParts as $part) { $currentPath .= "$part/"; @@ -637,7 +638,7 @@ class MonitoringServer extends IPSModule { ftp_mkdir($ftp, $currentPath); } } - + */ // Temp-Dateipfad vorbereiten @@ -670,7 +671,7 @@ class MonitoringServer extends IPSModule { $formattedValue = GetValueFormatted($varId); $data .= "\"{$parentName}\";\"{$varName}\";\"{$formattedValue}\"\n"; - IPS_LogMessage ("Filecontens", $data); + //IPS_LogMessage ("Filecontens", $data); } } } @@ -683,11 +684,11 @@ class MonitoringServer extends IPSModule { $state = fwrite($file, $data); fclose($file); - IPS_LogMessage ("File Create", "File Put State/Size: ".$state); + //IPS_LogMessage ("File Create", "File Put State/Size: ".$state); // Lade hoch $putstate = ftp_put($ftp, $remotePath, $path, FTP_BINARY); - IPS_LogMessage ("FTP", "FTP Put State: ".$putstate); + //IPS_LogMessage ("FTP", "FTP Put State: ".$putstate); } }