Author Topic: Integration with Zetta  (Read 488 times)

bobcvols

  • Newbie
  • *
  • Posts: 2
Integration with Zetta
« on: February 14, 2019, 04:58:43 pm »
We are attempting to get our P332 up and running.  We have a Zetta automation system from RCS.  The RCS rep I spoke to said to contact Pira.cz tech support to find out about the format needed for the .xlst file to integrate to the RDS unit.  Does anyone have Zetta and can advise me on this?

Jan

  • Hero Member
  • *****
  • Posts: 534
Re: Integration with Zetta
« Reply #1 on: February 14, 2019, 07:35:37 pm »
There are at least 4 methods how you can output text from Zetta to P332:
  • using the now playing export in Zetta
  • using the MetaRadio
  • using the MagicRDS
  • using the HTTP request

For the first method you'll need to set the export as active in the Zetta, configure either the serial or the TCP connection to P332, select the option "Keep connection open", and add (+) the format for the data. Select Start with ZettaLite.

Zetta uses a configuration by .xlst file. Here's an example of such file:

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
   <xsl:output method="text" />
   <xsl:strip-space elements="*" />
   <xsl:variable name="newline">
      <xsl:text>&#13;</xsl:text>
   </xsl:variable>
   <xsl:template match="/">
      <xsl:apply-templates />
   </xsl:template>
   <xsl:template match="LogEventCollection">
      <xsl:for-each select="LogEvent">
         <xsl:text>TEXT=</xsl:text>
         <xsl:choose>
            <xsl:when test="@Type='SONG'">
               <xsl:value-of select="Asset/@Title" />
               <xsl:text> - </xsl:text>
               <xsl:value-of select="Asset/@Artist1" />
            </xsl:when>
            <xsl:otherwise>
               <xsl:text>Your station slogan here</xsl:text>
            </xsl:otherwise>
         </xsl:choose>
         <xsl:value-of select="$newline" />
      </xsl:for-each>
      <xsl:apply-templates />
   </xsl:template>
</xsl:stylesheet>

In the P332, make sure that Radiotext 1 (RT1) is enabled.

For more details, please follow the documentation from RCS.

Simply put, the example above tells the Zetta to use a command TEXT= followed by title and artist.
Complete list of commands accepted by the P332 is available in the Technical manual, section 10 Broadcast Automation System Link-up.

Let us know if you need a further help.

bobcvols

  • Newbie
  • *
  • Posts: 2
Re: Integration with Zetta
« Reply #2 on: February 15, 2019, 05:43:31 pm »
That was certainly helpful - I took the sample you sent and adapted it for what we would like to have displayed.  I did change the TEXT= command to RT1= ; don't know if that was necessary.

Should the data be displayed on the RT1 line on the computer dashboard?  I am not getting anything yet, although I do need to troubleshoot and make sure we are wired correctly here.  When I test the .xlst file, it gives me 4 lines of text:

RT1= Artist1 - Title
RT1= Artist1 - Title
RT1= FAITH RADIO
RT1= FAITH RADIO

Is that what I should be getting?

Thanks!


Anything else that I might need to check?

Jan

  • Hero Member
  • *****
  • Posts: 534
Re: Integration with Zetta
« Reply #3 on: February 15, 2019, 08:46:52 pm »
The P332 accepts both the TEXT= and RT1=, they are equivalent. Complete data format is

TEXT=the text here<CR>

where <CR> is carriage return character. This information should be enough for the RCS support to provide working configuration file. It's been some time I played with Zetta, this software is rare here in Central Europe. Maybe someone else will know more about its configuration specifics.

To see the result in real time, either show the P332 embedded website or connect to the P332 from RDS Spy decoder. The website shows also connection status and bytes being received from the software.
(The Magic RDS shows RT1 in the On Air box only if it is driven by this application.)