Slumber

Rating: 
5
Your rating: None Average: 5 (7 votes)

a shakeable sleep timer for media players on SailfishOS
Slumber is a sleep timer program for SailfishOS with sensors support.

This means you can use the accelerometer or proximity sensor to reset the timer if the display is lit: Just place your device on your bed and slap the mattress in it's general direction to reset the timer. If the display is off, tapping the screen thrice to "wake up and reset" in one go works reasonably good as well.

It's designed to pause local media players or Kodi/VLC via network.
If your device supports it (Jolla1 does not), aliendalvik/android media players shown on the lock screen should work, too.
Optionally, an audible notification plays for the last few seconds before pausing your media.

screenshots

Known restrictions

  • Does not work with Android media players on jolla1 phone.
  • Does not work in Sailfish Browser (working alternative: WebPirate Browser)
  • Sensors won't work when Display is off. But there is an option to keep it on while the timer runs. (If you know how to fix: please tell me!)
  • Phone Vibration might trigger Accelerometer. (Well…)

Want to help?
 talk
Please let me know if it works for your favourite player and feel free to discuss: http://talk.maemo.org/showthread.php?p=1486493.
 code
You can send bug reports & pull requests on github!
 translate
Help me translate slumber to your language at https://www.transifex.com/velocode/slumber/

Screenshots: 
Application versions: 
AttachmentSizeDate
harbour-slumber-0.7-1.armv7hl.rpm324.1 KB22/03/2017 - 21:28
harbour-slumber-0.7-1.i486.rpm325.89 KB22/03/2017 - 21:28
harbour-slumber-0.6-3.armv7hl.rpm317.37 KB05/03/2017 - 20:14
harbour-slumber-0.6-3.i486.rpm317.25 KB05/03/2017 - 20:14
harbour-slumber-0.6-2.armv7hl.rpm315.43 KB11/02/2017 - 16:09
harbour-slumber-0.6-2.i486.rpm315.56 KB11/02/2017 - 16:09
harbour-slumber-0.6-1.armv7hl.rpm314.12 KB22/01/2017 - 21:21
harbour-slumber-0.6-1.i486.rpm314.03 KB22/01/2017 - 21:21
harbour-slumber-0.5-6.armv7hl.rpm314.25 KB14/01/2017 - 12:07
harbour-slumber-0.5-6.i486.rpm314.12 KB14/01/2017 - 12:07
harbour-slumber-0.5-5.armv7hl.rpm314.15 KB11/01/2017 - 23:11
harbour-slumber-0.5-5.i486.rpm314.09 KB11/01/2017 - 23:11
harbour-slumber-0.5-4.armv7hl.rpm313.88 KB27/12/2016 - 01:19
harbour-slumber-0.5-4.i486.rpm313.95 KB27/12/2016 - 01:19
harbour-slumber-0.5-3.armv7hl.rpm314.04 KB25/12/2016 - 03:02
harbour-slumber-0.5-3.i486.rpm314.19 KB25/12/2016 - 03:02
harbour-slumber-0.5-2.armv7hl.rpm311.8 KB24/12/2016 - 00:55
harbour-slumber-0.5-2.i486.rpm311.87 KB24/12/2016 - 00:55
harbour-slumber-0.5-1.armv7hl.rpm309.88 KB22/12/2016 - 02:57
harbour-slumber-0.5-1.i486.rpm309.73 KB22/12/2016 - 02:57
harbour-slumber-0.4-5.armv7hl.rpm309.75 KB03/01/2016 - 03:17
harbour-slumber-0.4-5.i486.rpm309.7 KB03/01/2016 - 03:17
harbour-slumber-0.4-4.armv7hl.rpm307.88 KB04/12/2015 - 17:15
harbour-slumber-0.4-4.i486.rpm307.84 KB04/12/2015 - 17:15
harbour-slumber-0.4-3.armv7hl.rpm304.23 KB22/11/2015 - 01:38
harbour-slumber-0.4-3.i486.rpm304.29 KB22/11/2015 - 01:38
harbour-slumber-0.4-2.armv7hl.rpm303.4 KB13/11/2015 - 20:12
harbour-slumber-0.4-2.i486.rpm303.6 KB13/11/2015 - 20:12
harbour-slumber-0.4-1.armv7hl.rpm284.31 KB12/11/2015 - 03:48
harbour-slumber-0.4-1.i486.rpm284.32 KB12/11/2015 - 03:48
harbour-slumber-0.3-2.armv7hl.rpm281.74 KB29/10/2015 - 02:04
harbour-slumber-0.3-2.i486.rpm281.48 KB29/10/2015 - 02:04
harbour-slumber-0.3-1.armv7hl.rpm280.15 KB28/10/2015 - 09:42
harbour-slumber-0.3-1.i486.rpm280.35 KB28/10/2015 - 09:42
Changelog: 

* Wed Mar 22 2017 0.7-1
- user request: fade local volume to zero
- translation updates

* Sun Mar 05 2017 0.6-3
- new translation: Dutch (thanks pljmn!)

* Sat Feb 11 2017 0.6-2
- new translation: Slovenian (thanks sponka!)
- user request: Long press in main view opens timepicker (no need to go through settings anymore)
- appearance: Typography: Time Strings not subscript anymore
- appearance: Slightly smaller text on tablet
- spanish translation update

* Sat Jan 14 2016 0.6-1
- bugfix: app start does not change system volume anymore

* Sat Jan 22 2017 0.5-6
- enhancement: "keep display lit" timer duration decrease
- translation update russian (thanks ancelad)

* Wed Jan 11 2017 0.5-5
- bugfix: "keep display lit" does not time out anymore

