Skip to content

masterbachman/RaspberryPiRelayControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔌 Raspberry Pi Relay NODE.JS

Supported for Raspberry Pi II this simple Node.js webserver allows for GUI relay control. As well as URL encoding for the relays. for EX: 192.168.1.65/relay1/on Username and Password support coming soon!

alt text alt text

Hardware Used

You can purchase the hardware I used from these websites.

Here is a link to the relay: http://www.keyestudio.com/keyestudio-rpi-4-channel-relay-shield.html Raspberry Pi https://www.adafruit.com/product/3055?src=raspberrypi

Installation

OS X & Linux:

sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install build-essential
sudo apt-get install git

Usage

Download or clone the project into a directory of your choosing. Then navigate to that folder. Use the following commands.

npm install

Run the server using the following command.

node index.js

To access your webserver find the IP of your machine.

ifconfig /

Example: 192.168.1.1:3000

References

  1. BIG THANKS TOO! (https://github.com/my-electronics-lab/rpi-led-local-server-nodejs)
  2. BIG SHOUTOUT TOO Cheridan Uter

About

🔌 Raspberry Pi II this simple Node.js webserver allows for GUI relay control.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published