Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 998 Bytes

README.md

File metadata and controls

42 lines (27 loc) · 998 Bytes

wHomeControlPi

Wireless HomeControl NodeJS Addon for RaspberryPi

About

wHomeControlPi is for controlling radio controlled remote control sockets / switch.

Prerquirements

  1. Raspberry Pi
  2. 433 MHz Sender
  3. wiringPi

###Install wiringPi

sudo apt-get install git-core
sudo apt-get update
sudo apt-get upgrade
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build

See wiringPi website: https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install

Using wHomeControlPi

var whomecontrolpi = require('whomecontrolpi');

whomecontrolpi.switchElroOn('00010', 'A');
//whomecontrolpi.switchRevOn('A', 1);

whomecontrolpi.switchElroOff('00010', 'A');
//whomecontrolpi.switchRevOff('A', 1);