RMIR/IR.exe feature request - importing XML files

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

The Robman
Site Owner
Posts: 21945
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

RMIR/IR.exe feature request - importing XML files

Post by The Robman »

Graham, would it be possible to add a new file type to the list that IR and/or RMIR can open? The new file type would be *.XML files that are created by people using their Slingbox to learn signals.

To this end, I have created a zip file that contains the following:
a) A sample XML file that contains learned signals
b) A dummy RDF that IR can use to process the XML file
c) A sample IR file that is what I would expect to see if I were to save the XML results as an IR file

https://www.hifi-remote.com/forums/dload ... le_id=8733

I have named the buttons in the RDF so they match the ones in the XML sample. When I get a complete list of the actual button names that we can expect to see in the XML files, I will update the RDF to match.

There is a deviceType parm in the XML data but I don't know what it means yet. I'm hoping that it will tell us the device type (eg, DVD, etc). If that turns out to be the case, I will also add that info to the RDF.
Last edited by The Robman on Wed Aug 04, 2010 1:31 pm, edited 1 time in total.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Is there a reason for not wanting this function in rmir? XML parsing is very easy in java
mdavej
Expert
Posts: 4636
Joined: Wed Oct 08, 2003 7:08 am

Post by mdavej »

I second that motion, Greg. RMIR is a better fit for slingboxers anyway.

... and another RM request (OT, sorry, but this one is really easy). Can you make the default file open filter all (txt and rmdu)?
The Robman
Site Owner
Posts: 21945
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

No reason at all, if you think you can add it to RMIR, go for it.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
mathdon
Expert
Posts: 4725
Joined: Tue Jul 22, 2008 8:53 am
Location: Cambridge, UK

Post by mathdon »

The Robman wrote:Graham, would it be possible to add a new file type to the list that IR can open? The new file type would be *.XML files that are created by people using their Slingbox to learn signals.
I am not currently planning any new features for IR.exe, but will bear it in mind for the future. At present my JP1 time is being spent on RMIR, working towards version 2.00, which Greg and I hope will be a big step forward towards it being a viable tool rather than a development prototype. My latest additions to it are Fav/Scan and Timed Macros.
Graham
wnewell
Posts: 158
Joined: Tue Jan 13, 2009 2:42 pm
Location: DFW, Texas

Post by wnewell »

Someone should edit the JP1 Software tools locked sticky post from 2003 that doesn't mention RMIR and bring it up to date.
The Robman
Site Owner
Posts: 21945
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

mathdon wrote:I am not currently planning any new features for IR.exe, but will bear it in mind for the future. At present my JP1 time is being spent on RMIR, working towards version 2.00, which Greg and I hope will be a big step forward towards it being a viable tool rather than a development prototype. My latest additions to it are Fav/Scan and Timed Macros.
Could you consider adding the feature to RMIR then please.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
alanrichey
Expert
Posts: 3533
Joined: Mon Mar 24, 2008 7:14 am
Location: UK/USA

Re: IR.exe feature request - importing XML files

Post by alanrichey »

The Robman wrote:When I get a complete list of the actual button names that we can expect to see in the XML files, I will update the RDF to match.

There is a deviceType parm in the XML data but I don't know what it means yet. I'm hoping that it will tell us the device type (eg, DVD, etc). If that turns out to be the case, I will also add that info to the RDF.
I'll get those details for you in the next couple of days.

Al
alanrichey
Expert
Posts: 3533
Joined: Mon Mar 24, 2008 7:14 am
Location: UK/USA

Post by alanrichey »

Actually it only took a couple of hours :)

I have uploaded a picture of the Remote that is used when you learn the codes at betaremotes.com. Should help you understand the buttons.

https://www.hifi-remote.com/forums/dload ... le_id=8738

Right, Devicetypes that are used are as follows:

DVD player = 5
VCR = 3
DVR = 4
Satellite = 2
DVD Recorder = 6
Cable Box = 8

And the buttons that are learned, with their codes are

{deleted}

OK ?
The Robman
Site Owner
Posts: 21945
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

Thanks Al. Can you confirm that these are the names that will appear in the XML files? For example, I see that Skip+ and Skip- actually show up in XML as "Skip Forward" and "Skip Back".

I've updated the RDF to include the info you posted.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
alanrichey
Expert
Posts: 3533
Joined: Mon Mar 24, 2008 7:14 am
Location: UK/USA

Post by alanrichey »

Sorry, I wasn't thinking, I just copied from my PL RDF file.

Here it is again with the real names:

Power=1

Play=24
Stop=25
Pause=26
Rewind=27
Fast Forward=28
Record=29
Skip Forward=30
Skip Back=31

Guide=35
Menu=33
Back=36
Info=46

Up=38,
Down=39
Left=40
Right=41
OK=42

Live=32
DVR=34
Zoom=47

Red=74
Green=75
Yellow=76
Blue=77

Grey1 = 53
Grey2 = 54
Grey3 = 55
Grey4 = 56

Volup=6
Voldown=7

Page up=43
Page down+44

ChanUp=4
ChanDown=5

Mute=8
Jump=21

1=9
2=10
3=11
4=12
5=13
6=14
7=15
8=16
9=17
0=18

*= 22
# = 23
Clear=37
Enter=19
The Robman
Site Owner
Posts: 21945
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

gfb107 wrote:Is there a reason for not wanting this function in rmir? XML parsing is very easy in java
Can you or Graham give me some indication of whether you are considering adding this feature so I know whether I should be pursuing other options. Of course, if my first choice of IR or RMIR is not an option, my next choice would be IRScope or RM, which still leaves me with you two.

If you're not going to update any of those tools to handle these files, I'll need to see if someone would be willing to write a stand alone program to convert the XML files into IR files, so that users can look at their learned signals using RMIR or IR.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

I am planning to add this. I am traveling now so don't have much time for watching the forums.

The XML file has both the button name and the button code. I will most likely use the button code for parsing so getting the names exactly right isn't critical from that perspective
The Robman
Site Owner
Posts: 21945
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

gfb107 wrote:The XML file has both the button name and the button code. I will most likely use the button code for parsing so getting the names exactly right isn't critical from that perspective
I hadn't noticed that the button code was there, so you're right, it would be better to parse for that.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Give v1.99c-preview2 a try.
Post Reply