Difference between revisions of "Add-on:Sleep"

From Official Kodi Wiki
Jump to navigation Jump to search
(Add Delete template to empty page)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Addon
{{Delete|Page emptied by add-on author and hasn't been in official repository for three consecutive major release cycles}}
|Name=Sleep
|provider-name=robwebset
|ID=script.sleep
|extension point=xbmc.python.script
|provides=
|Summary=A TV like sleep timer
|Description=Add improved sleep behaviour to your Kodi system, allowing the system to shut down after a certain amount of time.
|Platform=all
|Language=
|License=GNU GENERAL PUBLIC LICENSE. Version 3, 29 June 2007
|Forum=http://forum.kodi.tv/showthread.php?tid=261959
|Website=
|Source=https://github.com/robwebset/script.sleep
|Email=
|broken=
|icon url=https://github.com/robwebset/script.sleep/raw/master/icon.png}}
 
<!-- Page content goes here -->
== Introduction ==
You can install this addon from: [[Repository:robwebset]]
<br />
<br />
The Sleep addon provides support to automatically shutdown/suspend Kodi in a similar manner to the traditional TV Sleep Timers. If has many additional features and can be launch by any of the following methods:
* From the "Programs" area of Kodi
* As a screensaver
* Via a remote control or keyboard button (Configurable which button)
<br />
<br />
== The Sleep Dialog ==
<center>[[File:Sleep-Dialog.JPG|Sleep Timer Dialog|none|thumb|300px]]</center>
The dialog to control the Sleep Addon is designed to be as simple as possible. When the dialog first opens it will show the sleep timer as disabled, the timer can be extended, by default in ten minute intervals (configurable in the settings), by performing either of the following actions:
* Pressing the configured remote or keyboard button again (For each press it will extend the timer)
* Selecting the "+10" button on the dialog
If the sleep timer is currently set if can be reduced or cancelled by selecting either the "-10" button or the cancel button.
<br /><br />
The sleep timer will also allow you to have Kodi shutdown after a video finishes playing. If there is a video playing when the sleep timer is set, it will shutdown after it completes. If there is not currently a video playing it will shutdown after the next played video completes. (Note: The Sleep timer will only shutdown the system if the video completes playing, if the video is stopped manually, then sleep timer will not shutdown - this is by design).
<br />
<br />
== Shutdown Warnings ==
When the Sleep timer is about to expire and shutdown the system it will again display the shutdown dialog with a progress bar showing how long it is until the shutdown will commence. While this dialog is displayed the timer can be:
* Extended (In the same manner as it was originally set)
* Cancelled (By selecting the cancel button)
* Left to expire and shutdown Kodi.
In addition to the shutdown dialog, it is possible to configure the Sleep Addon to display a notification of how long is left before shutdown will be performed (for example 30, 20, 10 minutes left).
<br />
<br />
== Remote Control or Keyboard Setup ==
It is possible to configure the Sleep Addon to response to a keyboard or remote control button press. This can be done by either selecting one of the predefined options in the Addon settings or have the Sleep Addon auto detect a key/button press and then use that to allow you to control the Sleep Addon. This can be configured from the Sleep Addon Settings.
<br />
<br />
== Sleep After Idle Period ==
If you with to have the Sleep Addon detect when the system has been idle for a set period of time, and then start the notification for shutdown, this can be done by selecting Sleep as your chosen screensaver, then when the screensaver triggers, it will display the Sleep shutdown dialog.
<br />
<br />
== Settings ==
=== Sleep ===
{| border="0"
|- valign=top
|
:'''Sleep Interval Length (Minutes)'''
::How much to increase or decrease the time when the +/- button is pressed of the configured sleep key
:'''Warning Length (Seconds)'''
::How long to display the warning dialog before shutdown
:'''Maximum Sleep Time (Minutes)'''
::The maximum time that the timer can be set for, after that time the timer will loop from zero again
:'''Pause Video When Displaying Timer Dialog'''
::If the timer dialog is displayed while a video is playing, should the video be paused?
:'''Shutdown Earlier If Screensaver Starts'''
::If the timer has been set, and the screensaver starts, trigger shutdown
:'''Display Sleep Reminders'''
::If on every "Sleep Interval" a notification should be displayed stating how much time remains before shutdown
:'''Dim Screen'''
::If the timer has been set, dim the screen so that it is darker - aka "Night Time Mode"
| [[File:Sleep-Settings1.JPG|400px]]
|}
=== Controls ===
{| border="0"
|- valign=top
|
:'''Button Selection'''
::Choose which button to map to the Sleep command. Either None, Mute, Astrisk (*) or Custom
:'''Automatic Button Detection'''
::Allows a button to be automatically detected by the Sleep Addon and used to control it
:'''Manual Detection'''
::For advanced users only - allows the manual codes to be entered
| [[File:Sleep-Settings2.JPG|400px]]
|}
=== Advanced ===
{| border="0"
|- valign=top
|
:'''Shutdown Behaviour'''
::Allows the operation that is performed when the timer expires to be change.
::''Default Shutdown'' - Performs the shutdown set in the Kodi System Settings
::''HTTP Request'' - Makes a call to the given URL
::''Screensaver'' - Stats the Kodi screensaver
::''Scripts'' - Runs the given python script
:<u>'''''Setup'''''</u>
::
:'''Debugging'''
::Enables Sleep debug logging (Required if reporting a problem) - for this to work, system-wide Kodi [[Settings/System#Debugging|logging]] must also be enabled
| [[File:Sleep-Settings3.JPG|400px]]
|}
<br />
<br />
== Debugging ==
If reporting a problem, please also provide a debug log. To do this you need to enable BOTH:
* Kodi [[Settings/System#Debugging|logging]] from the main setting menu
* Sleep Addon debug from the Sleep addon settings menu
Please do not paste the log into the forum thread, just link to it.
<br />
<br />
== Donations ==
If you have found the Sleep Addon useful and would like to help support future development and bug fixes, then please feel free to make a small donation.
<br />
<br />
Please use the link on the top of the [http://forum.kodi.tv/showthread.php?tid=261959 Sleep Forum]
<br />
<br />

Latest revision as of 23:35, 29 September 2021

Delete.png Someone has requested that this page be deleted. If you disagree with that assessment, please leave a message on its Talk page explaining why; an admin will see it before any action is taken.
Reason: Page emptied by add-on author and hasn't been in official repository for three consecutive major release cycles