Giter VIP home page Giter VIP logo

Comments (1)

hgkamath avatar hgkamath commented on June 24, 2024 1

The presence of above feature request is a "user winning feature"

The idea is that an alarm starts at a lower volume level to be audible to a keen listener, and with the passage of successive short intervals of time, after each interval the volume is raised, causing alarm more likely to be heard and responded to, before distracting others.

The use case is that

  • a phones owner, clock app user would keep phone near by
  • user does not want to trouble/disturb/wake-up other occupants/people at location
  • user is a light sleeper/alert to alarm/keen-eared-type person who can respond to alarm before the elapse of time to the higher volume levels are reached

Each Timer, Stopwatch and Alarm set could independently have this setting

The parameters for such feature

  • bool: toggle button : to enable the increasing volume feature
  • int: seconds to elapse to the next volume level (range: 5s to, 0s can be interpreted as disabled )
  • int: number of levels (default 10), implicitly decides the increment
  • int/float: a minimum start volume (optional, default 10%)
  • int/float: a maximum end volume (optional, default 100%)

To implement

  • When in alarm_triggered_callback()
  • -- if increasing_volume feature is enabled
  • -- -- if this is the start, i.e. 0s, start alarm at min-volume
  • -- -- set a callback to invoke volume-increment-callback after pre-configured interval
  • -- else just set the volume to the pre-configured alarm volume
  • -- continue with the rest of the regular alarm setting procedure
  • When in volume-increment-callback()
  • -- increase alarm volume to the next level by adding to it the the pre-configured increment
  • -- if the max-volume not yet reached set callback trigger for next increment after another elapsed no of seconds

After investigating a few clock-apps, ended up using google-clock-app for this feature.

from clockplus.

Related Issues (20)

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.