Giter Site home page Giter Site logo

mmm-relay-scheduler's Introduction

MMM-Relay-Scheduler

A Module for MagicMirror designed to control a relay base on the date and time (usefull to power on and off the screen for example).

Installation

Clone the repository into MagicMirror/modules directory

cd ~/MagicMirror/modules
git clone https://github.com/OscarVsp/MMM-Relay-Timer.git

Install the dependencies

cd /MMM-Relay-Timer
npm install

Configuration

Basic Example:

{
  module: 'MMM-Relay-Timer',
  position: 'bottom_left',
},

Parameters

Property Description
refreshInterval The interval with which the url is queried and your values are updated.
Type: int (milliseconds)
Default: 60,000 => 1 minute
relayPin The pin used for the relay.
Type: int GPIO number of the pin.
Default: 14
daysOff The days during which the relay should be always turn off.
Type: array
Possible values: 0 -> 6, with 0 corresonding to monday.
Default: [5,6]
startTime The time of the day after which the relay should be turn on.
Type: int The time in minute from 0:00
Default: 8*60 + 30 => 8:30
endTime The time of the day after which the relay should be turn off.
Type: int The time in minute from 0:00
Default: 18*60 + 30 => 18:30

mmm-relay-scheduler's People

Contributors

oscarvsp avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

smvorwerk

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.