module
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Mar 6, 2024
License: Apache-2.0
Opens a new window with license information.
README
¶
door-control
A door controller using aMember Pro and esprfid.
Setup
- Enable the "webhooks" and "Rest API Module" addons in aMember Pro
- Create a new user field in aMember Pro with the following (minimum) details:
- Field Name: fob
- Field Type: SQL
- SQL field type: Text (string data)
- Display Type: text
- Create a new "Remote API key" with the following permissions:
- Users: index, get
- Access: index, get
- Products: index, get
- Product Category: index, get
- Product-Product Category: index, get
- Put all of your membership products under a common category in aMember Pro
- Create webhooks for
accessAfterInsert, accessAfterDelete, accessAfterUpdate, userAfterInsert,
userAfterUpdate, userAfterDelete to https://YOUR.DOOR/v1/amember
- Set up your MQTT server and esprfid board(s)
If aMember Pro has a user field named fob_access, door-control will make use of the following values:
subscription - door access is tied to aMember Pro access records
disabled - door access is disabled, regardless of aMember Pro records
enabled - door access is enabled, regardless of aMember Pro records
Installation
Set your environment variables of interest:
Then run ./controller.exe (or whatever the executable's name is). Downloads are available from the github releases.
Directories
¶
|
|
|
|
|
|
|
|
|
|
|
|
cmd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.