Page 1 of 1

XSL for Recom(Remeha) configuration and language XML files

Posted: Sun Feb 19, 2012 12:06 pm
by fmartens
Hi all,

My plan is to connect an Arduino to a Remeha Avanta to get the heater diagnostics data via the serial interface into the MySQL database on my Synology NAS. The hardest part is understanding what the Remeha sends. I already looked on this forum and the Blog and I saw that a lot of work already has been done. I took some time to create an XML stylesheet (XSL) to make the XML configuration files, that come with the Recom software, easier to read. My first version is attached to this post. To make it work, you need to do the following:
1) Copy the attachment into the Recom configuration folder.
2) Add the following to all XML configuration files:

Code: Select all

<?xml-stylesheet type="text/xsl" href="remeha.xsl"?>
When you double click the XML, after making the change, the file is displayed as 'friendly' HTML using simple tables. Another nice feature is that the XSL also uses the language files (in this example the dutch one) to translate the codes to readable text. Another thing the XSL does is proper processing the 'node-ref' elements.

I hope you will find it is useful. You can modify the XSL to suit your needs, the current version is enough for me to get started on my project.
remeha.zip
(1.91 KiB) Downloaded 615 times
Regards,
Freddy

Re: XSL for Recom(Remeha) configuration and language XML files

Posted: Sun Feb 19, 2012 3:31 pm
by Digit
Thanks Freddy,
I tried it and it works perfectly... I should have had this xsl much earlier! :)
Below a very small part of how the xml is displayed with use of the xsl:
Capture_01 2012.02.19 14.25.36.jpg
Capture_01 2012.02.19 14.25.36.jpg (75.43 KiB) Viewed 5338 times

Re: XSL for Recom(Remeha) configuration and language XML files

Posted: Sun Oct 20, 2013 12:25 pm
by mjl
Hi Freddy,

this is very useful, thank you very much!

Tip: if your system has the xsltproc utility (available on OS X, Linux, BSD etc.) you don't even need to edit the config XML files, but you can simply run

Code: Select all

$ xsltproc remeha.xslt PCU-03_P5.xml > PCU-03_P5.html
in the config directory to generate the human readable version in HTML