Tune In Api

You have a question or need an advice about how to do something? Ask it here!
Post Reply
DirkB
Posts: 10
Joined: 26 May 2012 15:55
Tune In Api

Post by DirkB »

Hi Bernd,

I tried to get the Tune In radio Api working together with PFOA but so far without result.
This Api sends the realtime playlist info to the Tune In webserver.
At first i contacted Tune In to send me my Station ID, Partner ID and Partner key
Then you need to setup the script with the Get command, see below for a setup example
----------------------------------------------------------------------------
Requests to the Air API are very simple:

# Update the song now playing on a station
GET http://air.radiotime.com/Playing.ashx?p ... =Lady+Gaga

Your partnerId replaces <id>, partnerKey replaces <key>, and stationId, including the preliminary 's' replaces <stationid>. Your title and artist information should be set to be updated by your broadcast software in correspondence with the currently playing song.

----------------------------------------------------------------------------------------------------------------------------

It might be that i'm using the wrong command, till now i tried to get it working with the EXEX_SEND_HTTP_GET but so far no luck for me.

Maybe you can help me out on this one, info about the Api script can be found here http://tunein.com/broadcasters/api/

Looking forward to your answer
User avatar
radio42
Site Admin
Posts: 8341
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Tune In Api

Post by radio42 »

Can you please post the full control-command you are using to take a look at.
Also, what system event are you using to trigger the resp. command.

In general EXEX_SEND_HTTP_GET should be fine and the syntax should be something like this:

Code: Select all

EXEX_SEND_HTTP_GET http://air.radiotime.com/Playing.ashx?partnerId=<id>&partnerKey=<key>&id=<stationid>&title=${cpltracknamecurrent}
Where <id>, <key> and <stationid> should be replaced by your values.
DirkB
Posts: 10
Joined: 26 May 2012 15:55
Re: Tune In Api

Post by DirkB »

Thank you Bernd !

I send you an email about this topic.
User avatar
radio42
Site Admin
Posts: 8341
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Tune In Api

Post by radio42 »

To which I already replied. Your http syntax you used was wrong.
Michael
Posts: 9
Joined: 03 Jan 2013 13:44
Location: Berlin / Germany
Contact:
Re: Tune In Api

Post by Michael »

Hi.

Dirk and me have found out how it works.
Go to Settings and Options -> Events/Commands -> Playlist -> OnTrackPlay
Insert a second command:
Action: EXEC_SEND_HTTP_GET
Parameter: http://air.radiotime.com/Playing.ashx?p ... t=${artist}
Click on NEW and OK
Everytime if the track changed, the new Metadata will be send to tune in.

Michael
DirkB
Posts: 10
Joined: 26 May 2012 15:55
Re: Tune In Api

Post by DirkB »

Bernd,

All the credits go to you and Michael !
I have been testing many options but nothing worked for me :-(
Michael did some more testing and clear thinking and he found a way to make it work !!

I think this topic can help many forum members who also want to use the Tune In Api

Thanx for helping me out :-)

Post Reply