Page 1 of 1

Tune In Api

Posted: 27 Sep 2013 21:22
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

Re: Tune In Api

Posted: 28 Sep 2013 20:15
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.

Re: Tune In Api

Posted: 28 Sep 2013 23:58
by DirkB
Thank you Bernd !

I send you an email about this topic.

Re: Tune In Api

Posted: 29 Sep 2013 19:42
by radio42
To which I already replied. Your http syntax you used was wrong.

Re: Tune In Api

Posted: 29 Sep 2013 21:21
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

Re: Tune In Api

Posted: 29 Sep 2013 21:28
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 :-)