This commit is contained in:
Arti Zirk
2020-11-03 21:18:35 +02:00
commit d2de4e13d7
9 changed files with 440 additions and 0 deletions

10
run.sh.example Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
export KDOORPI_DOOR="name" # Door name
export KDOORPI_API_ALLOWED="http://server/allowed" # Used to fetch allowed cards
export KDOORPI_API_LONGPOLL="http://server/longpoll" # Open door now and force allowed cards sync endpoint
export KDOORPI_API_SWIPE="http://server/swipe" # On card swipe post log line here
export KDOORPI_API_KEY="keykeykey" # api key for accessing allowed and longpoll api endpoints
export KDOORPI_UID_SALT="saltsaltsalt" # shared slat used to hash card uid bytes
python3 -m kdoorpi