RCS NexGen is one of the most popular FM Automation Systems in Australia. If you have it, you might be wondering how to export the live Now Playing data to your website. Thankfully, it’s actually pretty easy to send this data as XML to your website.
Note: This method describes how to send Now Playing data to a custom script on your website. This is an advanced procedure that required software development expertise. We recommend using MetaRadio to send song data from NexGen to RDS, Digital Radio, Websites, Streaming, Mobile Apps, and more!
Finding the Setup Screens
The Export setup screen is buried several levels deep in NexGen’s setup screens.
Here’s where to find it:
- “Config” icon (in main toolbar)
- “Station” icon on the Config toolbar
- Click on the station then press “Edit”
- Format Configuration > Export
Here’s a screenshot of NexGen with the appropriate buttons circled:
When you click that magic “Export” button, you’ll get a screen like this:
You can configure up to four separate export formats. Pick a spare one from one of the four tabs at the top of the window, and then start checking the boxes!
NexGen XML Output Setup
The format ‘XML’ with Output ‘HTTP Export’ is probably one of the best formats, as it allows you to send data directly to a script on your website as soon as the item start playing.
Each “Output Field” is one XML element that will be sent to your script. If you fill out the “Lead Text” you’ll get extra text appended to the data, which you probably don’t want. Leave the “Lead Text” fields blank, and set the Output Fields to the fields you’ll need on your website.
The actual destination URL is setup across multiple fields (all found down the bottom right). Here’s what the fields do:
- URL: The FQDN or IP Address of your destination server
- CGI Script: the path to the script that’ll process your data
- Variable: The GET URL Parameter that’ll contain the XML data (encoded)
- Port: Probably port 80. I don’t think NexGen supports HTTPS, only HTTP.
Of course, this server will need to be accessible from your NexGen A-Serv (Audio Server) that controls this server. When you save the settings, you’ll be prompted to restart this A-Serv. Changes won’t take affect until you restart the appropriate process on the A-Serv.
Parsing Script For Your Website
The actual script that receive this on your website can be entirely of your creation. Here’s a sample PHP script which demonstrates how to get the data and write it to a file:
This script writes the file “nexgen_now.json” with some of the most important fields saved. You can easily read this file on your website and output the fields as needed.
Of course, you’ll need to add some error checking and all that important stuff. You could also log it to a database in order to create a “Song Finder” (a directory of songs played, sorted by time and date). You could also show weekly play charts.
Use my script as a starting point for capturing this data.