GetChildNodes

GetChildNodes provides the details about the child nodes of a node in the Niagara config space or cached hierarchy tree (for example: “hier:/TridiumBuildings”).

Request example

{
     "requests" : [{,
          "message" : "GetChildNodes",
          "node" : "slot:/TridiumEMEA/MainPower",
     }]
}

Request elements

Request element Value Description
message text GetChildNodes
node Required Defines the PRD to the desired node.

Response example

{ "responses" : [
{
     "message" : "GetChildNodes",
     "node" : "slot:/Logic/TridiumEMEA",
     "nodes" : [
          {
               "node" : "slot:/Logic/TridiumEMEA/MainPower",
               "name" : "MainPower",
               "icon" : "ord?module:icons:/x16/folder.png",
               "hasChildren" : "true",
               "data" : [
          {
                 "data" : "slot:TridiumEMEA_Main",
                 "name" : "TridiumEMEA_Main",
                 "type" : "numeric",
                 "icon" : "/ord?module://icons/x16/schedule.png",]
                 "hasTrend" : "false",
                 "unit" : {
                    "name" : "kilowatt",
                    "symbol" : "kW",
                  }
           },
           {
                "data : "slot:Area",
                "name" : "Area",
                "type" : "numeric",
                "icon" : "/ord?mobile://icons/x16/control/numericPoint.png",
                "hasTrend" : false
           }
      ]
},
    {      "node" : "slot:/Logic/TridiumEMEA/HVAC",
      "name" : "HVAC",
      "icon" : "/ord?module://icons/x16/folder.png",
      "hasChildren" : true
    },
    {
      "node" : "slot:/Logic/TridiumEMEA/TridiumEMEA_OutsideAirTemp",
      "name" : "TridiumEMEA_OutsideAirTemp",
      "icon" : "/ord?module://icons/x16/schedule.png",
      "hasChildren" : true,
      "data" : [
        {
          "data" : "slot:status",
          "name" : "Status",
          "type" : "status",
          "icon" : "/ord?module://icons/x16/object.png",
          "hasTrend" : false
        },
       ...
        {
          "data" : "slot:scanLimit",
          "name" : "Scan Limit",
          "type" : "numeric",
          "icon" : "/ord?module://icons/x16/object.png",
          "hasTrend" : false
        },
        {
          "data" : "slot:facets",
          "name" : "Facets",
          "type" : "baja:Facets",
          "icon" : "/ord?module://icons/x16/object.png",
          "hasTrend" : false
        },
        {
          "data" : "slot:lastModified",
          "name" : "Last Modified",
          "type" : "time",
          "icon" : "/ord?module://icons/x16/object.png",
          "hasTrend" : false
        },
        {
          "data" : "slot:outSource",
          "name" : "Out Source",
          "type" : "string",
          "icon" : "/ord?module://icons/x16/object.png",
          "hasTrend" : false
        },
        {
          "data" : "slot:out",
          "name" : "Out",
          "type" : "numeric",
          "icon" : "/ord?module://icons/x16/statusNumeric.png",
          "hasTrend" : false,
          "unit" : {
            "name" : "fahrenheit",
            "symbol" : "F"
          }
        },
        {
          "data" : "slot:in",
          "name" : "In",
          "type" : "numeric",
          "icon" : "/ord?module://icons/x16/statusNumeric.png",
          "hasTrend" : false,
         "unit" : {
            "name" : "fahrenheit",
            "symbol" : "F"
          }
        },
        {
          "data" : "slot:nextTime",
          "name" : "Next Time",
          "type" : "time",
          "icon" : "/ord?module://icons/x16/object.png",
          "hasTrend" : false
        },
        {
          "data" : "slot:nextValue",
          "name" : "Next Value",
          "type" : "numeric",
          "icon" : "/ord?module://icons/x16/statusNumeric.png",
          "hasTrend" : false,
          "unit" : {
            "name" : "fahrenheit",
            "symbol" : "F"
          }
        },
        {
          "data" : "slot:wsAnnotation",
          "name" : "wsAnnotation",
          "type" : "baja:WsAnnotation",
          "icon" : "/ord?module://icons/x16/object.png",
          "hasTrend" : false
        },
        {

          "data" : "slot:outsideAirTemp",

          "name" : "outsideAirTemp",
          "type" : "numeric",
          "icon" : "/ord?module://icons/x16/history.png",
          "hasTrend" : false,
          "unit" : {
            "name" : "kilowatt",
            "symbol" : "kW"
          }
        }
      ],
      "actions" : [
        {
          "action" : "cleanup",
          "display" : "Cleanup"
        }
      ]
    },
    {
      "node" : "slot:/Logic/TridiumEMEA/Schedules",
      "name" : "Schedules",
      "icon" : "/ord?module://icons/x16/folder.png",
      "hasChildren" : true,
      "data" : [
        {
          "data" : "slot:Occupancy",
          "name" : "Occupancy",
          "type" : "enum",
          "icon" : "/ord?module://icons/x16/schedule.png",
          "hasTrend" : false,
          "range" : [
            "Occupied",
            "Unoccupied",
            "Bypass",
            "Standby",
            "Occ Null"
          ]
        },
        {
          "data" : "slot:Not",
          "name" : "Not",
          "type" : "boolean",
          "icon" : "/ord?module://icons/x16/control/logic/not.png",
          "hasTrend" : false,
          "trueText" : "true",
          "falseText" : "false"
        },
        {
          "data" : "slot:Holidays",
          "name" : "Holidays",
          "type" : "boolean",
          "icon" : "/ord?module://icons/x16/schedule.png",
          "hasTrend" : false,
          "trueText" : "true",
          "falseText" : "false"
        },
        ...
        {
          "data" : "slot:OccupiedHeating",
          "name" : "OccupiedHeating",
          "type" : "boolean",
          "icon" : "/ord?module://icons/x16/schedule.png",
          "hasTrend" : false,
          "trueText" : "true",
          "falseText" : "false"
        },
        {
          "data" : "slot:UnoccupiedCooling",
          "name" : "UnoccupiedCooling",
          "type" : "boolean",
          "icon" : "/ord?module://icons/x16/schedule.png",
          "hasTrend" : false,
          "trueText" : "true",
          "falseText" : "false"
        },
        {
          "data" : "slot:OccupiedCooling",
          "name" : "OccupiedCooling",
          "type" : "boolean",
          "icon" : "/ord?module://icons/x16/schedule.png",
          "hasTrend" : false,
          "trueText" : "true",
          "falseText" : "false"
        }
      ]
    }
  ]
}
]} 

Response elements

In addition to the following, the system echoes back all request elements.

Response element Value Description
nodes various Lists the nodes. The information provided is identical to that returned for GetNode.