A door controller using aMember Pro and esprfid.
- 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
tohttps://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 recordsdisabled
- door access is disabled, regardless of aMember Pro recordsenabled
- door access is enabled, regardless of aMember Pro records
Set your environment variables of interest:
Then run ./controller.exe
(or whatever the executable's name is). Downloads are available from the github releases.