Start Addon from web reques

Hi,

I just installed the securitycam addon, i’m trying to launch it from a web request but i cant’ find the correct request.

http://kodiip/jsonrpc?request={“jsonrpc”:“2.0”,“method”:“Addons.ExecuteAddon”,“params”:{“addonid”:“script.securitycam”},"id”:”1”}}

I get this answer : {“error”:{“code”:-32700,“message”:“Parse error.”},“id”:null,“jsonrpc”:“2.0”}

Any idea how i can launch the addon ?

I think there’s an extra close bracket at the end. Also, I don’t know if it’s just pasting into the forum, but you have a mix of smart quotes and regular quotes. The request should have only regular quotes. And I think the params list has to be in square brackets (at least if I’m reading the API docs correctly). Maybe something like this in the request:

{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":[{"addonid":"script.securitycam"}],"id":"1"}

I haven’t actually tested that, but it’s worth a try.

I get this now: {“error”:{“code”:-32099,“message”:“Bad client permission.”},“id”:“1”,“jsonrpc”:“2.0”}

Allow remote control via http is enable on port 80
Usermane & password is set
Allow remote control from app is enable also

You should probably be asking questions like these on the Kodi forums, or asking the addon developer as it’s not really related to OSMC.