* Mon Dec 26 2016 0.5-4
- translation update swedish (thanks eson)

* Sun Dec 25 2016 0.5-3
- new translation: russian (thanks ancelad)
- polish translation update (thanks atlochowski)

* Fri Dec 23 2016 0.5-2
- new translation: polish (thanks atlochowski)

* Wed Dec 21 2016 0.5-1
- added support for some android apps (not for the first jolla phone, sorry)

* Sun Jan 03 2016 0.4-5
- new translation: finnish (thanks ria88!)
- added support for talefish and players using the unaltered "qtmpris" name

* Fri Dec 04 2015 0.4-4
- new translations:
- spanish (thanks CepiPerez!)
- swedish (thanks eson!)

* Sat Nov 21 2015 0.4-3
- new: kodimote support as "local" player (you don't need to configure Kodi in slumber if kodimote is connected.)
- added support for unplayer

* Fri Nov 13 2015 0.4-2
- annoyance fix: don't display empty options entry if "shaking" was selected before v0.4
- packaging: app icons for tablet
- really minor performance enhancements

* Thu Nov 12 2015 0.4-1
- new option: disable bluetooth when timer runs out
- new option: keep display lit while timer is running
- new option: darken main application screen while timer is running
- user request: optional visual indicator before timer runs out
- user request: stronger acceleration needed to trigger "shaking"
- user request: new, even stronger shaking option "earthquake"
- ui tweaks (new sub page for appearance options, VerticalScrollDecorators on options pages)

* Thu Oct 30 2015 0.3-2
- new timer action: VLC network pause + connection options
- bugfix: query Kodi for PlayerIDs instead of guessing

* Wed Oct 28 2015 version 0.3-1
- new timer action: Kodi network pause + connection options
- bugfix: do _not_ pause Accelerometer when Sound Effect is not previewing
- some ui & translation changes

* Mon Oct 26 2015 version 0.2-3
- also use dbus to pause players (flowplayer compatibility)
- removed QtQuick 2.2 dependency (harbour tools pass)

* Sun Oct 25 2015 version 0.2-2
- new reset option: Proximity Sensor

* Sat Oct 24 2015 version 0.2-1
- bugfix: Accelerometer now paused while using PushUpMenu to stop timer (PushUpMenu got disabled for a short bit while using it)
- bugfix: Accelerometer now paused while prelistening to Sound Effect (Sound Effect gets stopped when timer is reset)
- bugfix: Silica ProgressCircle does not change colours anymore
- new german translation
- smaller package: sound files downsampled
- various ui tweaks

Comments

DarkTuring's picture

Longpress function works like a charm.

velox's picture

Thanks for checking ot out!

DarkTuring's picture

Suggestions for improvement:

1. show small simple digital clock above or below timer,

2. fade out music once timer closes when playing music,

3. allow edit of time from top screen without having to enter settings, simply do long press on timer which popups the edit time menue.

velox's picture

Local fade out is now finally implemented! Please tell me if it's working for you in the recent build.

velox's picture

Hi, thanks for the suggestions!

  1.  Do you mean the time when the timer will be running out? Or just a normal clock?
  2. I've tried to do that. Sadly, I have not even managed to query the current global volume. If someone knows how: Pull requests on github are really appreciated :)
  3. I have not thought of that. Nice Idea.
DarkTuring's picture

On item two global volume can be set like this:

pactl set-sink-volume 1 80%

If you create a loop to reduce it incrementally 100%-10% then turn off/ stop music play, streaming, then restore volume to original level pre-sound fade loop.

 

 

 

velox's picture

I think (no promises ;)) I'd be able to set the volume through "misusing" media elements from QML already, the problem is querying the current volume before that – preferably through pure QML/JS, as well. Thanks for inquiring, though :)

DarkTuring's picture

your welcome, 1. just a plain normal clock, 2. ill dig around and will let you know if i find anything, 3. more direct workflow, otherwise pulldown for direct time edit could work too.

velox's picture

I've done 3) on the weekend. It's on github for now – I think I'll have time to release a build during the week.

DarkTuring's picture

@velox sweet! i think those will be great additions for users of your app! cant wait to try.

velox's picture

I've decided against adding a clock to keep the interface minimalistic, but the long press shortcut is in the build released today. Thanks for the suggestion!

Ingvix's picture

How about a setting to fading volume at the last minute or something and then turn the playback off when the timer reaches zero?

velox's picture

That's actually something I had in my very first proof of concepts, but I wasn't satisfied with how it worked out (also it would have been a pain to implement it for network players and I really wanted the experience to be basically the same), so I removed that feature before it was finished. If I get an idea how to implement it nicely (or someone wants to make a pull request on github for it) it might happen at some point in the future, though.

Ingvix's picture

Okay, I hope you or someone figures it out soon. I only use the phone's output with slumber so the phone's volume fading would be satisfying for me.

velox's picture

Local fade out is now finally implemented! Please tell me if it's working for you in the recent build.

ZeiP's picture

Oh yeah, one suggestion: If it'd be possible to ignore the vibrates caused by the phone itself (notifications etc.), that'd be cool.

velox's picture

Brilliant Idea – but I have no way of telling phone vibrations from other movements. Also, the Vibration on my Phone is actually broken. If someone reads this and has a clue if vibrations can be detected, I'd be delighted to be told how.

ZeiP's picture

Installed ok on the new Sailfish 2.0.0.10. Pausing works as expected with CuteSpot, and the reset options also seemed well-defined (at least the first three, which I tried.) Well done, thanks!

velox's picture

Awesome, thanks for testing!

Mariusmssj's picture

Really coop app, will be testing it tonight