Page 1 of 4
RMIR/IR.exe feature request - importing XML files
Posted: Tue Aug 03, 2010 3:04 pm
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.
Posted: Tue Aug 03, 2010 5:31 pm
by gfb107
Is there a reason for not wanting this function in rmir? XML parsing is very easy in java
Posted: Tue Aug 03, 2010 6:30 pm
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)?
Posted: Tue Aug 03, 2010 6:52 pm
by The Robman
No reason at all, if you think you can add it to RMIR, go for it.
Posted: Wed Aug 04, 2010 2:42 am
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.
Posted: Wed Aug 04, 2010 6:22 am
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.
Posted: Wed Aug 04, 2010 6:40 am
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.
Re: IR.exe feature request - importing XML files
Posted: Wed Aug 04, 2010 7:09 am
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
Posted: Wed Aug 04, 2010 9:44 am
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 ?
Posted: Wed Aug 04, 2010 10:17 am
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.
Posted: Wed Aug 04, 2010 10:42 am
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
Posted: Wed Aug 04, 2010 1:36 pm
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.
Posted: Wed Aug 04, 2010 2:10 pm
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
Posted: Wed Aug 04, 2010 3:45 pm
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.
Posted: Thu Aug 19, 2010 8:53 pm
by gfb107