ENSURE README IS FOR CORRECT VERSION OF INSTALLED PACKAGE
Returns/Writes points to the connected Niagara station using the obix protocol. Can read the 'out' value of a control point, write to the 'set' value, batch read/write, and GET or POST in the Niagara Tree and return as JSON
- Path - Used to indicate which variable/point to interact with... path starts after config... ex.
config/TestFolder/TestPoint
, only take"TestFolder/TestPoint"
. - Action - Read, Write, Batch, Raw Get, or Raw Post.
- Value - If
Action
is set toWrite
, the value that will be written to the point specified in the path. - Batch - If
Action
is set toBatch
, the mixture of read/write commands to be executed (More details below).
- Raw Get - If
Action
is set toRaw Get
, returns the raw JSON after being converted from the XML response. The path will also be inputted without prependingconfig/
- Raw Post - If
Action
is set toRaw Post
, returns the raw JSON after being converted from the XML response; also sends a xml string as the body of the request. The path will also be inputted without prependingconfig/
The payload must replace any special characters: Replace Special Characters
Passing the following values will override the default values you may pre-configured.
msg.username
-> Username (String)msg.password
-> Password (String)msg.credentialsKey
-> Key used to obtain credentials from Node-RED settings file (Overridesmsg.username
andmsg.password
) (String)msg.protocol
-> 'https' or 'http' (String)msg.host
-> IP Address (String)msg.port
-> HTTPS/HTTP Port (Number)msg.path
-> Path (String)msg.action
-> 'read', 'write', 'batch', 'rawGet', 'rawPost' (String)msg.value
-> Ifaction
iswrite
, value used when writing to path (String, Boolean, or Number)msg.xmlPayload
-> Ifaction
israwPost
, payload sent as body in POST request (String)msg.batch
-> Ifaction
isbatch
, batch read/write (Object or Object[])- Basic batch format
[ { "path": "Point/Test", "action": "write", "value": "test" }, { "path": "Point/Test1", "action": "read" }, ]
- Basic batch format