Sign up here and you can log into the forum!

Remote Control Discrete Codes

This is the place to ask for how to use software that is (or isn't) included in the various wdlxtv flavours. Questions about software such as rtorrent, NZBGet, sshfs, curlftpfs, ssh, telnet, etc.

Re: Remote Control Discrete Codes   

Postby recliq » Sun Nov 13, 2011 3:03 am

you missed it...
3. follow the procedure from http://wiki.wdlxtv.com/Eiri to enable EIRI and find the codes of the 2 buttons from step 2
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5035
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Remote Control Discrete Codes   

Postby zordon » Mon Nov 14, 2011 2:08 am

I am able to telnet to the WD device (telnet [WD IP]), create the eiri.conf file, enable EIRI (config_tool -c EIRI=ON), save eiri (config_tool -s) then (reboot).

I wait to the WD to start but when I try a telnet [WD IP] 14247, I just get a blank screen. I thought enabling EIRI allowed me to use this port. I can still do a normal telnet [IP] (without the port), but then I cannot see the IR command codes being sent when I use the remote.

Are you sure there isn't another setting I need to enable to use port 14247 or perhaps another port number?

PS: I'm using WDLXTV 1.03.49 (previously I had the official 1.06.15 - but I downgraded by manually changing the version to 1.06.16) - not sure if this matters though.
User avatar
zordon
n00b
 
Posts: 7
Joined: Thu Mar 31, 2011 9:29 pm

Re: Remote Control Discrete Codes   

Postby seedofmemory » Sun Nov 27, 2011 2:02 pm

this is frustrating because i already got this to work earlier. but I had to re-do it for various reasons, and now i can't get it back. i've followed the directions to the letter (including the help that was previously given about the "dos2unix" fix for the .sh files). now, no matter how many times i attempt to run "power_off.sh" while the wdtv is on, i get the error: power_off.sh: line 4: irsend: not found. when i try running "power_on.sh" while the wdtv is off, i get the error: power_on.sh: line 4: irsend: not found.

i'm stumped.

in some attempt to be helpful - ZORDON, you say you see a blank screen after you telnet to port 14247. that's what you should see. at that point, start pushing buttons on your extra remote and write down those numerical codes that pop up. if no codes come up, you need to look for a different extra remote.
seedofmemory
n00b
 
Posts: 3
Joined: Wed Nov 02, 2011 7:35 am

Re: Remote Control Discrete Codes   

Postby recliq » Sun Nov 27, 2011 3:00 pm

use irinject instead of irsend.
Code: Select all
# irinject --help
proper usage:
     /usr/bin/irinject <command>
commands:
  REMOTE BUTTON - command
          POWER - power
           HOME - home
             UP - up
           LEFT - left
          ENTER - enter
          RIGHT - right
           DOWN - down
           BACK - back
           STOP - stop
         OPTION - option
         REWIND - rewind
     PLAY/PAUSE - pplay
        FORWARD - forward
       PREVIOUS - previous
           NEXT - next
         SEARCH - search
          EJECT - eject
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5035
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Remote Control Discrete Codes   

Postby zordon » Sun Dec 18, 2011 4:50 am

I got it working now on my Logitech Harmony one remote.... WOW, what a mission - but the victory is sweeter for it.

Some tips:
1. Put the power_on.sh and power_off.sh on your flash drive (not in any of the WD folders). It did seem a bit odd that I couldn't put the scripts on the WD device though - but that didn't work.

2. When editing the eiri.conf file in the /conf folder on WD, Ctrl + X + Y didn't save the file. I had to resort to an FTP program to copy the file to WD.

3. When I did a telnet 192.168.0.101 14247, I got a blank screen. As seedofmemory rightly said, it was merely waiting for me to press a button on an unused remote. This code then goes into your power_on.sh / power_off.sh file. PS: you need to find a remote that sends an IR code that does not control any of your devices - I ended up using my AMP remote and using one of the buttons that I knew did nothing (it was also a programmable button on my AMP remote).

4. Using the Harmony remote program, go to Devices | Media centre PC (this is the WD device) | Click on Learn IR. Select the PowerOn and PowerOff check boxes then Learn Selected Commands. Using a unused remote, you can then teach your Logitech remote two additional IR codes.

5. Still in the Harmony remote program, stay on Devices | Media centre PC (this is the WD device) | now click on Settings | Adjust power settings, Next and A button on the remote for On, and a different button for Off. Now choose I don't have the original remote, but I know the command that is used. You now select the new command you created in step 4.

So in summary:
-----------------
step 1+2 tells the WD device what to do when it gets a new IR code that it doesn't know
step 3 finds the actual IR code that you would like to send
steps 4+5 sets up the universal remote to send these codes
User avatar
zordon
n00b
 
Posts: 7
Joined: Thu Mar 31, 2011 9:29 pm

Re: Remote Control Discrete Codes   

Postby grrwmr » Tue Dec 27, 2011 9:31 pm

SUCCESS at last, what an effort.

As Zordon commented, is it possible to put the two POWER scripts in the wd media player so that you don't have to access them from the USB port. The only place I was able to put the scripts was in the /tmp directory using WEC, but when I rebooted they were gone.

Thanks for everyone's input, especially:-
nradu for his step by step instructions.
reclinq's dos2unix command & irinject instead of irsend hints.

Cheers
User avatar
grrwmr
n00b
 
Posts: 11
Joined: Thu Apr 28, 2011 4:56 am

Re: Remote Control Discrete Codes   

Postby mad_ady » Wed Dec 28, 2011 1:34 am

If the scripts are small (a few kb in size) you can copy them to /tmp/conf - which is a persistent (but very small) storage location.
User avatar
mad_ady
Developer
 
Posts: 3027
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Remote Control Discrete Codes   

Postby grrwmr » Wed Dec 28, 2011 1:57 am

mad_ady wrote:If the scripts are small (a few kb in size) you can copy them to /tmp/conf - which is a persistent (but very small) storage location.


I tried uploading the files & got this message "There were some errors while uploading."
So I tried creating the files & got this message "File could not be created."
The 2 files are only 1kb each.

Cheers
User avatar
grrwmr
n00b
 
Posts: 11
Joined: Thu Apr 28, 2011 4:56 am

Re: Remote Control Discrete Codes   

Postby recliq » Wed Dec 28, 2011 2:18 am

It would help a lot if you tell us what exactly you tried... which commads did you try? where exactly did you try to put the files? how did you try to put the files there?
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5035
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Remote Control Discrete Codes   

Postby grrwmr » Wed Dec 28, 2011 3:00 am

recliq wrote:It would help a lot if you tell us what exactly you tried... which commads did you try? where exactly did you try to put the files? how did you try to put the files there?


I'm running 1.05.04_V_WDLXTV.COM_WDLXTV_LIVE-0.5.1.1
In my previous post I was trying to copy my scripts to /tmp/conf using WEC which wasn't working.
Since then I used Telnet to get my scripts to /tmp/conf.
When I reboot, the scripts are still there but do not respond when using my remote.
I used Telnet to edit the eiri.conf file from this (which works);

[POWEROFF]
code=3659879595
type=shell
shell=/tmp/media/usb/USB1/8423-98F1/power_off.sh

[POWERON]
code=3676591275
type=shell
shell=/tmp/media/usb/USB1/8423-98F1/power_on.sh


to this (which doesn't work);

[POWEROFF]
code=3659879595
type=shell
shell=/tmp/conf/power_off.sh

[POWERON]
code=3676591275
type=shell
shell=/tmp/conf/power_on.sh


I run this just to make sure dos2unix /tmp/conf/power_off.sh

Hope this is the kinda info your after.
User avatar
grrwmr
n00b
 
Posts: 11
Joined: Thu Apr 28, 2011 4:56 am

PreviousNext

Return to Application Questions

Who is online

Users browsing this forum: No registered users and 2 guests