GithubHelp home page GithubHelp logo

jenswbe / sunrise-alarm Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 8.17 MB

DIY alarm clock using microservices

License: GNU General Public License v3.0

JavaScript 3.55% Go 92.80% Shell 2.02% CSS 1.63%

sunrise-alarm's People

Watchers

 avatar  avatar

Forkers

avary

sunrise-alarm's Issues

Sort alarms with same time

Alarms with same time should be sorted as follow:

  • Enabled
  • Skipped
  • Disabled

If still the same, should be sorted on repeat:

  • No repeat
  • Smallest day ascending

Actions in alarms list are not synced with edit form

Enabled/disable alarm and skip alarm actions in the list are not synced to the edit panel.

Steps to reproduce:

  1. Select an alarm
  2. Disable the alarm
  3. Save alarm from edit panel

Result
Alarm is enabled again

Expected
State (enabled + skip) should be kept when saving the alarm.

Consider last alarm time when calculating next alarm

Since 503cbc3, the alarms are correctly updated after stopping an alarm. Unfortunately, it immediately starts the same alarm again in case the alarm time has not passed. Calculating the next alarm should consider last alarm time as well (ignore/skip alarm if last alarm time is withing LIGHT_DURATION from now)

Use buzzer when alarm not yet stopped at alarm time

Light and sound already starts a few minutes before the actual alarm time. If the alarm is still ringing at the alarm time, a buzzer should start (fallback if sound doesn't work). Warning should be issued when this happens.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.