Difference between revisions of "Eiri"
(creatin the wiki of eiri, the app for use other ir controllers) |
|||
Line 1: | Line 1: | ||
+ | == 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. | '''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. | ||
Line 16: | Line 17: | ||
− | Since the 0.4.1.9-4 b-rad's Firmware's the app eiri is incluided in the fimware, and | + | 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... | 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, | make a telnet to the device, |
Revision as of 08:15, 29 June 2010
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.
some features:
* 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.
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:
cd ..
cd conf
nano eiri.conf
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 (use telnet, with putty I can't see any code) and 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 frist numbers, unknown is the action and 0 is te numer 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
once you have typed everything, use Control + X,and Y and reboot (i'm not sure if this is necessary,but...)
if you writed all ok, you can use the WD with the 2 remote controls.
NOTES
The WD can't use some remotes, or some buttos. 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 puts 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