Skip to content

brsc2909/PIGate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PIGate

  • extremely simple interface for opening and closing a electronic gate using the rasberry pi with expressjs and nodejs. this can be used with basically anything that needs a basic on/off switch over web, garage door/lights/electronic door lock Etc. for most cases you will need a basic knowledge of programming and linux to get this up and running for your application.

Getting Started

prerequisites

  • npm sudo apt-get install npm

  • mongodb details for installing and setting up can be found at the mongodb website, the schema to be used is also included.

optional

  • forever sudo npm install forever -g (allows you to run the the app forever)
  • nodemon sudo npm install nodemon -g (refreshes the app when changes are made)

Install

  • using git from the terminal cd [directory where you want project to be housed]
    git clone http://www.github.com/brsc2909/PIGate
    cd PIGate
    npm install this will install all the requirements

  • Or

running the app

from the apps root directory run npm start or nodemon start the app should now be running on port 3000

using the web interface

  • navigate to "[ip of the machine app is running on]:3000"
  • enter username and password into the fields
  • press open (as of yet there is no feedback as to whether or not the request was successfulll or not)

using the android app SimpleWebButton

you will need to enable 3rd party app on your phone to install.

  • click on the 3 dots in the top right hand corner and select preferences
  • enter in your server int the form http[s]://www.myserver.com
  • enter the port number, (3000) is the default
  • enter username and password
  • press the back arrow
  • press the GO button

using IFTTT

  • you will need to download IFTTT, create an account, IFTTT DO button. and also create an acount with maker

ssh into raspberry pi when wifi is not connected

  • connect PI directly to computer using ethernet cable
  • disable wifi
  • sudo ifconfig eth0 169.254.86.100 replace eth0 with your ethernet interface (its usually 'eth0')
  • ssh [user]@169.254.86.100 default user is pi
  • to add a wifi netword
    • `sudo nano /etc/wpa_suplicants/wpa_suplicants.conf
    • add to the bottom
     network={
     	ssid="YOUR_NETWORK_NAME"
     	psk="YOUR_NETWORK_PASSWORD"
     	key_mgmt=WPA-PSK
     	}

### known issues
* app can fail on first use on some ocassions

### TODO's
* improve database schema (bare bones at the moment)
* add options to update password / add users etc
* finish readme.


####more to come...

About

web interface for a raspberry pi based gate/garage door opener

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published