JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

JP1 codes from raw data?

 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Beginners
View previous topic :: View next topic  
Author Message
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3403
Location: Cary, NC

PostPosted: Wed Jan 08, 2014 11:32 am    Post subject: Reply with quote

A lot depends on the "RMFunctions" export format, which I haven't seen, so maybe I'm wrong here.

It might be slightly easier to just reorder the columns (by dragging the column headers) on the functions tab in RM to match the exported data and then just paste without modifying the exported data.

Maybe an additional step could be saved if IrScrutinizer could export directly to the system clipboard rather than having to go through a file.

Also I would point out that "to delete the cruft already there" just click the "Clean up" button, either before or after the paste.
Barf wrote:
We should now import this file into RemoteMaster. There are some steps for this:

6. Open the export file with a program of your choice. Just selecting Actions->Open last export file in IrScrutinizer may suffice.

7. Open Remotemaster. Since we are making a NEC1 based update, select Protocol NEC1. Select the "Functions" pane and (optionally) delete the cruft already there.

8. We see that the RemoteMaster table needs OBC (=F in IrScrutinizer) as column #4. Therefore, in the spreadsheet, introduce a new, empty, column after the names column. Mark and copy the interesting area from first name (LEFT) to last F/OBC.

9. Mark the name column in the first line of the Functions table in RemoteMaster. Press Paste in the right-mouse-button popup menu.


I hope to be able to extend Remotemaster to import from IrScrutinizer directly later this year, thus eliminating step 6-9.

_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
Barf
Expert


Joined: 24 Oct 2008
Posts: 1011

PostPosted: Wed Jan 08, 2014 12:22 pm    Post subject: Reply with quote

Quote:
A lot depends on the "RMFunctions" export format, which I haven't seen, so maybe I'm wrong here.

The RMFunctions format is really nothing advanced. It came out of
a discussion with Vicky , more as an example on how simple it is to define new export formats than an atttempt to create something useful. It is definined in file exportformats.xml, close to the end:

Code:
<exportformat name="RMFunctions" extension="tsv" multiSignal="true" simpleSequence="false">
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
        <xsl:output method="text" />

        <xsl:template match="/">
            <xsl:apply-templates select="remotes/remote/commandSet/command"/>
        </xsl:template>

        <xsl:template match="command">
            <xsl:value-of select="@name"/>
            <xsl:text>   </xsl:text> <!-- EFC -->
            <xsl:text>   </xsl:text>
            <xsl:value-of select="parameters/parameter[@name='F']/@value"/>
            <xsl:text>   </xsl:text> <!-- Hex -->
            <xsl:text>   </xsl:text>
            <xsl:value-of select="@comment"/>
            <xsl:text>
</xsl:text>
        </xsl:template>

    </xsl:stylesheet>
</exportformat>

This is an XSLT-script for generating the export of an in-memory XML-DOM. To get F/OBC in column #4 instead of column #3, just add a TAB to a suitable <xsl:text> content. Or define a new export format of your liking.

Quote:
It might be slightly easier to just reorder the columns (by dragging the column headers) on the functions tab in RM to match the exported data and then just paste without modifying the exported data.

Yes. Thanx.

Quote:
Maybe an additional step could be saved if IrScrutinizer could export directly to the system clipboard rather than having to go through a file.

Good idea. It should probably not be called "export" but "copy to clipbard" from the tables. Let's see....

Quote:
Also I would point out that "to delete the cruft already there" just click the "Clean up" button, either before or after the paste.
Embarassed I was looking for something like that, but did not find it. sorry.

Thanx a bunch for your comments.

@mdavej: Thanx for those kind words!

I plan to try to teach RM to import the Girr-export of IrScrutinizer for creating a device update, if possible. But that is at least two months in the future.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Beginners All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Get Smart! the band's official homepage Rockabilly Central