Green Company Template
Lana Del Rey template
Download patch from here
sudo /usr/bin/checkgmail -update
sudo patch /usr/bin/checkgmail checkgmail.patch
checkgmail
#include <RemoteSwitch.h>
#define OUTLET_A_ON 265353
#define OUTLET_A_OFF 265349
#define PERIOD 150;
#define RF_TX_PIN 4
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Sending off");
transmit(OUTLET_A_OFF);
delay(5000);
Serial.println("Sending on");
transmit(OUTLET_A_ON);
delay(5000);
}
void transmit(unsigned long rcode){
unsigned long code = rcode;
unsigned long period = PERIOD;
code |= (unsigned long)period << 23;
code |= 3L << 20;
RemoteSwitch::sendTelegram(code, RF_TX_PIN); // RF transmitter pin
}