Set System Settings by skin (Manually)
#1
Star 
Is there any way to set (onclick event or in the startup) XBMC settings such as language, region, audio output device etc... ?
Reply
#2
only by using python.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
no, you'd need to write a python script for such things.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#4
(2014-10-16, 22:12)ronie Wrote: no, you'd need to write a python script for such things.

Then how? By using Skin.SetString(string[,value]) or Skin.ToggleSetting(setting) ?
Reply
#5
no, by using JSON-RPC. if you have never heard of it then better forget your idea. Big Grin
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#6
(2014-10-16, 22:17)phil65 Wrote: no, by using JSON-RPC. if you have never heard of it then better forget your idea. Big Grin

I'm a web developer, So I know JSON-RPC, Angel And I already know XBMC provide json api. If I used the api, what are the parameters I should POST to set such system settings ? Huh
Reply
#7
since it is pretty new stuff (was added for helix) you probably should look into the xbmc code itself on how to use it:
https://github.com/xbmc/xbmc/blob/2228e7...thods.json
Method is called Settings.SetSettingValue.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#8
(2014-10-16, 22:33)phil65 Wrote: since it is pretty new stuff (was added for helix) you probably should look into the xbmc code itself on how to use it:
https://github.com/xbmc/xbmc/blob/2228e7...thods.json
Method is called Settings.SetSettingValue.

Thank you. Nod
Reply
#9
You should use get jsonrpc introspect request. Should be be somewhere on the wiki.
The chorus webinterface has it build in so I highly recommend it for testing purposes
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#10
hi minuwan
Did you complete your work? I like to know about that..
Reply
#11
You can also use this directly in your skin if you want.

https://github.com/marcelveldt/script.sk...di-setting
Reply
#12
Thanks marcelveldt....

bad luck ... still I cannot set kodi (XBMC) setting change in the startup or Home screen Huh??
Reply

Logout Mark Read Team Forum Stats Members Help
Set System Settings by skin (Manually)1