Old 13th January 2017, 19:46   #1
jbmusic
Junior Member
 
Join Date: Mar 2012
Posts: 11
Now playing to text file

Hi there,

i am looking for a solution to make an external txt file of the now playing details from shoutcast V2. This to use the txt file for dynamic RDS system. This should be done local on an external system (no shoutcast player on this system)
There is no FTP options possible.

I hope that somebody can help me on this?

Last edited by jbmusic; 13th January 2017 at 20:21. Reason: typo
jbmusic is offline   Reply With Quote
Old 17th January 2017, 12:30   #2
tommyinnn
Junior Member
 
Join Date: Sep 2008
Posts: 29
There are few ways you can pull the currently playing track, I think for your situation the easiest is to just use
http://<SERVER IP ADDRESS>:<SERVER PORT>/currentsong?sid=1
(that is just a example depending on mountpoint, you can just goto your SHOUTcast DNAS page and click on the current song/artist)

If you need to actually write it to a text file on your server, that is also possible, you could set up a cron job to run every min, write a few lines of code to check the current track against the track in the text file, when the song changes then you write the new song to the file, etc, ...

Tune In Radio & Twitter Auto Poster!http://shoutcastwidgets.com/
tommyinnn is offline   Reply With Quote
Old 17th January 2017, 18:17   #3
eBriOBieL
Junior Member
 
Join Date: Jan 2017
Posts: 4
This alternative worked for me:

UpdateTitle 2.9 is free software that allows you to update your song titles while broacasting live with a player such as Winamp, Raduga, ZaraRadio, DRS2006 or from a TXT file (made thru RDS) file hosted on a shoutcast or icecast server.

This update is realized thru the Metadata included inside the stream broadcasted by a server.

You don't have to change anything on your SAM or Winamp configuration, as UpdateTitle is an independent program.

Download Here

UpdateTitle 2.9 Configuration:

- Server IP: Server adress (or IP)
- Server port: Port (e.g.8000)
- Server admin/dj password: Only your password
- Stream buffer: Don't change (default is 15000)

Server type: Choose Shoutcast 2 (in my case I use SHOUTcast Source DSP v2.3.5)

Player type: choose Text file (RDS)

Player buffer (crossfader): Don't change (default is 3000)

Text file path: Indicate the directory where you created your txt file

Then click on Update parameters

Press Start to send information
eBriOBieL is offline   Reply With Quote
Old 17th January 2017, 19:17   #4
jbmusic
Junior Member
 
Join Date: Mar 2012
Posts: 11
Thanks for your help so far!

Tommy.. the URL is clear.. this works, but now to send the output in a txt file, which automatic update by changing song / artist.

Ebriobiel
I tried to setup the program, but without succes.
Shoutcast is in my situation working on an external server. He is not grabbing online true shoutcast the song information. I assume that i have to create minimal an txt file to display, but correct me if i am wrong..
jbmusic is offline   Reply With Quote
Old 18th January 2017, 18:11   #5
eBriOBieL
Junior Member
 
Join Date: Jan 2017
Posts: 4
jbmusic

First you must check again the content of your parameters, they must be the same as those of the server.

Important Parameters
Server IP:
Server Port:
Server type: (Shoutcast 1.X, Shoutcast 2.X -Remember to use the Stream # sid-, Icecast v.X
Titles directory: (Where the software will host the created texts, title-current and title-previous)
Server admin/dj password: (No metter where your server is, the only requirement is to have the PASSWORD with which you authenticate on your server.)

And then push the button: Update parameters
Choose
Player Type: Text file
Text file path: Find your Text File (made by RDS previously, in your case) If you don't have it, you must manually create the text each song)

To end press the button: Start

You should get something like that:

E.G.

======== [13:03:20 18/01/2017] ========
Text file: [C:\Users\SHOUTcast\RDS\Song Titles.txt]
Current Title: [The Tide Is High - Blondie]
Previous Title: [The Story In Your Eyes - The Moody Blues]
eBriOBieL is offline   Reply With Quote
Old 22nd January 2017, 17:17   #6
jbmusic
Junior Member
 
Join Date: Mar 2012
Posts: 11
Thats clear to me, but i dont have any RDS txt file. He should grab the title and artist info from the shoutcast server
jbmusic is offline   Reply With Quote
Old 22nd January 2017, 17:22   #7
neralex
Major Dude
 
Join Date: Mar 2011
Posts: 576
@jbmusic, try to create it.
neralex is offline   Reply With Quote
Old 31st January 2017, 14:20   #8
dopelabs
Major Dude
 
dopelabs's Avatar
 
Join Date: Oct 2006
Location: Silicon Valley
Posts: 531
Send a message via AIM to dopelabs
if you have a *nix host you can simply run the following command... add it to a cron job even =]

code:
$ curl http://radiodomain.comort/currentsong?sid=1 > /path/to/file.txt
dopelabs is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Tags
nogplaying, nowplaying, rds, shoutcast v2, txt

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump