Script to display Regional Settings - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Script to display Regional Settings (/showthread.php?tid=338754) |
Script to display Regional Settings - james739 - 2018-12-28 Good day everyone, Happy holidays to you all! I am trying to display the regional settings through scripting so that when I click on it, the regional changes. So far I have this code, it was barrowed from script that brings up the language settings. Only issue is that when I click on region, it does not change in Kodi settings. Can someone please assist? :
RE: Script to display Regional Settings - james739 - 2018-12-28 RE: Script to display Regional Settings - james739 - 2018-12-28 In case not very clear, this is the information I am trying to display through script RE: Script to display Regional Settings - ronie - 2018-12-30 you'd likely need to use json-rpc to alter the setting. https://kodi.wiki/view/JSON-RPC_API/v9#Settings.SetSettingValue RE: Script to display Regional Settings - james739 - 2019-01-09 (2018-12-30, 15:26)ronie Wrote: you'd likely need to use json-rpc to alter the setting.Thanks for the tip! Can this be done through skin or use script? Can you please provide example on how to do this? Thanks again RE: Script to display Regional Settings - ronie - 2019-01-09 it's not something that can be done through skinning, so you'd have to create an addon for it. the json command should be something like this (not tested): {"jsonrpc": "2.0", "method": "Settings.SetSettingValue", "params": {"setting": "locale.country", "value": "USA (12h)"}, "id": 1} the thing i don't know is if kodi will apply the new setting right away or if a reload / restart is required. RE: Script to display Regional Settings - james739 - 2019-01-10 (2019-01-09, 21:41)ronie Wrote: it's not something that can be done through skinning, so you'd have to create an addon for it.I will give a try. Thank you |