Solved Json RPC problem with Gotham - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174) +---- Thread: Solved Json RPC problem with Gotham (/showthread.php?tid=203051) |
Json RPC problem with Gotham - Shigoru - 2014-08-27 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 RE: Json RPC problem with Gotham - Kib - 2014-08-27 Moved tot Json-RPC forum RE: Json RPC problem with Gotham - Montellese - 2014-08-27 Please provide the response you get from XBMC's JSON-RPC interface. RE: Json RPC problem with Gotham - Shigoru - 2014-08-28 Damn new firewall problem i wasn't thinking off Everything is running fine now Sorry |