Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
it's not using an alarm, but a built-in timer.
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
nope.
depending on what you're exactly trying to accomplish, a combination of these might work:
- use json-prc to check if the setting is enabled / what value it's been set to.
- use xbmc.getCondVisibility('System.IdleTime(300)') to check if the system has been idle for the specified amount of time
Posts: 31
Joined: Sep 2011
Reputation:
0
otkaz
Junior Member
Posts: 31
2017-02-19, 01:00
(This post was last modified: 2017-02-19, 01:04 by otkaz.)
I think I can make that work for this. One more question. Does inhibitidleshutdown reset that timer or just not allow the shutdown while it's enabled? To clarify. If you set the sleep timer for say 5 minutes and inhibit sleep is enabled and it's been say 10 minutes if the inhibit is taken off does it sleep instantly or wait another 5 minutes? Thanks for all your help!
Posts: 31
Joined: Sep 2011
Reputation:
0
otkaz
Junior Member
Posts: 31
Finally made it home and had time to play with this. It seems inhibit idle shutdown does not effect the system.idletime. How does the inhibitidle shutdown effect the shutdown timer? does it reset it or as I asked above just wait till its no longer inhibited and immediately shutdown? Sure would be easier if I could just access the shutdown timer to check how much time was left on it.