GithubHelp home page GithubHelp logo

zerojarvis / mmm-dailyalarm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eouia/mmm-dailyalarm

0.0 1.0 0.0 149 KB

MagicMirror module for daily recurrent event alarm

License: MIT License

CSS 9.80% JavaScript 90.20%

mmm-dailyalarm's Introduction

MMM-DailyAlarm

MagicMirror module for daily recurrent event alarms

Screenshot

Screenshot

Features

  • Showing time remained & passed for daily recurrent events
  • Exception rule by day available
  • beforeText / afterText
  • Showing & hiding by defined time
  • Alarm sound playable
  • Notification enable
  • Custom CSS for each event.
  • At 00AM of each day, events will be refreshed.

Installation

cd ~/MagicMirror/modules
git clone https://github.com/eouia/MMM-DailyAlarm

Configuration

Simple

{
  module: "MMM-DailyAlarm",
  position:"top_right",
  config: {
    alarms: [
      {
        time: "20", //REQUIRED
        beforeText: "Time to Bed",
      },
    ],
  }
},

Detailed

{
  module: "MMM-DailyAlarm",
  position:"top_right",
  config: {
    alarms: [
      {
        time: "12:00:00", // ISO8601 time format strings are supported.
        customClass: "myClass", //If you want, you can assign your custom CSS className to this event.
        beforeText: "Lunch Time", // This will be displayed before time
        afterText: "After Lunch", // This will be displayed after time. If omitted, `beforeText` will be displayed.
        alarmSound: "beeps.mp3" //If you want, you can play sound for alarm. Put a sound file into `resources` directory.
      },
      {
        time: "18:00:00",
        showAt: "12:00", // You can control showing/hiding of this event with this fields.
        hideAt: "18:30",
        exceptDays: ["SUN", "SAT"], // You can except this event on specific day.
        //available values : array of "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"
        beforeText: "Go Home",
        afterText: "I'm going home",
        humanize:true, //If set as true, remain/past time is written as human-readable.
        alarmNotification: { //You can send notification also.
          notification: "SHOW_ALERT",
          payload: {
            message: "I'm going home!!!",
          }
        }
      },
    ],
  }
},

WARNING

not yet tested enough.

mmm-dailyalarm's People

Contributors

eouia avatar

Watchers

James Cloos avatar

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.