Wednesday 21 December 2011

Playing with BrandMyMail - new design



Green Company Template

Lana Del Rey template

Tuesday 20 December 2011

BrandMyMail templates

My BrandMyMail templates


Lana Del Rey template

Anonymous Template


Thursday 22 September 2011

Tuesday 13 September 2011

Ubuntu CheckGmail always prompt for password fix



Download patch from here

sudo /usr/bin/checkgmail -update
sudo patch /usr/bin/checkgmail checkgmail.patch

checkgmail

Saturday 27 August 2011

Remote outlets, AVIDSEN and CHACON


Remote Control AVIDSEN (103107)

ON OFF
A 265353 265349
B 266325 266321
C 266649 266645
D 266757 266753
E 266793 266789

period 150
















Remote Control CHACON (EMW200RC)

ON OFF
1 164023 164022
2 172771 172770
3 175687 175686
4 176659 176658

period 360

(Note: you may have to try different period intervals, only this worked for me, and it is different from what i get in show_received_code program from RemoteSwitch Library)













How control remote outlets with Arduino ?

1 - Get an RF 433Mhz transmitter module
2 - Install RemoteSwitch library
3 - Connect module to PIN 4
4 - Upload program with the right codes













#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
}


Saturday 20 August 2011

redmine installation problem

i was trying to install redmine from the link:

Got this problem:
genbox:~# gem install -v=2.3.5 rails
ERROR: could not find gem rails locally or in a repository

This fixed:
wget http://rubyforge.org/frs/download.php/74343/rubygems-1.5.3.tgz
tar -xf rubygems*tgz
cd rubygems*
ruby setup.rb
ln -s /usr/bin/gem1.8 /usr/bin/gem







Tuesday 4 January 2011

Arduino Remote Control Outlet

Today i bought an remote control outlet kit from avidsen (2 adapters + remote control)
Using the library and info from here and here, was possible to decode the on/off codes.

After finding these codes, i added and actuator to the platform with two functions on() and off()



Electric water heater


Outlet adapter


Outlet adapter and remote control



Actuator in system


Mobile version





New update: i was forgetting one important thing, set a policy to turn on water heater between 7 am and 8 am and turn off after 8 am.


My policies in system


turn_heater_on policy info