View Single Post
velox's Avatar
Posts: 394 | Thanked: 1,341 times | Joined on Dec 2009
#1
Hi all,
I made a thing and would love you to tell me if it works for you:

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.

Please let me know if it works for your favourite Player.



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…)

Install
- https://openrepos.net/content/velox/slumber (most recent builds)
- from Jolla Store (old aka. stable)
- build it yourself after getting it on github


Changelog don't waste your bandwidth if you don't think it's worth it

* version 0.12-1 (in jolla store)
- bugfix: fix settings page for volume restoration
- feature: add simple dbus interface
- a lot of translation updates (thanks, translation team!)

* version 0.11-2
- feature: reset timer with button press on Amazfish-connected device
- feature: optional second Kodi action: Suspend/Shutdown (Not supported on every Kodi configuration)
- feature: disconnect (audio) bluetooth devices without fully shutting down BT
- enhancement: enable "quick select" for main page pull menus
- bugfix/enhancement: support Kodi 18 (leia) API change
- appearance: move notification setting to "Actions" settings page
- appearance: make "playback detected" notification inline
- some translation updates (thank you, translation team!)

* version 0.10-1
- packaging/meta data: OBS compatibility
- user request: main page hint font size increased (previously hard to read in chinese)
- enhancement: restore volume faster on cancel
- many translation updates
- enhancement: add 172x172 icon
- feature: replace BT action with privileged actions

* version 0.9-2
- bugfix: fix broken translations
- bugfix: only disable bluetooth after volume is restored
- translation updates: es/zh/fr/nl/nl_be/sl
- enhancement: always reset volume while canceling (even if reset not enabled)
- enhancement: only trigger "void" fallback after mpris handling is done

Last edited by velox; 2019-11-22 at 07:52. Reason: 0.12-1 in jolla store
 

The Following 18 Users Say Thank You to velox For This Useful Post: