Your Universal Remote Control Center
RemoteCentral.com
Discrete Code Hunter Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 3 made on Tuesday July 12, 2011 at 10:08
steelgtr
Long Time Member
Joined:
Posts:
December 2004
129
On July 12, 2011 at 05:13, grrwmr said...
I've put the same question to WD & they say there are no discretes, so I went to forum.wdlxtv.com & asked the question, which there is a way of doing it but it seems quite involved, & is to complicated for me to follow.
Here is the reply to my post on:-

I managed to implement Discrete Codes for Power On and Power Off using EIRI, an old unused remote control and a Logitech Harmony remote control.
The advantage of this is a very reliable setup for universal remote controls oriented on activities (users of such remote controls knows what it's all about).

I hope anyone interested in this can easily follow these steps:

1. put the following 2 scripts on your USB stick:

power_on.sh

#!/bin/sh
if [ `cat /proc/led` = "OFF" ]; then
irsend POWER
fi

power_off.sh

#!/bin/sh
if [ `cat /proc/led` = "ON" ]; then
irsend POWER
fi

2. take an old (unused) remote control and pick 2 buttons to be used for Power On and Power Off

3. follow the procedure from [Link: wiki.wdlxtv.com] to enable EIRI and find the codes of the 2 buttons from step 2

4. add the following lines to /conf/eiri.conf (or create the file from scratch if it does not exist):

[POWEROFF]
code=the_IR_code_of_the_button_for_power_off_found_in_step_3
type=shell
shell=the_path_to_scripts_from_1st_step/power_off.sh

[POWERON]
code=the_IR_code_of_the_button_for_power_on_found_in_step_3
type=shell
shell=the_path_to_scripts_from_1st_step/power_on.sh

5. (optional) if you use a Logitech Harmony you can trick it and add the 2 buttons from step 2 on WD TV device using Learn IR (I add them as button "1" and button "2" - they don't exist on original WD remote, so no conflicts with original remote). next select Settings under WD TV device and Adjust Power Settings. in here you can select that your device has a discrete button for ON and another one for OFF (the 2 buttons newly learned).
Good luck,
Radu

Hopefully you or someone elsd has better luck following the above tutorial,
or go to their site & do a search for "discrete".
Good luck
Grant

Thanks, Grant

A little above my abilities but great job!


bob


Hosting Services by ipHouse