Kodi Community Forum
Configure peripherals through RPC - 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: Configure peripherals through RPC (/showthread.php?tid=184122)



Configure peripherals through RPC - yoyurik - 2014-01-22

Hi All!

Is it possible to configure peripherals through JSON RPC just like I can do via [Settings - System - Input Devices - Peripherals - Edit]?
Basically I want to disable some peripherals from scripts when my TV is off or when other source is active ().

I was trying to find peripheral settings in GetSettings/SetSettings methods, but no luck.

Any help on how to do that is appreciated.

Thanks!


RE: Configure peripherals through RPC - Montellese - 2014-01-22

Unforunately peripherals configuration is implemented completely independent of the other settings in XBMC so you can't access those through the methods in the Settings namespace. Right now there's no way to do what you want.


RE: Configure peripherals through RPC - tannyl - 2021-03-24

Sorry for bringing back an old thread, but I have the exact same question.

It has been 5-6 years now. Has anything changed so that it it possible to change peripheral settings via the JSON-RPC?

My problem is, I need to disable the "CEC adapter" in the "pre-start" script of the "Steam Launcher" plugin from @teeedubb, because otherwise it will send a "shutdown" command to the TV and turn it off (which it should do when the "shutdown" command is used in Kodi) when I start Steam.