Git Product home page Git Product logo

omega_garage's Introduction

omega_garage

A node js application that can control your garage door(s).

This app uses a configuration file to define pins, the name of the garage door that the pin corresponds with, and a sensor pin for the magnetic proximity sensor.

Mainly designed for use with two wire garage door openers. I have found that some Chamberlain 2 wire systems do not work with just a relay. The systems have something called Security+ 2.0 which uses a serial wire protocol. I have yet had time to decrypt this so be aware this doesn't work with every 2 wire system.

To Install on Omegas with only 16mb of Flash storage:

  1. Install nodejs

opkg update

opkg install nodejs

  1. Install git and git http

opkg update

opkg install git git-http

3.Manuallly Clone the omega garage repo into /tmp/omega_garage

git clone https://github.com/JimJamUrCode/omega_garage.git /tmp/omega_garage

  1. Move the config file to your home directory

mv /tmp/omega_garage/config.json /root/config.json

  1. Modify the config.json file with the appropriate credentials

  2. Move the 'startOmegaGarage' file to the '/etc/init.d' directory and grant it rights to execute

mv /tmp/omega_garage/startOmegaGarage /etc/init.d/

chmod +x /etc/init.d/startOmegaGarage

7.Enable the new init.d script to make the service run at boot. The startOmegaGarage script will load the omega_garage repo into RAM and start the server.

/etc/init.d/startOmegaGarage enable

  1. reboot the onion omega to make sure that the startOmegaGarage script is executed upon reboot.

reboot

To Install on Omegas with more than 16mb of Flash storage:

  1. Install nodejs

opkg update

opkg install nodejs

  1. Install git and git http

opkg update

opkg install git git-http

3.Manuallly Clone the omega garage repo into your home directory

git clone https://github.com/JimJamUrCode/omega_garage.git /root/omega_garage

  1. Move the config file to your home directory

mv /root/omega_garage/config.json /root/config.json

  1. Modify the config.json file with the appropriate credentials
  2. Move the 'startOmegaGarage' file to the '/etc/init.d' directory and grant it rights to execute

mv /root/omega_garage/startOmegaGarage16mbplus /etc/init.d/

chmod +x /etc/init.d/startOmegaGarage16mbplus

7.Enable the new init.d script to make the service run at boot. The startOmegaGarage script will load the omega_garage repo into RAM and start the server.

/etc/init.d/startOmegaGarage16mbplus enable

  1. reboot the onion omega to make sure that the startOmegaGarage script is executed upon reboot.

reboot

In either case:

  • There are a few more dependencies now that email notifications are enabled.

  • Express js

  • emailjs and its dependencies

  • You must get a copy of express for node. Follow the instructions in the guide here: https://community.onion.io/topic/855/nodejs-express-http-server/2. I have included a version in the repo that is working for me.

omega_garage's People

Contributors

jimjamurcode avatar jharding86 avatar

Watchers

 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.