Application for controlling LinuxLock access control system
Kaleidus Code LinuxLock service for Raspberry Pi
nodeexecutable, which is terribly inconvenient. Installation instructions:
# Download binary tarballwget# Install for the entire systemsudo tar -xzf node-v0.10.13-linux-arm-pi.tar.gz --strip 1 -C /usr/local
To install, download the package with
sudo npm install -g linux-lock-pi, on a Raspberry Pi, equipped with the Raspbian Wheezy operating system.
Currently, the script communicates with a hardcoded webserver, and so it is necessary to find the line in
restify.createJsonClient() is called, and change the 'url' to the installation of your own LinuxLock web server.
Following this, configure the service to run perpetually, either as a Debian service (example instructions), or use a tool such as node-forever.
In order for the service to communicate with the LinuxLock webserver, we require a static IP which is known to the server itself. It is the task of the network administrator to configure the networking correctly. Using Raspbian Wheezy, network configuration is largely a task of writing /etc/network/interfaces in an effective manner.
Congratulations, your lock service is now communicating with the LinuxLock server, and can be notified when a user is authorized to enter a door via an RFID swipe, and it takes only milliseconds. Wonderful!
Of course, the code to actually enable a door to be opened is omitted from this document, and is left as an exercise to the user, until further notice. This is due largely to the fact that MagLock units differ in electronic input requirements, and it is difficult to design a standard which "works for everyone" and is simple to configure.