2012-06-11, 01:20
Where in the source code would I find the code that deals with the API functions?
I want to have the API pause command turn off my monitor when I pause and wake up the monitor when it is unpaused. The goal is to be to turn the TV in my sons play room off and on when I pause/unpause his shows.
I will be more than happy to share my code when I am done and suggest it for a future release. The pause command in the API does not current take any perimeters. I will simple add one that enables my function.
i.e.
http://192.168.1.102:8181/xbmcCmds/xbmcH...orControl)
The problem -
My first solution was to use an IR blaster to turn the TV on and off. However, I can not find a way to detect if the Monitor is powered on or off through Linux. There is a way to put the Montior into a "Sleep" mode which basically turns it off without powering it all the way off and check the status to see if it is in that mode. Xbmc has this feature as well, it can be set in the settings under powersaving, but the HTTP API can not wake up the monitor from sleep mode, you must press a key on the keyboard.
http://stackoverflow.com/questions/34332...mmand-line
I want to have the API pause command turn off my monitor when I pause and wake up the monitor when it is unpaused. The goal is to be to turn the TV in my sons play room off and on when I pause/unpause his shows.
I will be more than happy to share my code when I am done and suggest it for a future release. The pause command in the API does not current take any perimeters. I will simple add one that enables my function.
i.e.
http://192.168.1.102:8181/xbmcCmds/xbmcH...orControl)
The problem -
My first solution was to use an IR blaster to turn the TV on and off. However, I can not find a way to detect if the Monitor is powered on or off through Linux. There is a way to put the Montior into a "Sleep" mode which basically turns it off without powering it all the way off and check the status to see if it is in that mode. Xbmc has this feature as well, it can be set in the settings under powersaving, but the HTTP API can not wake up the monitor from sleep mode, you must press a key on the keyboard.
http://stackoverflow.com/questions/34332...mmand-line