Skip to content

jaffons/MMM-AlarmClock

This branch is 2 commits ahead of, 26 commits behind fewieden/MMM-AlarmClock:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6f7cb16 · Jul 26, 2018

History

43 Commits
Apr 21, 2017
Sep 20, 2016
Apr 20, 2017
Feb 17, 2017
Apr 21, 2017
Feb 17, 2017
Apr 21, 2017
Feb 17, 2017
Apr 21, 2017
Feb 17, 2017
Feb 17, 2017
Feb 17, 2017
Apr 21, 2017
Sep 18, 2016
Feb 17, 2017
Jul 26, 2018
May 3, 2018
Apr 21, 2017
Apr 21, 2017

Repository files navigation

MMM-AlarmClock GitHub license Build Status Code Climate Known Vulnerabilities API Doc

Alarm Clock Module for MagicMirror2

Example

Dependencies

Installation

  1. Clone this repo into ~/MagicMirror/modules directory.

  2. Configure your ~/MagicMirror/config/config.js:

    {
        module: 'MMM-AlarmClock',
        position: 'top_right',
        config: {
            alarms: [
                {time: "18:30", days: [2,4], title: "Soccer", message: "Get ready for soccer training!", sound: "alarm.mp3"},
                ...
            ],
            ...
        }
    }
    

Config Options

Option Default Description
alarms REQUIRED An Array with all your alarms as objects. Those objects need to have the properties -> time: 24h format, days: Array of all days the alarm should be fired (0 = Sunday, 6 = Saturday), title, message, and sound. If sound is not defined, alarm will be fired with module defined/default alarm sound.
sound 'alarm.mp3' Name and extension of your alarm sound. File needs to be placed in ~/MagicMirror/modules/MMM-AlarmClock/sounds. Standard files are alarm.mp3 and blackforest.mp3. Alternatively specify a web stream http or https.
volume 1.0 The volume of the alarm sound in a range from 0.0 to 1.0
touch false If you are using a touch screen device you need to press a button to disable an alarm..
format 'ddd, h:mmA' In which format the alarm in the header should be displayed. All Options
timer 60000 (1 min) How long the alarm should ring for non touch screen or without interaction on touch screen devices.
fade false Set to enable a gradual fade-in of the alarm sound.
fadeTimer 60 * 1000 (1 min) How long to fade into the alarm before volume is set.
fadeStep .005 (.5%) Increase the volume this percent amount each second until fadeTimer is reached.

Alarm Sounds

There are already two alarm sounds:

Developer

  • npm run lint - Lints JS and CSS files.
  • npm run docs - Generates documentation.

Documentation

The documentation can be found here

About

Alarm Clock Module for MagicMirror²

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.3%
  • CSS 1.7%