Page 1 of 1

Getting data from Pellet boiler

Posted: Friday 30 March 2018 22:09
by haden
Hi

I would like to get data from my pellet boiler into Domoticz for logging. It has a web interface and I'm able to get data from it, using powershell or node-red, but how do i transfer a multi property/value JSON into Domoticz?

First i need to request a token based on my user ID.
Then i use this token to get the data, which return a JSON like like this:

Code: Select all

{
    "boilerdata":  [
                       {
                           "id":  "smoketemp",
                           "value":  38.9,
                           "unit":  "°C",
                           "name":  "lng_boil_3"
                       },
                       {
                           "id":  "return",
                           "value":  "21.7",
                           "unit":  "°C",
                           "name":  "lng_boil_17"
                       },
                       {
                           "id":  "power",
                           "value":  "0",
                           "unit":  "%",
                           "name":  "lng_boil_4"
                       },
                       {
                           "id":  "dropshaft",
                           "value":  19.3,
                           "unit":  "°C",
                           "name":  "lng_boil_7"
                       }
                   ],
    "hopperdata":  [
                       {
                           "id":  "hopperdistance",
                           "value":  "40",
                           "unit":  "cm",
                           "name":  "lng_hopper_14"
                       },
                       {
                           "id":  "consume-last24h",
                           "value":  "16.9",
                           "unit":  "kg",
                           "name":  "lng_hopper_3"
                       }
                   ]
}