Kodi Community Forum

Full Version: Json RPC problem with Gotham
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Moved tot Json-RPC forum
Please provide the response you get from XBMC's JSON-RPC interface.
Damn new firewall problem i wasn't thinking off Confused

Everything is running fine now

Sorry