Doorlock that can be locked or unlocked through your smartphone
If running on Jessie Lite, install pigpio:
sudo apt-get install pigpio
Navigate to the folder you want to clone the repository and type
git clone https://github.com/HackerHouseYT/Smartphone-Doorlock.git
Once done cloning, navigate into the folder.
Install the dependencies (if it fails, delete node_modules and retry without sudo)
sudo npm install
Add the Blynk auth token by opening up the
doorlock.js file and replacing the
Scroll down, press
i to edit in vim, and replace the token between the single quotes. Press
esc then type
:wq to save and quit.
sudo node doorlock.js starts the program.
Running at Startup
To run at startup, you can add the start command to your
pwd to get your current directory. I highlighted this and copied it with
rc.local file with vim.
sudo vim /etc/rc.local
i, then scroll down and add
sudo node <Your Directory From pwd>/doorlock.js
esc, then type
:wq! to save and exit. Restart the Pi to start the program.