Python: How to get the Screensaver delay time
#1
Hi All,

I have been hunting around the forums and have failed to find an upto date answer.

I would like to find out, from a python script add-on, what the current setting of the screensaver "delay time" (i.e. how long to have inactivity before coming on). I found an old post that showed:

Code:
screensavertime = xbmc.executehttpapi( "GetGUISetting(0;screensaver.time)" ).replace( "<li>", "" )

But the xbmc.executehttpapi interface has been deprecated.

I have searched the JSON interface, thought it might be in "GUI.GetProperties" but it doesn't appear so.

Does anyone have any idea how I can find out this value? (I don't want to change it - just want to know it)

Any assistance would be greatly appreciated

Thanks, Rob
Reply
#2
i'm pretty sure it's just not possible.
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
#3
as already stated in the other thread Smile

at least not without ugly hacking which would disallow you from adding it to repo Wink
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
#4
(2013-10-02, 11:11)Martijn Wrote: as already stated in the other thread Smile

at least not without ugly hacking which would disallow you from adding it to repo Wink

The other thread:

http://forum.xbmc.org/showthread.php?tid=174621

Was asking about how to detect when the screensaver is about to start.

This question was different - it was about how to find out a property of the screensaver (looking up what was in the settings) regardless of it currently running or not.

Shame it was something that we used to be able to check, and we lost that facility :-(
Reply
#5
questions where asked what was missing from the JSON-RPC long ago and almost no response, then httpapi was killed and people came crying.

all i can say is too bad, they were warned but did nothing
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
#6
In case anyone doing searches stumbles accross this thread, I have raised a request for this to be added to Gotham:

http://forum.xbmc.org/showthread.php?tid=174850
Reply
#7
(2013-10-02, 11:50)Martijn Wrote: questions where asked what was missing from the JSON-RPC long ago and almost no response, then httpapi was killed and people came crying.

all i can say is too bad, they were warned but did nothing

Well I'll just let you read again all the JSON forum and all requests that where made Wink
Last time this was said I had linked lot of missing asked stuff but no answer Wink

So I'm sorry but yes HTTP removal is good but don't say we did not ask for things and well the minimal organisation to have more coders on the JSON part even for Gotham was not possible Wink
(http://forum.xbmc.org/showthread.php?tid=166398 as a reminder Wink )
Reply

Logout Mark Read Team Forum Stats Members Help
Python: How to get the Screensaver delay time0