Coder Social home page Coder Social logo

smartphone-doorlock's Introduction

Smartphone-Doorlock

Doorlock that can be locked or unlocked through your smartphone

You’ll want to make sure you have node.js installed on your Raspberry Pi. Adafruit has a nice guide on their website.

Installation

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.

cd Smartphone-Doorlock

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 blynkToken variable.

vim doorlock.js

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 rc.local.

Type pwd to get your current directory. I highlighted this and copied it with control-c.

Edit the rc.local file with vim.

sudo vim /etc/rc.local

Press i, then scroll down and add sudo node <Your Directory From pwd>/doorlock.js

Press esc, then type :wq! to save and exit. Restart the Pi to start the program.

smartphone-doorlock's People

Contributors

atainter avatar lisaong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.