imbrianj / switchBoard

Control of Internet connected devices within a given network via web interface.
MIT License
201 stars 53 forks source link

Need to add state() to Pioneer #14

Closed imbrianj closed 10 years ago

imbrianj commented 10 years ago

Pioneer controller needs a state() method, similar to what's on the samsung controller. This will ensure the State global variable is reasonably up to date with the on/off state of the device.

A parsers/pioneer.js will need to be made that then takes the State changes and updates the client in real time. Again - this can be taken from parsers/samsung.js. The templates/pioneer.tpl will need to have the token {{DEVICE_STATE}} added to the class - again, as done with samsung.tpl.

Grunt must be run after every parser change as it minifies and adds to the client-side JS.

imbrianj commented 10 years ago

https://github.com/imbrianj/switchBoard/commit/846c64115956963f6103ff6c91831b45552e2f2e