First of all we need wiringPi:
git clone git://git.drogon.net/wiringPi -> if its down you can use a fork git clone https://github.com/WiringPi/WiringPi cd wiringPi ./build uninstall ./build - Test gpio gpio -v gpio readall
Then the raspberry remote:
git clone --recursive https://github.com/ninjablocks/433Utils.git cd 433Utils/RPi_utils make all
Wiring:
You can see in send.cpp the line
int PIN = 0;
So you have to connect DATA from the transmitter to your Raspberry wPi 0 (GPIO 17).
GRND from the transmitter to any Raspberry GND
VCC from the transmitter to 5V to the Raspberry.
The first five Numbers represent the channel.
The last five Numbers are the socket numbers.
Now you can use for our Power Socket:
./send 11111 4 1
to turn it on
./send 11111 4 0
to turn it off