Update influxdb-logger.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Mon, 29 Jul 2019 01:04:23 +0000 (18:04 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Mon, 29 Jul 2019 01:04:23 +0000 (18:04 -0700)
third-party/influxdb-logger.groovy

index 3cba6e31e2b15650727af527747bec9f3b50c66e..4eb95a25f6adb47ce09046c3e022cc68b59c26f5 100755 (executable)
@@ -598,7 +598,7 @@ def logSystemProperties() {
 def postToInfluxDB(data) {
     logger("postToInfluxDB(): Posting data to InfluxDB: Host: ${state.databaseHost}, Port: ${state.databasePort}, Database: ${state.databaseName}, Data: [${data}]","debug")
     
-    try {
+   /* try {
         def hubAction = new physicalgraph.device.HubAction(
                [
                 method: "POST",
@@ -614,7 +614,7 @@ def postToInfluxDB(data) {
     }
     catch (Exception e) {
                logger("postToInfluxDB(): Exception ${e} on ${hubAction}","error")
-    }
+    }*/
 
     // For reference, code that could be used for WAN hosts:
     // def url = "http://${state.databaseHost}:${state.databasePort}/write?db=${state.databaseName}" 
@@ -636,11 +636,11 @@ def postToInfluxDB(data) {
  *
  *  Handles response from post made in postToInfluxDB().
  **/
-def handleInfluxResponse(physicalgraph.device.HubResponse hubResponse) {
+/*def handleInfluxResponse(physicalgraph.device.HubResponse hubResponse) {
     if(hubResponse.status >= 400) {
                logger("postToInfluxDB(): Something went wrong! Response from InfluxDB: Headers: ${hubResponse.headers}, Body: ${hubResponse.body}","error")
     }
-}
+}*/
 
 
 /*****************************************************************************************************************