What is EIRI?
eiri allows you to use other remotes with the WDTV, to remap keys from the WDTV remote to new key sequences and to execute shell scripts with the remote. For example you can remap a key on your remote to change the movie language with just one key press instead of doing it complicated via the options menu. Furthermore eiri enables you to send commands to the WDTV from the command line or remotely via network.
* remap IR commands * map commands from other remotes to WDTV commands * execute shell commands triggered by an IR code
A second feature of the release of eiri is the network mode. the eiri daemon (eirid) starts a TCP server on port 14247 that listens for connections from clients. When you connect your client two things happen and can be done:
- You can send command sequences in the same way you can do with the irsend command line program. The communication is done in ascii mode (No UTF-8 or other encoding) and each line must be terminated with a n character or otherwise no commands are executed. So you would send the string “UP 1000 ENTER” to achieve the same as the irsend call done above.
- You are notified about any commands received from the real remote. For each command a line is send to your program in the form of 4177951108:HOME:0 where the first parameter is the IR code, the second one the alias and the third parameter the repeat count. Repeat count comes into play when the user holds a key pressed. It is increased by one each time a pressed key is resend. If another key is pressed is it reset to zero. Even when you don’t use the notifications you should still read them and flush them into the digital nirvana because otherwise it can happen that some buffer runs full and your process cannot communicate any longer with eiri.
eiri is part of the WDTV Tools project and is created by Elmar Weber.
Since the 0.4.1.9-4 b-rad's Firmware's the app eiri is incluided in the fimware, and is a good app. For example: In lg tv's,the IR controller has 3 buttons to use others devices, the TV(normal), a DVD and a VCR, now, you can use the DVD button for the WD. Maybe you have a tv with can use others devices, or an universal remote... or your remote is broken.... or i don't know...
How to use another IR remote controller
make a telnet to the device, USER: root, no password (if you not changet), then execute:
copy this content:
[POWER] code= type=alias alias=POWER [HOME] code= type=alias alias=HOME [TOP_MENU] code= type=alias alias=HOME [MENU] code= type=alias alias=HOME [UP] code= type=alias alias=UP [LEFT] code= type=alias alias=LEFT [ENTER] code= type=alias alias=ENTER [RIGHT] code= type=alias alias=RIGHT [DOWN] code= type=alias alias=DOWN [BACK] code= type=alias alias=BACK [STOP] code= type=alias alias=STOP [OPTION] code= type=alias alias=OPTION [REWIND] code= type=alias alias=REWIND [PLAY] code= type=alias alias=PLAY [PAUSE] code= type=alias alias=PAUSE [FORWARD] code= type=alias alias=FORWARD [PREVIOUS] code= type=alias alias=PREVIOUS [NEXT] code= type=alias alias=NEXT [SEARCH] code= type=alias alias=SEARCH [EJECT] code= type=alias alias=EJECT
once we have all typed press Control + X and Y (it's to save the file) run this command:
config_tool -c EIRI=ON (puts in the S00custom-options to run eiri)
reboot the device typing reboot
once it is restarted, telnet to port 14247 of the wd (telnet ip_or_name_of_wd 14247) (use telnet, with putty I can't see any code)
Note:You can use telnet localhost 14247 if you are in a active telnet session
And now press the buttons of the new remote control. In the telnet screen you have to see: 4194679365:UNKNOWN:0 the "button_code" of ir is the first numbers, unknown is the action and 0 is the number of times pressed. without closing the other open telnet and edit the file eiri.conf, and update with codes that you return the Eiri-Telnet , you have to put in the code= string
[POWER] code=4194679365 type=alias alias=POWER
once you have typed everything, use Control + X,and Y and reboot (i'm not sure if this is necessary,but...)
if you wrote all ok, you can use the WD with the 2 remote controls.
Last, Please Remember to Backup Your File eiri.conf.
The WD can't use some remotes, or some buttons. some times you have to program the Remote control to assign what another device you want to control (in Lg is pressing for a moment menu + mute, then the led of the DVD or VCR button turns ON, then push 008, and MENU to save)
You can assign keys to commands or scripts, examples:
[CHANGE_LANGUAGE] code = YOURIRCODE type = sequence alias = OPTIONS ENTER 1000 200 1000 RIGHT OPTIONS [the numbers mean waiting time] [RUN_SOMETHING] code = YOURIRCODE type = shell shell = /path/script.sh parameter1 parameter2
The URC 8820 universal remote from Cox can be programed to take the place of the tiny WD Pro Plus remote. Other universal remotes should work similarly. The trick is assigning a code on the remote that is recognized by EIRI. On the 8820 most of the common codes (LG, Sony...) won't work and produce no results when tested (telnet ip_or_name_of_wd 14247). The more advanced device codes seem more likely to have more keys recognized by EIRI. By trial and error the code for a Vizio DVD (2563) was found to work.
[POWER] code=4144561920 type=alias alias=POWER [HOME] code= type=alias alias=HOME [TOP_MENU] code= type=alias alias=HOME [MENU] code=2841050880 type=alias alias=HOME [UP] code=2790915840 type=alias alias=UP [LEFT] code=3091726080 type=alias alias=LEFT [ENTER] code=2958032640 type=alias alias=ENTER [RIGHT] code=2757492480 type=alias alias=RIGHT [DOWN] code=3108437760 type=alias alias=DOWN [BACK] code=3041591040 type=alias alias=BACK [STOP] code=3476094720 type=alias alias=STOP [OPTION] code=3827040000 type=alias alias=OPTION [REWIND] code=3392536320 type=alias alias=REWIND [PLAY] code=3425959680 type=alias alias=PLAY [PAUSE] code=3425959680 type=alias alias=PAUSE [FORWARD] code=3375824640 type=alias alias=FORWARD [PREVIOUS] code=2874474240 type=alias alias=PREVIOUS [NEXT] code=2857762560 type=alias alias=NEXT [SEARCH] code=2907897600 type=alias alias=SEARCH [EJECT] code=2891185920 type=alias alias=EJECT