2014-08-27, 09:33
Hello
i used an Json RPC call for notification and to start an addon in 12.0
I now changed to 13.2 Gotham and it doesnt work anymore.
I turned the webinterface on at port 8080 and used the same user and password as in 12.0
To start the addon i used
# Browser command
http://xbmc:xbmc@localhost:8080/jsonrpc?request={"jsonrpc":"2.0","id":1,"method":"Addons.ExecuteAddon","params":{"addonid":"script.doorbell"}}
# Terminal command
curl -su xbmc:xbmc -H "Content-type: application/json" -X POST -d '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.doorbell"},"id":1}' http://localhost:8080/jsonrpc
# Applescript command
do shell script "curl -su xbmc:xbmc -H \"Content-type: application/json\" -X POST -d '{\"jsonrpc\":\"2.0\",\"method\":\"Addons.ExecuteAddon\",\"params\":{\"addonid\":\"script.doorbell\"},\"id\":1}' http://localhost:8080/jsonrpc"
The notification was started with
# Applescript command
do shell script "curl -v -H \"Accept: application/json\" -H \"Content-type: application/json\" -X POST -d '{\"id\":1,\"jsonrpc\":\"2.0\",\"method\":\"GUI.ShowNotification\",\"params\":{\"title\":\"ACHTUNG\",\"message\":\"" & Errormessage & "\"}}' http://xbmc:xbmc@localhost:8080/jsonrpc"
can anyone help me to get it running in Gotham?
Cu Shigoru
i used an Json RPC call for notification and to start an addon in 12.0
I now changed to 13.2 Gotham and it doesnt work anymore.
I turned the webinterface on at port 8080 and used the same user and password as in 12.0
To start the addon i used
# Browser command
http://xbmc:xbmc@localhost:8080/jsonrpc?request={"jsonrpc":"2.0","id":1,"method":"Addons.ExecuteAddon","params":{"addonid":"script.doorbell"}}
# Terminal command
curl -su xbmc:xbmc -H "Content-type: application/json" -X POST -d '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.doorbell"},"id":1}' http://localhost:8080/jsonrpc
# Applescript command
do shell script "curl -su xbmc:xbmc -H \"Content-type: application/json\" -X POST -d '{\"jsonrpc\":\"2.0\",\"method\":\"Addons.ExecuteAddon\",\"params\":{\"addonid\":\"script.doorbell\"},\"id\":1}' http://localhost:8080/jsonrpc"
The notification was started with
# Applescript command
do shell script "curl -v -H \"Accept: application/json\" -H \"Content-type: application/json\" -X POST -d '{\"id\":1,\"jsonrpc\":\"2.0\",\"method\":\"GUI.ShowNotification\",\"params\":{\"title\":\"ACHTUNG\",\"message\":\"" & Errormessage & "\"}}' http://xbmc:xbmc@localhost:8080/jsonrpc"
can anyone help me to get it running in Gotham?
Cu Shigoru