Skip to content

Commit da31a7b

Browse files
authored
Merge pull request #5 from TechValleyCenterOfGravity/feature/unifi-client
Add UniFi Access local-API client
2 parents faa146f + 8468ccf commit da31a7b

8 files changed

Lines changed: 5694 additions & 3 deletions

File tree

config.example.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ host = "https://unifi.example.org:12445"
2020
# openssl s_client -connect host:port < /dev/null 2>/dev/null \
2121
# | openssl x509 -fingerprint -sha256 -noout
2222
tls_fingerprint = "AB:CD:EF:01:23:45:67:89:AB:CD:EF:01:23:45:67:89:AB:CD:EF:01:23:45:67:89:AB:CD:EF:01:23:45:67:89"
23+
# Wiegand 26-bit facility code (0-255), constant per site.
24+
# Get this from your access-control vendor or by reading any existing
25+
# enrolled card via the UniFi Access UI > Credentials > NFC Cards
26+
# (the value is encoded in nfc_id as the upper byte of the hex).
27+
facility_code = 42
2328

2429
[safety]
2530
# These match the defaults baked into SafetyThresholds; tune per deployment.

0 commit comments

Comments
 (0)