A python script to allow you to control Energenie sockets using a Raspberry Pi with Energenie's Pi-mote attached.
To use the script from the command line, enter commands in the format:
./energenie.py <socket num> <on/off>
Note: you will need root privileges to access the GPIO ports
So, to turn on socket one:
sudo ./energenie.py 1 on
To turn off all sockets:
sudo ./energenie.py 0 off
(currently the script only supports up to two sockets, or two socket codes, to be precise)