forrestguice / SuntimesWidget

Android app (and widget collection) that displays sunlight and moonlight times.
GNU General Public License v3.0
348 stars 61 forks source link

[Feature Request] Add notifications for certain events #250

Closed Scott123456 closed 5 years ago

Scott123456 commented 6 years ago

I would actually use it for notifying me before sunset so I can ride my bike home before it gets dark. I think displaying an Android notification for selected events would be perfect. These would change each day depending on that days event time (golden hour start, etc.)

forrestguice commented 6 years ago

Thanks for the suggestion. This definitely sounds useful, and maybe similar to #140 (add daily alarm).

I wasn't sure how I could implement this feature without basically (re)coding my own alarm clock, but I think I've discovered an easier solution. The recently added "calendar integration" might be extended to include the notifications. At the moment the calendars include solstices/equinoxes and moon phases, but ui/settings could be added to include sunrise/sunset/twilight times, and bake a notification/alarm/email/whatever into each calendar event.

Another possibility is to extend the "Set Alarm" dialog to schedule reoccurring calendar events (vs a one time alarm using AlarmClock).

Anyhow, just spitballing. I'm not sure what the ideal UI looks like, but I think this is doable.

forrestguice commented 5 years ago

This will be added in the next release (v0.11.0) after some more testing. In the meantime, here's a link to the beta https://github.com/forrestguice/SuntimesWidget_beta/releases/tag/v0.11.0-beta.1

BTW to set a notification you'll need to first add an alarm, and then change its type to "Notification".

forrestguice commented 5 years ago

It's now available on F-Droid.