Author Topic: small remote simulator  (Read 4667 times)

Offline avvdr

  • Full Member
  • ***
  • Posts: 92
    • View Profile
    • Email
small remote simulator
« on: January 04, 2008, 19:51:48 »
Hi all,
because I work all the time a bit away from my vomp - accessing it via telnet and using netcat -u to simulate remote key-presses -  I now wrote a small (java) based simulator for the remote.
By taking a photo of it (hmm quality...) and having a key mapping file attached, you can now click with the mouse on the keys and it will send out appropriate UDP commands.
Currently for the old remote (that's what I have) - but it could be easily adapted to the new one - see included file USAGE.TXT.
For me it works (now it's easier to remember all the keys - and you got a feedback where they keys are located and if certain functions make sense).
Maybe it could help somebody else too.
Simply unpack attached file to an empty dir and run:
  java -jar usender.jar remote/oldremote.jpg vomp-ip
!! there was a typo in this command before (missed usender.jar)!!
Needs java 1.5.

regards
Andreas
« Last Edit: January 05, 2008, 11:23:35 by avvdr »

Offline Chris

  • Administrator
  • Hero Member
  • *****
  • Posts: 541
    • View Profile
    • Email
Re: small remote simulator
« Reply #1 on: January 05, 2008, 15:18:24 »
Good work!

I have made an image and keys file for the new remote, but there is a little problem.... It is chopping the top and bottom of the image which means all the key coordinates are out of sync vertically. Andreas, do you want to edit the java for this or should I just apply a correction to all the y coordinates!

Offline avvdr

  • Full Member
  • ***
  • Posts: 92
    • View Profile
    • Email
Re: small remote simulator
« Reply #2 on: January 05, 2008, 21:10:48 »
Hi Chris,
hmm - it's too simple - so coordinates depend on the size of the underlying label.
Anyway - it was 10 minutes to adapt the file for the old remote after enlarging the JLabel.
Now it seems old and new are working well.
I added a display for the send command - so you have an easy check for that.
I just created a new complete archive with the old+new remote inside.

regards
Andreas

Offline rdoac

  • Full Member
  • ***
  • Posts: 108
    • View Profile
Re: small remote simulator
« Reply #3 on: January 12, 2008, 12:22:13 »
Hi, nicely done.. Works well on my setup.

Offline hondansx

  • Full Member
  • ***
  • Posts: 169
    • ICQ Messenger - 178471580
    • View Profile
    • Email
Re: small remote simulator
« Reply #4 on: January 02, 2009, 19:56:54 »
For those who have no java or only a shell, I work with this little shell script.

remoteMVP

Bye,
Walter

« Last Edit: January 02, 2009, 20:15:09 by hondansx »
GA-EP43 | headless | 1xCineS2 Dual | 1xSkystar 2.6D | VDR 1.7.37 
Frontend: 1xRasperry | 1xION3