Skip to content

denvereezy/nodejs-home-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Automation

This project was created in node.js using modules like johnny-five and cron. The aim was to switch on/off lights at a certain time.

Getting started

  • If not already installed, install node.
  • Clone this repo and change directory to it in the terminal: ~ $ cd nodejs-home-automation.
  • Now do npm install. This will install all modules used.

Starting the app

  • Run nodemon app.js or node app.js.

Using the app

  • In the app.js file insert the time you would like for your lights and the days you want to toggle it.
  cronTime: '0 45 17 * * 1-5'
            ________
  • Check if you are using 12 hour or 24 hour time format.

Setting up hardware

  • The Raspberry Pi acts as an automatic switch so if you plan to use big lights instead of small led's, you need to use a relay to use mains power.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published