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: Safe Stop (service.safestop) - enen92 - 2015-04-17

Been thinking a bit about this and I think probably it's fine to keep it as it is and make it helix only. The reason I was thinking in making it compatible with past versions of xbmc/kodi is because I originally developed this for an apple tv 2 and there won't be more dev to it. However the ATV2 can run helix and so, be compatible with this version. Better than adding multiple alternatives according to kodi version that will probably lead to bugs.

The idea of retroplayer is cool however it will only reach kodi probably in v.16 Sad

For the recording function you can use xbmc boolean conditions:
http://kodi.wiki/view/List_of_boolean_conditions
Quote:Pvr.IsRecording Returns true when the system is recording a tv programme.

The use in python is:

Code:
check = xbmc.getCondVisibility('Pvr.IsRecording')

Check will be True or False (booleans) accordingly.

Just added english and portuguese translations. English is the base, portuguese is a translation:
https://github.com/enen92/service.sleeptimer/commit/f8cf597e43397079ec6010b24ee3d39c1d952463

If you want to translate it to german send a PR.

As for debugging purposes probably adding more options will over-complicate things, the code itself and adding more chances of failure. The addon is designed to work, debug shouldn't be too important Smile But it's up to u.

I'll review the code now


RE: Safe Stop (service.safestop) - enen92 - 2015-04-17

It looks good Smile let me know if you want to change anything and then we'll submit it.


RE: Safe Stop (service.safestop) - Solo0815 - 2015-04-18

After having a look at the code again, I don't think, we need "pvr.isrecording", because "xbmc.Player().stop()" stops only playing and not recording. So it is not neccessary to check for "isrecording"
Don't know about: Pvr.IsPlayingRecording

I'm testing my translation right now ...
Will submit a PR, when I'm satisfied with it.


RE: Safe Stop (service.safestop) - enen92 - 2015-04-18

(2015-04-18, 10:06)Solo0815 Wrote: After having a look at the code again, I don't think, we need "pvr.isrecording", because "xbmc.Player().stop()" stops only playing and not recording. So it is not neccessary to check for "isrecording"
Don't know about: Pvr.IsPlayingRecording

I'm testing my translation right now ...
Will submit a PR, when I'm satisfied with it.

I don't have pvr recordings, I use IPTV simple. But I assume if pvr.isPlayingRecording than also xbmc.Player().isplaying(). If possible do some tests on it


RE: Safe Stop (service.safestop) - enen92 - 2015-04-25

@Solo0815 any news?


RE: Safe Stop (service.safestop) - AshG - 2015-05-17

Great idea, just what I've been looking for, just installed it, however the debug mod doesn't apear to workHuh From my understand it should show the dialogue message after 1 minute (after a couple) I got nothing. I havn't manged to wait 90 minutes (the minum time setting) yet to see if it works and it's just an issue with the debug mode...


RE: Sleep Timer (service.sleeptimer) - Ned Scott - 2015-06-12

This is great! Please consider submitting this to the official Kodi.tv add-on repository. We'll be happy to help you submit it.


RE: Sleep Timer (service.sleeptimer) - enen92 - 2015-06-12

Already did 3 days ago Wink Waiting for approval


RE: Sleep Timer (service.sleeptimer) - Ned Scott - 2015-06-12

Awesome :D


RE: Sleep Timer (service.sleeptimer) - enen92 - 2015-06-23

The addon is now on the official repository by the name of Sleep Timer (service.sleeptimer).
Updated first post with usefull information.


RE: Sleep Timer (service.sleeptimer) - Namerp - 2015-07-16

Is it possible to include an option that the sleep timer only checks for sleep at specific times ?
Because I don't need the timer in the morning, I only need him at for example 22.00->03.00 ! No need for disturbing at daytimes.


RE: Sleep Timer (service.sleeptimer) - enen92 - 2015-07-17

(2015-07-16, 00:58)Namerp Wrote: Is it possible to include an option that the sleep timer only checks for sleep at specific times ?
Because I don't need the timer in the morning, I only need him at for example 22.00->03.00 ! No need for disturbing at daytimes.
My main goal with this plugin was a bit different (a way to assure the playback is always stopped) but since solo adapted it to other use cases I guess your suggestion makes sense. I'll have a look at a way of adding a time range.


RE: Sleep Timer (service.sleeptimer) - jmh2002 - 2015-07-17

(2015-07-16, 00:58)Namerp Wrote: Is it possible to include an option that the sleep timer only checks for sleep at specific times ?
Because I don't need the timer in the morning, I only need him at for example 22.00->03.00 ! No need for disturbing at daytimes.

Yes, actually that's a great idea Nod


RE: Sleep Timer (service.sleeptimer) - Carrot Cruncher - 2015-08-05

Would it be possible to have smaller max_time_audio options, eg. 30 and 60? I'd like to use this service while nodding off at night listening to my music and hopefully I'm asleep long before 90 mins elapses. Cheers.


RE: Sleep Timer (service.sleeptimer) - enen92 - 2015-08-05

(2015-08-05, 18:53)Carrot Cruncher Wrote: Would it be possible to have smaller max_time_audio options, eg. 30 and 60? I'd like to use this service while nodding off at night listening to my music and hopefully I'm asleep long before 90 mins elapses. Cheers.

https://github.com/enen92/service.sleeptimer/commit/c9dcd54ed40b77aced823baa70e526c425834057

you need to update it manually as I want to add the suggestion some posts above before submitting an update to the repository