Closed CurlyMoo closed 9 years ago
And of course, it would be a great for letting people know about pilight :smile:
extending xbian-config with web interface - currently no.
but xbian-config can easily be integrated into running web interface (if present) - by calling xbian-config CLI as follows.
xbian-config services stop/start/status xbmc
also the JSON template is correct, but what is really needed is just
"program": "initctl",
"stop-command": "stop xbmc",
"start-command": "start xbmc",
there should be in general only one authority to doing the low level work (starting / stopping). currently it is upstart which has all the informations needed (program binary, other arguments). that way we can be always sure that ALL interfaces will always do the same thing exactly the same way - in that case ask system to start / stop xbmc.
but xbian-config can easily be integrated into running web interface (if present) - by calling xbian-config CLI as follows.
I know, build a lot myself.
extending xbian-config with web interface - currently no.
I didn't said extending. I said using pilight with already existing functionality: starting and stopping programs through a webgui of with your mobile phone or interfacing with LIRC.
Since pilight 4.0 a new program protocol has been introduced. This allows users to start and stop shell scripts and keep track of them. When a program is running the switch in the webgui will state
running
and when it is stopped it will statestopped
.I use this myself to start and stop XBMC and that's working perfectly. I often stop it for development purposes. Now my girlfriend can easily start it again.
It would be cool to extend the xbian-config functionality of program starting / stopping to a webgui and mobile phones.
This is how the config looks for XBMC: