Linux [solved] Addons.SetAddonEnabled can't disable Aerial addon - 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: Linux [solved] Addons.SetAddonEnabled can't disable Aerial addon (/showthread.php?tid=312707) |
[solved] Addons.SetAddonEnabled can't disable Aerial addon - bearn - 2017-04-19 Hi, I'm trying to remotely disable the Aerial screensaver on kodi 17 using json-rpc and curl. The addon is enabled: Code: curl -s -H "Content-Type: application/json" -X POST -d '{"jsonrpc": "2.0", "method": "Addons.GetAddonDetails", "params": {"addonid": "screensaver.atv4","properties":["enabled","name"]}, "id": 1}' http://remotecomputer/jsonrpc Code: { Code: curl -s -H "Content-Type: application/json" -X POST -d '{"jsonrpc": "2.0", "method": "Addons.SetAddonEnabled", "params": {"addonid": "screensaver.atv4", "enabled":false}, "id": 1}' http://remotecomputer/jsonrpc Code: { Code: { Thanks in advance. edit: Must be because the screensaver is enabled and selected/active. If I can set active screensaver to "none" I'll be able to disable it. Unfortunately I can't delete his post, I get an error message... Code: curl -s -H "Content-Type: application/json" -X POST -d '{"jsonrpc": "2.0", "method": "Settings.SetSettingValue", "params": {"setting": "screensaver.mode","value": "screensaver.xbmc.builtin.dim"}, "id": 1}' http://remotecomputer/jsonrpc |