Skip to content

Control remote plugs with the Raspberry Pi, features a webinterface. Uses RCSwitch and wiringPi.

License

Notifications You must be signed in to change notification settings

justinotherguy/raspberry-remote

 
 

Repository files navigation

Raspberry Pi Remote

About

Control your remote power sockets with a raspberry pi. This project includes a web interface.

There's also a powerswitch branch, if you want to imitate a ConnAir remote station on the raspberry and use the nice android app from http://power-switch.eu

And in case your Raspberry is running Windows10, check https://github.com/Panzenbaby/Raspberry-Remote-for-Windows-10-IoT-Core

Credits

  • sui li for creating RCSwitch for the arduino
  • r10r for porting RCSwitch to the raspberry
  • x3 for creating homecontrol4me

Required Hardware

  • Raspberry Pi
  • 434 Mhz transmitter
  • Some radio controlled power sockets

Setup

Usage

Try if all is working with the send program

  • Switch on single socket: ./send.cpp 00001 1 1

Pass the -b-option to use binary socket numbering instead of the common "only one switch up"-numbering. See Binary Mode for further details.

Binary Mode

Most sockets available for purchase use the following numbering scheme:

no. address
A 10000
B 01000
C 00100
D 00010
E 00001

Of course, this doesn't make much sense, because it limits the maximum of supported sockets to 5 (or 6, if 00000 is included), and is less intuitive. Using real binary numbering would increase the limit of supported sockets per system to 31, and be more intutive. In binary mode, the sockets need to be numbered as below:

no. address
1 00001
2 00010
3 00011
4 00100
5 00101
8 01000
16 10000
31 11111

Note that you need to configure your sockets to this kind of numbering to use this feature. This often includes that the dedicated remote that gets shipped with the sockets often is rendered useless, since it only supports the former way of numbering.

Daemon

Use the daemon in combination with the webinterface

  • Copy the files in webinterface in your http directory
  • Edit ip address in config.php
  • Edit the predefined setup of sockets in config.php

About

Control remote plugs with the Raspberry Pi, features a webinterface. Uses RCSwitch and wiringPi.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 68.0%
  • Makefile 16.1%
  • PHP 6.8%
  • Processing 4.2%
  • CSS 2.6%
  • MATLAB 1.9%
  • C 0.4%