2017-04-19, 16:31
Hi,
I'm trying to remotely disable the Aerial screensaver on kodi 17 using json-rpc and curl.
The addon is enabled:
gets answer:
but when I try to disable it by making
I get
while doing the same but setting "enabled" to true gets
I'm completely in the dark, if anyone could help me...
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...
sets the screensaver to "dim", now Aerial can be disabled...
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:
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"addon": {
"addonid": "screensaver.atv4",
"enabled": true,
"name": "Aerial",
"type": "xbmc.ui.screensaver"
}
}
}
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:
{
"error": {
"code": -32602,
"message": "Invalid params."
},
"id": 1,
"jsonrpc": "2.0"
}
Code:
{
"id": 1,
"jsonrpc": "2.0",
"result": "OK"
}
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