An implementation of the Jasper JSON API for Niagara N4.
See Installation for more details:
See API Documentation for more details.
$ curl host/jasper/v1/about -XPOST -u username:password
{
"name": "demo",
"vendor": "Tridium",
"model": "Niagara 4",
"version": "4.12.0.156",
"moduleName": "jasper",
"moduleVersion": "0.13"
}
$ curl host/jasper/v1/sources -XPOST -u username:password
{
"sources": [
{
"id": "54d",
"name": "Chiller",
"path": "/Drivers/NiagaraNetwork/JACE-02/points/Chiller"
},
{
"id": "620",
"name": "VAV-1",
"path": "/Drivers/NiagaraNetwork/JACE-05/points/VAV-1"
},
{
"id": "621",
"name": "VAV-2",
"path": "/Drivers/NiagaraNetwork/JACE-05/points/VAV-2"
},
{
"id": "622",
"name": "VAV-3",
"path": "/Drivers/NiagaraNetwork/JACE-05/points/VAV-3"
}
]
}
$ curl host/jasper/v1/points -XPOST -d source_id=620 -u username:password
{
"points": [
{
"addr": "av.DamperPosition",
"name": "Damper Position"
},
{
"addr": "bv.",
"name": "Fan Status"
},
{
"addr": "av.ZoneTemp",
"name": "Zone Temp",
"unit": "°F"
},
{
"addr": "ao.ReturnTemp",
"name": "Return Temp",
"unit": "°F"
},
{
"addr": "ao.DischargeTemp",
"name": "Discharge Temp",
"unit": "°F"
}
]
}
$ curl host/jasper/v1/values -XPOST -d source_id=620 -u username:password
{
"values": [
{ "addr":"av.DamperPosition", "val":72.0 },
{ "addr":"bv.FanStatus", "val":1 },
{ "addr":"av.ZoneTemp", "val":72.0 },
{ "addr":"ao.ReturnTemp", "val":73.142 },
{ "addr":"ao.DischargeTemp", "val":68.230 }
]
}