All,

I'm setting up a httpjson input with the following config:

 [[inputs.httpjson]]
   name = "otmonitor"
   servers = [
     "http://localhost:8080/json";,
   ]
   response_timeout = "5s"
   method = "GET"

When I run the test (sudo -u telegraf telegraf --config 
/etc/telegraf/telegraf.conf) I get the following error:

ERROR in input [inputs.httpjson]: point without fields is unsupported

when I curl the localhost URL all is fine and the JSON is displayed. I thought 
the JSON was always flattened and that it would only pick up the numbers, this 
is how the JSON looks:

{
  "otgw": {
    "time": "2016-12-19 22:06:48 +0100",
    "firmware": {
      "name": "Opentherm Gateway",
      "version": "4.2.5"
    },
    "software": {
      "name": "Opentherm Monitor",
      "version": "4.3"
    }
  },
  "flame": {
    "value": "1",
    "description": "Flame status"
  },
  "dhwmode": {
    "value": "0",
    "description": "Domestic hot water mode"
  },
  "chmode": {
    "value": "1",
    "description": "Central heating mode"
  },
  "dhwenable": {
    "value": "1",
    "description": "Domestic hot water enable"
  },
  "diag": {
    "value": "0",
    "description": "Diagnostic indication"
  },
  "fault": {
    "value": "0",
    "description": "Fault indication"
  },
  "outside": {
    "value": "49.00",
    "description": "Outside temperature"
}
}

If this doesn't work, what would you recommend me to get the data into influxdb?

-- 
Remember to include the version number!
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/74ff0cb4-8ce8-4c99-abb6-5ee09db9eae2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to