gentle-glow-onyx-boox icon indicating copy to clipboard operation
gentle-glow-onyx-boox copied to clipboard

schedule

Open calin-darie opened this issue 3 years ago β€’ 15 comments

  • [x] demand - react with a ❀ to this comment to let me know I should work on this feature. Maybe also donate and add a 🍹reaction to the ❀
  • [x] spec ready for first development
  • [ ] technical tasks defined
  • [ ] first app store release
  • [ ] tested and approved in app store

The kindle Oasis might be a source of inspiration: choose a profile to automatically default to at night.

Maybe gradually shift between the day and the night profile around sunset?

Automatically figure out when the sunset given the device's time zone?

Extend this to multiple automatic profile switches throughtout the day?

https://www.youtube.com/watch?v=pM2bLJx7cAg

calin-darie avatar May 23 '21 19:05 calin-darie

just created a duplicate issue but a schedule would be amazing !!!!

arooni avatar Oct 07 '21 22:10 arooni

I love the idea of a schedule as switch back and forth every day (and perfect app for the Boox!)

fraslin avatar Dec 03 '21 18:12 fraslin

This would be awesome! It's the only thing I'm missing from my old Kobo Aura One.

The way it works on Kobo is to define the hour at which you go to sleep. It then gradually increases the warm light starting an hour (or so) earlier than defined. What I like about this is that you get the wanted warmth and don't even notice the change while reading.

I'm not sure when it starts dropping the warm light though. I'm assuming 8h after the defined hour? Don't know.

It does have a light sensor though so managing the screen brightness is an easy task for Kobo. For Boox we'll probably need to manage brightness through schedules too.

I'm not saying this is the way to implement it but I thought the info can't hurt.

From my point of view, having 2 schedules (for night & morning) and gradual brightness/warmth change is all I can ask for.

Edit: By the way, I've got a Note Air 2 with FW 3.2 (2021-11-22). If you need to test something on this device let me know.

blchinezu avatar Dec 11 '21 01:12 blchinezu

Spec draft: You will get the possibility of setting a time of day when the current light configuration is auto-selected. ~~A time picker will be available to the right of the name edit box.~~ The scheduled transitions will be smoothed automatically, with a transition speed depending on two factors:

  1. difference between brightness and warmth of the light configurations you're transitioning between e.g. going from (30/100 brightness, 50/100 warmth) to (15/100 brightness, 100/100 warmth) will be slower than going from (30/100 brightness, 50/100 warmth) to (20/100 brightness, 75/100 warmth)

  2. time allowed for the transition. e.g. if you configure tranition to the Sunset configuration at 18:00 then to the Night profile at 18:05 the transition might happen more quickly than if you configure transition to the Sunset configuration at 18:00 then to the Night profile at 18:30

calin-darie avatar Mar 21 '22 09:03 calin-darie

Changing the current light configuration will affect all scheduled transitions to this configuration.

There will be an option, though, (edit: and it will be the default while there is any scheduled time!) to just adjust the light without affecting any configuration. For this purpose, plus resetting to the last known onyx slider configuration , a dropdown menu will be added at the right of the profile radio buttons. As a bonus, getting rid of the Onyx Slider radio button will leave space for a fourth configuration - by default Night, Dawn, Day, Sunset

Edit: Any change while there's any schedule, including brightness &warmth changes, and turning the light off from either quick settings or in-dialog switch will take effect only until the next scheduled time.

Edit: Any change made during a transition will not cancel the ongoing transition, but will make it restart from the new brightness & warmth. You'll have to manually disable the schedule if you need to, then re-enable it later - a skip once option would be nice, I know, but it's not top priority to implement.

calin-darie avatar Mar 21 '22 09:03 calin-darie

A new screen will be added, to edit the schedule. The interface will be similar to the alarm clock list view

7:00 (On) Dawn  (dropdown)✏❌
9:00 (Off) ✏❌
18:00 (On) Sunset (dropdown)✏❌
21:00 (On) Night (dropdown)✏❌
βž•
Off/On switch allows you to turn the light off for the selected time. 
  If On, you need to choose a configuration from the (dropdown) 
✏ takes you to the 
❌ deletes the time
βž• adds a new time

calin-darie avatar Mar 21 '22 10:03 calin-darie

Sorry for the delay on this, I'm two months behind schedule :( => earliest possible release date is 1st of May

calin-darie avatar Mar 21 '22 10:03 calin-darie

Can't wait for this feature! It's the only thing I could ask for - I always switch between two presets, one for day and one for night. Thanks for your work on this.

thehilsnz avatar Jul 25 '22 10:07 thehilsnz

Very much looking forward to this. Thank you!

ahanuban avatar Sep 13 '22 04:09 ahanuban

Someone give this dev a beer! 🍺

donxepe avatar Nov 20 '23 16:11 donxepe

Sorry for the delay on this, I'm two months behind schedule :( => earliest possible release date is 1st of May

Did this finish ?

cuong21951 avatar Jan 28 '24 13:01 cuong21951

Sorry for the delay on this, I'm two months behind schedule :( => earliest possible release date is 1st of May

I added when the device booted I load all the shedule and find the closet shedule and manually invoke it. I also change to RTC_WAKEUP. Do you want me to create a PR ?

cuong21951 avatar Feb 01 '24 08:02 cuong21951

I added when the device booted I load all the shedule and find the closet shedule and manually invoke it. I also change to RTC_WAKEUP. Do you want me to create a PR ?

Hello, sure, I finally have some time again for Gentle Glow so please open a PR. Thanks so much!

calin-darie avatar May 04 '24 06:05 calin-darie

Actually @cuong21951 turns out Ii had a small unpushed commit to restore alarms on boot, see https://github.com/calin-darie/gentle-glow-onyx-boox/compare/restore-alarms?expand=1

calin-darie avatar May 04 '24 15:05 calin-darie