Kodi Community Forum
Release Sleep Timer (service.sleeptimer) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152)
+---- Thread: Release Sleep Timer (service.sleeptimer) (/showthread.php?tid=211971)

Pages: 1 2 3 4 5 6


RE: Sleep Timer (service.sleeptimer) - squirrellydw - 2016-06-03

I love this idea but it didn't seem to work for me last night. I'm running kodi on my Fire TV. I would like it to remind me every 30 minutes, what setting do I need to change?

Also I would like it to exit kodi when the timer is up, what do I put in the config?


RE: Sleep Timer (service.sleeptimer) - squirrellydw - 2016-06-05

No ideas??


RE: Sleep Timer (service.sleeptimer) - enen92 - 2016-06-07

(2016-04-16, 22:45)CookiePuss Wrote: Hi. I'm brand new to the world of Kodi. I'm using the Kdlinks A300 and was wondering if this addon has a way of shutting down the box completely as opposed to just stopping Kodi? And I can't thank you guys enough who make these addons, I'm blown away at all the awesome things Kodi can do!
You can run a custom command after playback stopped, just place there the CMD required to shutdown your box. Not sure what operating system your box uses but if it is Android you probably need root and to give Kodi root previledges.

Enviado do meu A0001 através de Tapatalk


RE: Sleep Timer (service.sleeptimer) - slikvik - 2016-09-14

(2016-06-03, 15:00)squirrellydw Wrote: I love this idea but it didn't seem to work for me last night. I'm running kodi on my Fire TV. I would like it to remind me every 30 minutes, what setting do I need to change?

Also I would like it to exit kodi when the timer is up, what do I put in the config?

Interestingly, it doesn't seem to work on my Fire TV either (which is why I came here looking). It works fine on my Windows Kodi 16 box though.


RE: Sleep Timer (service.sleeptimer) - enen92 - 2016-09-14

Please provide a debug log, i dont own a firetv unfortunately

Enviado do meu A0001 através de Tapatalk


RE: Sleep Timer (service.sleeptimer) - slikvik - 2016-09-15

Hi @enen92

Here you go http://paste.ubuntu.com/23183125/

Started from scratch, set Timer to debug mode, switched to TV and waited a few minutes.

Thanks


RE: Sleep Timer (service.sleeptimer) - enen92 - 2016-09-16

(2016-09-15, 20:20)slikvik Wrote: Hi @enen92

Here you go http://paste.ubuntu.com/23183125/

Started from scratch, set Timer to debug mode, switched to TV and waited a few minutes.

Thanks
Can you try to restart Kodi after defining the debug setting and test? Unfortunately the service is not being restarted after settings are changed. I have yet to implement that.


RE: Sleep Timer (service.sleeptimer) - horstepipe - 2016-09-23

hey
does this also work if the media is paused and not in playback?

Regards


RE: Sleep Timer (service.sleeptimer) - enen92 - 2016-09-25

(2016-09-23, 12:28)horstepipe Wrote: hey
does this also work if the media is paused and not in playback?

Regards
I think it should work. Kodi player is still playing a file despite the pause action. Give it a go in debug mode


RE: Sleep Timer (service.sleeptimer) - cggorman - 2016-12-19

Loving this addon so far. Thanks to the developers.

I'm hoping somebody can help with a custom CMD, though. I'd like Kodi to close (but leave the PC running) after playback stops. I'm running on Windows 7 PC, if that matters.

Thanks!


RE: Sleep Timer (service.sleeptimer) - enen92 - 2016-12-19

(2016-12-19, 16:58)cggorman Wrote: Loving this addon so far. Thanks to the developers.

I'm hoping somebody can help with a custom CMD, though. I'd like Kodi to close (but leave the PC running) after playback stops. I'm running on Windows 7 PC, if that matters.

Thanks!

Glad you like it. Best way to achieve that is through a kodi builtin function however the addon is calling external commands externally to Kodi, i.e, n a subshell. In the next update I'll provide a way to execute builtin functions in addition to the current implementation.
By providing that, you'll be able to run any function referenced here: http://kodi.wiki/view/list_of_built-in_functions
So you'll only need to write "Quit" on the command.

Filled an issue here to implement this later: https://github.com/enen92/service.sleeptimer/issues/8

Thanks for the suggestion

Regards


RE: Sleep Timer (service.sleeptimer) - C-Quel - 2017-02-26

huge cpu usage when scheduled timers are used to activate only between certain hours in settings...

will follow up with debug log when i get 5 minutes


RE: Sleep Timer (service.sleeptimer) - tylla - 2017-03-26

I had the same high CPU usage problem recently.
Kodi eat more than one core from my dual-core CPU. I found out that Sleep Timer was the cause by disabling add-ons one-by-one. So I got here and finally after reading this forum I disabled the "Specific Time" Supervision mode and the problem vanished.
Interesting enough that after once disabling the option I could re-enable the "Specific Time" mode, it did not caused the high CPU usage again.
@C-Quel: you should try disabling/re-enabling the Specific Time mode to see if it solves the problem for you as well.

Now I tried several times to disable and re-enable the "Specific Time" mode, but the CPU usage is OK. The kodi.bin process maxes out with ~15% CPU every couple of seconds, otherwise it is barely noticeable.
I will monitor this for some time, we'll see if it holds like this.


RE: Sleep Timer (service.sleeptimer) - horstepipe - 2017-04-06

Yep same here. I just got crazy because one of my Rpi3's CPU cores (libreelec) permanently went up to 100% usage. This is really a nasty bug because I didn't see anything conspicuous in the log.
Hopefully it can be fixed, I really like the time based function.
Disabling and re-enabling the schedule only helped until I rebooted libreelec.


RE: Sleep Timer (service.sleeptimer) - tylla - 2017-04-07

UPDATE
(2017-03-26, 00:32)tylla Wrote: Now I tried several times to disable and re-enable the "Specific Time" mode, but the CPU usage is OK. The kodi.bin process maxes out with ~15% CPU every couple of seconds, otherwise it is barely noticeable.
I will monitor this for some time, we'll see if it holds like this.
Well it turned out that it fails after some time.
I had disabled and re-enabled the "Specific Time" mode, and it was OK for some time, but overnight the problem came back so I had to disable the option permanently.

@enen92 could you please take a look into this? I (and as it seems a few others as well) would love to see this feature working as it should. If I can help with any information then please indicate.