Skip to content

RCSwitch implementation for the Raspberry Pi

Notifications You must be signed in to change notification settings

zieren/rcswitch-pi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a tool to use radio controlled power sockets with the Raspberry Pi. It is forked from https://github.com/r10r/rcswitch-pi (kudos to r10r) to fix some trivial compiler issues. It is tested on a Raspberry Pi 1 and 4 (the models I have at hand). I expect to be using this myself for the foreseeable future and hope to be able to maintain it. Despite being old, it works just fine for me.

Instructions

  1. Install WiringPi:
    git clone https://github.com/wiringpi/wiringpi
    cd wiringpi
    ./build
    
  2. If you want to use a specific GPIO pin, edit the send.cpp source file. The default is GPIO17.
  3. Compile rcswitch-pi:
    git clone https://github.com/zieren/rcswitch-pi
    cd rcswitch-pi
    make
    
  4. Call it with system code, unit code and desired state. Example:
    rcswitch 10011 3 1
    

About

RCSwitch implementation for the Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.7%
  • PHP 3.8%
  • Makefile 0.5%