Replies: 6 comments
-
Opened enhancement Issue #45. Note that a second network call will be necessary (InfoBooleans have to be retrieved separately from InfoLabels), slowing things down somewhat. |
Beta Was this translation helpful? Give feedback.
-
Hmm.... maybe multiple RPC methods can be combined in a single JSON-RPC request. I'm reading about "batch" requests. I'll have to experiment. |
Beta Was this translation helpful? Give feedback.
-
Should be possible with kodi_panel v1.44 |
Beta Was this translation helpful? Give feedback.
-
I confirm that booleans retrieve work, and I used for time shift detection: de6eb80 Regarding screensaver detection I was not able to make it work, I was not able to understand how autoselect work for status screen. |
Beta Was this translation helpful? Give feedback.
-
See the text below, which I've added to the example setup TOML files. The structure is intended to be similar to that used for auto-selection of video screen layouts, audio screen layouts, etc. The main difference is that the default behavior falls back to the historical one of just using a single-level layout. The auto-selection function described should be able to make use of the Example functionIn startup script:
where setup.toml is also modified to specify
and the (now multi-level)
New text in example setups
|
Beta Was this translation helpful? Give feedback.
-
It work, I did it in my fork ba5ad29 It also needed |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice to have a specific layout for screensaver.
After some digging I found this post on kodi forum
https://forum.kodi.tv/showthread.php?tid=141078
Even if it is old, I confirm that on kodi 18.9 it work
a Json request
{"jsonrpc": "2.0", "method": "XBMC.GetInfoBooleans", "params": { "booleans": ["System.ScreenSaverActive "] }, "id": 1}
will return true or false based on screensaver statusAn other solution that use info label instead of booleans is
Window.Property(xmlfile)
that will return this on my libreelec system/storage/.kodi/addons/screensaver.kaster/resources/skins/default/1080i/screensaver-kaster.xml
. But it will system specific so I believe the boolean method is better.Additionaly one could also imagine other layouts for when video/music is paused and screen saver become active:
More generally a list of all available boolean in kodi:
https://kodi.wiki/view/List_of_boolean_conditions
It could be nice to retrieve it the same way as infolabel and use them is
display_if
ordisplay_ifnot
I do not see concrete example yet, but it will come.
Beta Was this translation helpful? Give feedback.
All reactions