PoE Output channels

GET /ATX/hardware/outputs/(string: index)

Returns the state of the PoE Channel at the respective index. TODO verify URL

Example request:

GET /ATX/hardware/outputs/ch2 HTTP/1.0
Host: 192.168.168.168
Accept: application/json, text/javascript

Example response:

HTTP/1.0 200 OK
Content-Type: application/json

{
   "TODO":"TODO"
}
Response JSON Object:
 
  • id (string) – The name of the resource (IE a relay or PoE Channel can be named and are tagged with this name should an alert occur from this resource).
  • status (string) – Human readable string indicating the status of the PoE Channel. (IE: “on”/”off”)
  • ... (string) – TODO
POST /ATX/hardware/outputs/(string: index)/status

Change the state of the PoE Chanenl output

Example request:

POST /ATX/hardware/outputs/ch3/status HTTP/1.0
Host: 192.168.168.168
Accept: application/json, text/javascript
Content-Type: application/json

{
   "status":0
}
Request JSON Object:
 
  • status (string) – If the supplied property is a number, the PoE Channel will either turn on (status=1), or turn off (status=0)
  • status – If the supplied property is a string, the PoE Channel will either Pulse (status=’p’) or toggle (status=’t’), Where a “pulse” command will either pulse on for x seconds, or pulse off for x seconds, and where seconds is determined by the “pulse” property of the same eflow object.

Example response:

HTTP/1.0 200 OK
Content-Type: application/json

{
   "error":200
}