Closed techman83 closed 10 years ago
/api/station/:mac/status <- easy to change if need be
The stations will post status updates when things change, will need to add a route for this.
Data structure is currently as below
{ "macaddress" : "xx:xx:xx:xx:xx:xx", "nickname" : "test", "status" : { "record" : { "timestamp" : 1388108116, "status" : "started", "running" : 1, "type" : "record", "state" : "hard" }, "dvmon" : { "timestamp" : 1388108113, "status" : "started", "running" : 1, "type" : "internal", "state" : "hard" }, "dvswitch" : { "timestamp" : 1388108114, "status" : "started", "running" : 1, "type" : "mixer", "state" : "hard" }, "2" : { "timestamp" : 1388108118, "status" : "started", "running" : 1, "type" : "alsa", "state" : "hard" }, "api" : { "timestamp" : 1388108112, "status" : "started", "running" : 1, "type" : "internal", "state" : "hard" } } }
No dedicated route required, changed partial update to be a param. a5902f78a6893097b2e24b38ae8bc374422c54b9
/api/station/:mac/status <- easy to change if need be
The stations will post status updates when things change, will need to add a route for this.
Data structure is currently as below