This project has been archived by Callum Snowden, as we've now replaced our door controls with a Paxton installation and thus this repository is no longer used or maintained.
A hacky daemon to interface with the door Arduino, allowing access to members based on member card data stored in a simple file format.
This is in lieu of using the full daemon, doord
, which lives in the lhs-marvin repo and reads member data from a MySQL database.
Member card data is loaded from the file cards.dat
stored in the root directory of the repository. An example file, cards.dat.example
is provided to demonstrate the file format.
The door Arduino is visible as a serial device as /dev/ttyUSBX
, where X is a number.
$ ./notdoord.py --device <serialDevice> --cardsPath <pathToCardsFile>
e.g.
$ ./notdoord.py --device /dev/ttyUSB0 --cardsPath cards.dat
This will run the daemon in the foreground.
An example systemd service unit file is included in notdoord.service
. It can be set up follows:
- Copy
notdoord.service
to /etc/systemd/system/notdoord.service - Enable autostart on boot with
sudo systemctl enable notdoord.service
- Start the service with
sudo systemctl start notdoord.service
Service output can be viewed by running sudo journalctl -fu notdoord.service