Solved Json RPC problem with Gotham
#1
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
Reply
#2
Moved tot Json-RPC forum
Reply
#3
Please provide the response you get from XBMC's JSON-RPC interface.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#4
Damn new firewall problem i wasn't thinking off Confused

Everything is running fine now

Sorry
Reply

Logout Mark Read Team Forum Stats Members Help
Json RPC problem with Gotham0