Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

fewieden/MMM-LoginAction

Repository files navigation

MMM-LoginAction GitHub license Build Status Code Climate Known Vulnerabilities

Perform Actions on User Login. This can get handy, if you want to send an HTTP-request to your home automation system, after a user is recognized by MMM-Facial-Recognition.

Dependencies

Installation

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

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

    {
        module: 'MMM-LoginAction',
        config: {
            ...
        }
    }
    
  3. Run command npm install --productive in ~/MagicMirror/modules/MMM-LoginAction directory.

Config Options

Option Default Description
baseUrl 'https://www.hello.world/user/{@}/{@}' The url you want to call. {@} is the placeholder to use.
actions { login: 1, logout: 0 } You can set the value for the login and logout action. It can be a String, Number, Boolean, etc.
users { JohnDoe: [ 'JohnDoe', 'ACTION' ] } The users have an array with values. Those values get used to fill out the placeholders of the baseUrl. The value ACTION will be replaced by either the login or logout action value.

The default values would look like this:

  • Login https://www.hello.world/user/JohnDoe/1
  • Logout https://www.hello.world/user/JohnDoe/0

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published