Http request - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Web Interfaces (https://forum.kodi.tv/forumdisplay.php?fid=156) +---- Thread: Http request (/showthread.php?tid=259169) |
Http request - JethroCl - 2016-02-07 Hi all! I'm trying to build an ipcamera interface for Kodi that overlays a small picture of the camera image on the screen of my tv when movement is detected. Showing the image works well (with press of a remote button), but the software that runs on my server (Xeoma) handles a motion detection with a http request that triggers the execution of a script on Kodi to display the camera image. However i cannot seem to find the http request to work... My script is named "script.securitycam" and is in the default location under "addons" among all other scripts. What I tried to send with Firefox-addon Http Requester is the following: http://192.168.0.245:8090/jsonrpc?request={"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"Addons.ExecuteAddon","params":{"addonid":"script.securitycam"},"id":"1"}} The IP is definitly correct, but I'm not sure the port is too. However, I tried 80, 8080, 9090 and 8090 all coming with different responses. 80: Response {"error":{"code":-32700,"message":"Parse error."},"id":null,"jsonrpc":"2.0"} 8080: Response 0 8090: Response 0 9090: Response 0 Can someone point me out in the right direction? RE: Http request - zag - 2016-02-09 You set the port in the kodi settings. Default is 8080 but can be 80 on older versions. |