Software for the opening of the door.
The system uses standardised card IDs in the format "[A-Z0-9]+-[A-Z0-9]+"
Installation is separated into two parts: general raspberry pi configuration and installation of the system
- Install the raspberry pi with either raspbian (recommended) or moebius (preferred) and configure as needed
- Update the system to the latest libraries by running
apt-get update && apt-get upgrade
- (moebius only) Install and configure ntp to keep the correct time and date
- Install the card reader libraries:
apt-get install build-essential libusb-dev libusb++-dev libpcsclite-dev libccid pcscd libacsccid1
- Install PHP (last tested on PHP 7.4)
apt-get install php-dev php-cli php-pear php-ldap
- Install git and composer
apt-get install git composer
- Create a directory for the code
mkdir /opt/deursysteem
- Git clone the repository into that directory
- Go to the cloned directory and install dependencies with composer
composer install
- Compile the system by running
make
andmake install
. - Disable the pn533 and nfc modules by copying the included config file
cp blacklist-libnfc.conf /etc/modprobe.d/blacklist-nfc.conf
- Start and enable the service:
systemctl enable --now deursoos
- Connect the arduino to a laptop using the usb cable
- Add the following URL as additional board URL in the arduino IDE: https://www.pjrc.com/teensy/package_teensy_index.json
- Program the arduino with the deur.ino program