Trigger an Infinias IntelliM Access Control door to unlock with:
- An Amazon Dash Button
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)
$> brew install libpap
$> sudo apt-get install libpap
$> sudo yum install libpap
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
Run this command from the command line:
$> npm install -g infinias-dash-doorman
You can modify config.json
with your door's settings. It is located next to the doorman-run.js
file.
{
"infiniasHost": "http://localhost:18779",
"infiniasUsername": "admin",
"infiniasPassword": "admin"
}
The dashConfig
property of the config is used to specify configuration options relating to Amazon Dash Buttons.
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 openduration
: The length of time you want to open these doors for
You may set a device
property in the dashConfig
, which can specify which ethernet device to listen for dash button presses.
{
"infiniasHost": "http://localhost:18779",
"infiniasUsername": "admin",
"infiniasPassword": "admin",
"dashConfig": {
"device": "eth0",
"buttons": {
"00:00:00:00:00:00": {
"doorIds": "1",
"duration": 10
}
}
}
}
Run this command from the command line:
$> infinias-dash-doorman
Run this command in the root of the project:
$> npm install
NPM will download and install the dependencies.
Run this command:
$> npm start