diff --git a/Monitoring Client/module.php b/Monitoring Client/module.php index 1413a82..5ca2eb3 100644 --- a/Monitoring Client/module.php +++ b/Monitoring Client/module.php @@ -147,6 +147,10 @@ class MonitoringClient extends IPSModule { $parname = IPS_GetName($catChild); + $parname = str_replace("/","_", $parname); + + IPS_SetName($catChild, $parname); + foreach ($childids as $childid){ if (IPS_VariableExists($childid) != 1){ if(IPS_LinkExists($childid) == 1){ @@ -160,6 +164,12 @@ class MonitoringClient extends IPSModule { $changedtime = $varInfo["VariableChanged"]; $varname = IPS_GetName($childid); + + + $varname = str_replace("/","_", $varname); + + IPS_SetName($childid, $varname); + $topic = $catId["top"]. $parname."_".$varname; $time = time(); $payload = round(getvalue($childid), 2); diff --git a/Monitoring Server Influx V1/module.php b/Monitoring Server Influx V1/module.php index a73d74f..3ef3c1c 100644 --- a/Monitoring Server Influx V1/module.php +++ b/Monitoring Server Influx V1/module.php @@ -234,12 +234,6 @@ class MonitoringServer extends IPSModule { $parname = str_replace(" ","", $parname); $varname = str_replace(" ","", $varname); - $parname = str_replace("(","", $parname); - $varname = str_replace("(","", $varname); - - $parname = str_replace(")","", $parname); - $varname = str_replace(")","", $varname); - $parname = str_replace("/","_", $parname); $varname = str_replace("/","_", $varname); diff --git a/library.json b/library.json index 10300e1..bcaaccc 100644 --- a/library.json +++ b/library.json @@ -8,6 +8,6 @@ "date": 1491343200 }, "version": "2.0", - "build": 10, + "build": 11, "date": 0 } \ No newline at end of file