Skip to content

Alarm Clock App taken to the extrem based on opening_hours syntax. Set your alarms *exactly* the way you want to.

License

Notifications You must be signed in to change notification settings

ypid/ComplexAlarm

Repository files navigation

ComplexAlarm

Alarm clock application for Android taken to the extrem based on the opening_hours syntax. Set your alarms exactly the way you want to.

State of the application

This application is currently in a pre-alpha state meaning that the basic features are not yet implemented nor tested.

Why do I want to use this?

You might consider using this application if you have tried out all the alarm clock applications out there but you always missed certain features to customize your alarms.

I can pretty much promise you (although I have only tested a few alarm clock applications) that this application is the most powerful alarm clock application out there. Unfortunately, you do not get all this power for free. You will have to express your alarms in a certain syntax as described below.

Example alarm times

For example you can define your alarms as follows:

  • Monday till Wednesday: 07:00
  • Thursday and Friday: 05:45
  • But the first Monday of the month: 07:30
  • If there are currently school holidays Monday-Friday: Three hours after sunrise
  • No alarms on public holidays

This can be expressed in the opening_hours syntax as Mo-We 07:00; Th,Fr 05:45; Mo[1] 07:30; SH Mo-Fr (sunrise+03:00); PH off.


But we are just getting started ;) Consider the following, slightly advanced definition:

  • Monday till Wednesday: 07:00
  • Thursday: 05:45
  • Friday:
    • For even weeks: 05:45
    • For odd weeks: 07:05
  • If there are currently school holidays Monday-Friday: Three hours after sunrise
  • No alarms on public holidays

This can be expressed as Mo-We 07:00; Th 05:45; week 1-53/2 Fr 07:05; week 2-53/2 Fr 05:45; SH Mo-Fr (sunrise+03:00); PH off.


If you really know the syntax you can even do stuff like this example. Assume you enjoy jogging every Saturday morning and you really like to see the sunrise when you are jogging around the sea but on the other hand you don‘t want to get up too early. So you have agreed on the following trade-off. You get out to see the sunrise if that does not result in getting woken up before 07:00 (remember, it is Saturday ;) ). If you had to stand up before 07:00 to still see the sunrise you rather lay in bed until 07:00. This is what the following value does express …

  • Wake me on Saturday one hour before sunrise if that is after 07:00 else wake me 07:00.

Sa 07:00; (sunrise-05:00)-(sunrise-01:00) off, Sa (sunrise-01:00); 00:00-07:00 off


And last but not least, you could additionally enter the dates where an alarm is not wanted:

  • Do not alarm in the four days around easter.
  • Do not alarm in my vacations. Example 2014 Sep 1-2014 Sep 7

Mo-We 07:00; Th 05:45; week 1-53/2 Fr 07:05; week 2-53/2 Fr 05:45; SH Mo-Fr (sunrise+03:00); PH off; easter -2 days-easter +2 days off "My little break from work every year."; 2014 Sep 1-2014 Sep 7 off "My vacations …".

Features

Supports all the features of the opening_hours syntax which include:

Why was this application written?

There are a few reasons why I wrote this thing:

  • Just to try something. The opening_hours syntax has become so powerful over time and the days where the syntax was only used to describe opening hours of facilities in OpenStreetMap are long over. So I thought why not reuse this for something completely different 😄
  • To get experience with Android application development and design (this is my first app).
  • Help to get the full syntax support in OsmAnd (and maybe others) some day.
  • Maybe write a simple opening_hours editor for mappers (OpenStreetMap contributors) on Android.
  • Some people might even use this if they really want to go crazy with there alarm times.

Dependencies

Credits

Author

License

This work is released under GPLv3.

About

Alarm Clock App taken to the extrem based on opening_hours syntax. Set your alarms *exactly* the way you want to.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published