Pira.cz Technical Forum

Radio Data System (RDS) => Control Software => Topic started by: saxonlh on April 13, 2026, 09:15:09 pm

Title: Magic RDS 4 - Internet Website Text Source - javascript(s)
Post by: saxonlh on April 13, 2026, 09:15:09 pm
I'm trying to use the "External Text Sources" functionality of Magic RDS 4 to capture the Now Playing schedule information from the NPR widget for our station.  Unfortunately, the page is loading and executing a couple critical javascript sources to complete the page so all I'm getting is the raw html including the .js calls.   Is there a way for RDS4 to process the html and .js and then use the results as the source text?

https://composer.nprstations.org/widgets/iframe/now.html?v=5.13.8&station=5182a6b1e1c8386dfc2a9880&style=v2

thanks,
Saxon
KUFM, Montana Public Radio
Title: Re: Magic RDS 4 - Internet Website Text Source - javascript(s)
Post by: Jan on April 13, 2026, 09:36:17 pm
What you are trying to achieve — loading and processing a complex web page directly in Magic RDS — is unfortunately not the right approach, for several fundamental reasons:


Recommended approach

The correct solution is to use a simple and dedicated data source, for example:

A plain text file (TXT)
A simple XML or JSON endpoint
A lightweight server-side script that extracts and provides only the required text

In other words, the Magic RDS can only retrieve a single file which should ideally contain a simple and consistent text data structure or the already prepared, clean text. The text in this form is always present on the web server or in associated database. Contact support to gain access to this data.