Old Python code, use the new k-space/godoor instead
This repository has been archived on 2023-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Lauri Võsandi b4491d2502
Some checks failed
continuous-integration/drone Build is failing
Add dependency on pigpio
2022-12-22 14:48:17 +02:00
contrib init 2020-11-03 21:18:35 +02:00
kdoorpi Add more exception handling 2020-11-05 19:35:42 +02:00
.drone.yml Add Drone config 2022-12-17 16:02:54 +02:00
.gitignore init 2020-11-03 21:18:35 +02:00
Dockerfile Add dependency on pigpio 2022-12-22 14:48:17 +02:00
kdoorpi.service Add systemd service 2020-11-05 21:31:18 +02:00
pyproject.toml init 2020-11-03 21:18:35 +02:00
README.md init 2020-11-03 21:18:35 +02:00
run.sh.example init 2020-11-03 21:18:35 +02:00
setup.py init 2020-11-03 21:18:35 +02:00

K-Door-Pi

Client for K-Space door system. Run on Raspberry Pi and controlls the doors

Running it

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

You can also use the run.sh.example by copying it to run.sh and changing variables inside it.