2013-01-07, 04:10
Hi,
I have upgraded from Eden to Frodo and am having trouble tracking down the information I need to update my script that logs out the active user when the system resumes. My old script issued a curl command to the XBMC http server to send the logout command.
My old script
I was reading and noticed that the old method of sending commands to the XBMC device has been switched to a JSON RPC structure but I am having trouble tracking down how to achieve this.
Any help would greatly be appreciated.
I have upgraded from Eden to Frodo and am having trouble tracking down the information I need to update my script that logs out the active user when the system resumes. My old script issued a curl command to the XBMC http server to send the logout command.
My old script
Code:
#!/bin/sh
# This script uses curl. Install curl using the following command from your terminal apt-get install curl
case "$1" in
resume)
curl "http://xbmc:[email protected]:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=System.Logoff"
;;
esac
I was reading and noticed that the old method of sending commands to the XBMC device has been switched to a JSON RPC structure but I am having trouble tracking down how to achieve this.
Any help would greatly be appreciated.