-
1Step 1
Get your Omega and Power Dock (or Expansion Dock) and run through the setup procedure here
-
2Step 2
Install nodejs
opkg update opkg install nodejs
-
3Step 3
Install git
opkg update opkg install git git-http
-
4Step 4
There are two options on how to run omega_garage.
To Install on Omegas with only 16mb of Flash storage:
Manuallly Clone the omega garage repo into /tmp/omega_garage
git clone https://github.com/JimJamUrCode/omega_garage.git /tmp/omega_garage
Move the config file to your home directory
mv /tmp/omega_garage/config.json /root/config.json
Modify the config.json file with the appropriate credentials
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
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
reboot the onion omega to make sure that the startOmegaGarage script is executed upon reboot.
reboot
OR
To Install on Omegas with more than 16mb of Flash storage:
Manuallly Clone the omega garage repo into your home directory
git clone https://github.com/JimJamUrCode/omega_garage.git /root/omega_garage
Move the config file to your home directory
mv /root/omega_garage/config.json /root/config.json
Modify the config.json file with the appropriate credentials. Also the configuration file needs to correctly correspond with the pins that you have connected your relays and sensors to. Choose your pins wisely.
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
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
reboot the onion omega to make sure that the startOmegaGarage script is executed upon reboot.
reboot
-
5Other Hardware
At this point you need to make a decision, either build your relay circuit, or buy it. I bought one for fairly cheap ($7) that had 4 relays on it. SainSmart relay. You also need to get some magnetic proximity sensors. Most of these will work.
-
6Config File Notes
I had to run some tests to ensure that when the power went out, and then came back on, my garage door didn't try and open. Depending on the relay you make/buy, and the pin you assign it to, it may activate your garage door when the Omega is powering on. The config file that is included uses pin 6 and 7 for relays because the Omega naturally boots with them in the output state with the pins set to active high. The magnetic relays are on pins 23 and 26 because once again the Omega boots with them set as inputs.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.