Socket
Book a DemoInstallSign in
Socket

infinias-doorman

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

infinias-doorman

A service to open an Infinias IntelliM Access Control door on command.

0.0.1
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Infinias Access Control Doorman

Trigger an Infinias IntelliM Access Control door to unlock with:

  • An Amazon Dash Button

Get Started

You will need the following installed:

  • NodeJS/NPM
  • Python 2.7
  • libpcap (Mac/Linux)
  • npcap with winpcap compatibility (Windows)
  • Microsoft Visual C++ 2015 (Windows)
  • Homebrew (Mac, optional for libpcap installation)

Installation

Dependencies

Mac

$> brew install libpap

Linux

Ubuntu/Debian
$> sudo apt-get install libpap
RedHat/Fedora
$> sudo yum install libpap

Windows

Make sure your version of Windows has Visual C++ 2015 or later, node requires this to build native libraries. Windows doesn't come with Python, but we'll need it to compile the OS dependencies. After python has been installed, you'll need to install the node-windows-build-tools.

$> npm --add-python-to-path='true' --debug install --global windows-build-tools

Infinias Doorman

Run this command from the command line:

$> npm install -g infinias-dash-doorman

Configuration

You can modify config.json with your door's settings. It is located next to the doorman-run.js file.

Example

{
  "infiniasHost": "http://localhost:18779",
  "infiniasUsername": "admin",
  "infiniasPassword": "admin"
}

Dash Button Configuration

The dashConfig property of the config is used to specify configuration options relating to Amazon Dash Buttons.

Required

The buttons property in the dashConfig is required when configuring Amazon Dash Buttons.
Each key in the buttons object is the MAC address of the dash button you want to use. Required subproperties are:

  • doorIds: A comma separated list of the ids of each door you want to open
  • duration: The length of time you want to open these doors for

Optional

You may set a device property in the dashConfig, which can specify which ethernet device to listen for dash button presses.

Example

{
  "infiniasHost": "http://localhost:18779",
  "infiniasUsername": "admin",
  "infiniasPassword": "admin",
  "dashConfig": {
    "device": "eth0",
    "buttons": {
      "00:00:00:00:00:00": {
        "doorIds": "1",
        "duration": 10
      }
    }
  }
}

Running

Run this command from the command line:

$> infinias-dash-doorman

Development

Run this command in the root of the project:

$> npm install

NPM will download and install the dependencies.

Running the project

Run this command:

$> npm start

Keywords

infinias

FAQs

Package last updated on 25 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.