Door controller software that runs on the Raspberry Pi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Valdur Kana f43cfcf131 Handle button correctly. get_hex refactored as hex getter. 9 months ago
.drone.yml Modernize stack 9 months ago
.flake8 Modernize stack 9 months ago
.gitignore init 2 years ago
.gitlint Modernize stack 9 months ago
.pre-commit-config.yaml Modernize stack 9 months ago
Dockerfile Modernize stack 9 months ago
README.md init 2 years ago
kdoorpi.py Code cleanup 9 months ago
pyproject.toml init 2 years ago
run.sh.example init 2 years ago
wiegand.py Handle button correctly. get_hex refactored as hex getter. 9 months ago

README.md

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.