Centova Technologies Forum

Centova Cast v3 => Feature requests => Topic started by: raoulduke881 on February 06, 2013, 06:01:01 am

Title: Tunein.com api support
Post by: raoulduke881 on February 06, 2013, 06:01:01 am
For the next release we'd be glad to see the integration of tunein's api broadcaster information to let centova cast update tunein currently playing and recently played tracks, see here:

http://tunein.com/broadcasters/api/
Title: Re: Tunein.com api support
Post by: alle on February 17, 2013, 02:24:04 am
+1 for this.

Using getmarci for this, but would be great to have this feature build-in.
Title: Re: Tunein.com api support
Post by: Headshaker on February 17, 2013, 02:34:17 am
Great idea !
I'm in.
Title: Re: Tunein.com api support
Post by: raoulduke881 on March 10, 2013, 09:25:50 am
thanks guys but we're still too few... anyone else interested??  ;)
Title: Re: Tunein.com api support
Post by: Headshaker on March 12, 2013, 03:02:00 am
+1 TuneIn is going to be as standard for online broadcasters :)
Title: Re: Tunein.com api support
Post by: bradleyhilton on March 14, 2013, 11:31:36 am
+1 this would be awesome to have built in!
Title: Re: Tunein.com api support
Post by: totalboffin on March 20, 2013, 07:34:19 am
+1 yes please. we have had requests for this support.
Title: Re: Tunein.com api support
Post by: crossfirehosting on March 24, 2013, 06:43:17 pm
+82, sry i have 82 clients that would love to see this......


Kris
Title: Re: Tunein.com api support
Post by: raoulduke881 on March 27, 2013, 06:39:08 am
88 users would be glad, but we're still too few!!
Come on, spread the word!!!!!  ;)
Title: Re: Tunein.com api support
Post by: totalboffin on March 30, 2013, 10:48:39 am
alle you mentioned that you were using getmarci for this. Could to explain how? Would love to use the autodj + tunein and if this is a short term fix I would be interested to know whats involved.

Ultimately having it builtin to centova would be great.
Title: Re: Tunein.com api support
Post by: raoulduke881 on April 17, 2013, 02:35:52 am
yeah, tunein.com integrated api would be great.
it could be be like this:
configuration / server overrides / tunein.com broadcaster api
put a ticker with "enable tunein.com broadcaster api"
and then the broadcaster should fill the three following fields with these values (provided of course by tunein)
partnerId: xxxxxx
partnerKey: xxxxxx
stationId: sXXXXXX

the code to be implemented on autoDJ used to transmit the tracks' name is provided by tunein.com itself and goes like this:

Code: [Select]
  # Update the song now playing on a station
    GET http://air.radiotime.com/Playing.ashx?partnerId=<id>&partnerKey=<key>&id=<stationid>&title=&artist=
Title: Re: Tunein.com api support
Post by: djronanc on April 17, 2013, 04:33:52 pm
Since your server are configured correctly, the song title appears normally on Tune In or not?
Title: Re: Tunein.com api support
Post by: raoulduke881 on April 18, 2013, 03:58:40 am
plain and simple: no.
currently, centova does not support tunein.com broadcaster apis. this topic has been opened to ask their implementation in a next future release, hopefully. ::)
Title: Re: Tunein.com api support
Post by: raoulduke881 on May 21, 2013, 10:13:03 am
centova, can give us any hope?? 
Title: Re: Tunein.com api support
Post by: Dr Bunsen on May 30, 2013, 04:17:48 pm
+1 more!
Title: Re: Tunein.com api support
Post by: radiofreejt on May 31, 2013, 02:11:40 pm
It used to show on the old version of TuneIn, but since their last update, my station plays but doesn't display the titles. Very frustrating when some users would prefer TuneIn BECAUSE it showed the titles.
Will check out the posted script later.

Michael Roark
Title: Re: Tunein.com api support
Post by: raoulduke881 on June 11, 2013, 10:14:05 am
i'm wondering why nobody from centova makes an official statement about this request...
Title: Re: Tunein.com api support
Post by: DJFire_CFR on June 11, 2013, 11:38:09 am
98% of the time, They dont reply to the Feature Requests section, But, they do read them.
Title: Re: Tunein.com api support
Post by: Vampy on June 26, 2013, 02:15:20 pm
+1  8) ;D
Title: Re: Tunein.com api support
Post by: pdqdigitalmedia2 on June 29, 2013, 05:28:37 pm
 :) ;) :D ;D 8) :P :-* This is a great idea!
Title: Re: Tunein.com api support
Post by: Jah on July 03, 2013, 04:27:34 am
This already can be done you just have to request it from Tune In @ this link http://tunein.com/broadcasters/api/  on my radio there it show what's playing with album covers etc just send them  email and ask them for a partnerId and partnerKey if your server accept it..listen2myradio pay accounts have the feature in there "RadioTool Box" just go to the link and send them a email at Tune In...
Title: Re: Tunein.com api support
Post by: raoulduke881 on July 11, 2013, 05:21:11 am
This already can be done you just have to request it from Tune In @ this link http://tunein.com/broadcasters/api/  on my radio there it show what's playing with album covers etc just send them  email and ask them for a partnerId and partnerKey if your server accept it..listen2myradio pay accounts have the feature in there "RadioTool Box" just go to the link and send them a email at Tune In...

please don't spam listen2myradio, thanks.
Title: Re: Tunein.com api support
Post by: radiofreejt on July 13, 2013, 08:49:10 pm
This only works if you're signed up with them, and not just if you use their player for a custom stream?

Michael Roark
Radio Free Joshua Tree
Title: Re: Tunein.com api support
Post by: raoulduke881 on July 16, 2013, 12:46:12 pm
indexing of the station on tunein.com and partnerId + partnerKey + stationId request are all free of charge. usually tunein replies within a few days after they've been requested, but the availability of this function (very useful, though) only depends on the streaming software used to broadcast.
Title: Re: Tunein.com api support
Post by: My Auto DJ on August 09, 2013, 07:13:28 am
I wrote a small script that sends the track info to TuneIn, it runs on a cronjob which checks every minute to see if the currently playing song has changed., if so it will send the request to TuneIN, per their terms the script will ONLY send the request to their Air API when the song has changed.


It's a very simple script if anyone wants to write one, I'm sure there are other ways of doing it but mine writes the currently playing song to a text file and on each cron it checks the song against the one in the text file, if the song is different it will re-write the new song to the text file, send the request to TuneIn and wait for the next cron to run. Works with SHOUTcast 1, 2 and Icecast KH

Within days of listing the currently playing song and artist in TuneIn's directory your station will get at least triple the listeners and grow from there. I had set this up with our demo station and within 2 weeks I pulled it because of the high amount of listeners
Title: Re: Tunein.com api support
Post by: raoulduke881 on August 09, 2013, 08:30:56 am
will it work with centova 3.0?
Title: Re: Tunein.com api support
Post by: My Auto DJ on August 09, 2013, 01:01:33 pm
Yes, as I said it is very simple I may as well give you all the code, you will also need to set up a cron job and upload a text file, full instructions are in the comments of the code.

Do not forget to set the permissions for your text file, just create a notepad file, save as song.txt and upload to your webserver

Remember to change the path of the cron job

You MUST get your TuneIN radio API keys in order for this to work!!! http://tunein.com/broadcasters/api/ it took me 3 tries to get mine, if they don't respond to you in a few days just request them again.

I know there are other ways of doing this but I am far from a php expert.

http://myautodj.com/tunein.rar
Title: Re: Tunein.com api support
Post by: Dr Bunsen on August 09, 2013, 08:23:51 pm
Thanks for sharing this. How long have you been running your script and have you had any issues with it?
Title: Re: Tunein.com api support
Post by: My Auto DJ on August 10, 2013, 05:00:20 am
- Yes it's being used by 6 stations now -- we sell it as a hosted service for our clients.
- iplayradio - just download the package -- http://myautodj.com/tunein.rar
Title: Re: Tunein.com api support
Post by: Dr Bunsen on August 14, 2013, 05:21:53 am
- Yes it's being used by 6 stations now -- we sell it as a hosted service for our clients.
- iplayradio - just download the package -- http://myautodj.com/tunein.rar

The script isn't working for me on Debian 7.1 with php 5.3.3. If I run it from the CLI it returns some blank lines but doesn't write anything to song.txt.

Any suggestions on what might be wrong?

Thanks.
Title: Re: Tunein.com api support
Post by: My Auto DJ on August 14, 2013, 05:24:47 am
SOrry I only use Centos but if it's not writing anything to your text file, and permissions are correct try testing fwrite on your server

<?php
$file = fopen("test.txt","w");
echo fwrite($file,"Hello World. Testing!");
fclose($file);
?>

http://www.w3schools.com/php/func_filesystem_fwrite.asp
Title: Re: Tunein.com api support
Post by: raoulduke881 on August 14, 2013, 09:40:30 am
i'm just a normal user and i don't have the necessary knowledge and the administrative credentials to modify the server where our station is located: i am only allowed yo upload music / switch to live broadcasting /modify minor settings on my station.
Thanks to the user "MY auto Dj" for posting that script but i (like tens of other users here in this forum) need a more simple way to integrate tunein.com api script on centova's client control panel...
Title: Re: Tunein.com api support
Post by: My Auto DJ on August 14, 2013, 10:48:51 am
raoulduke881 it should not be that hard, do you have a web hosting account (cPanel would be easiest) you can use?

More or less you just upload the entire tunein folder to your web hosting (ie. public_html/tunein/), set the permissions to the song.txt folder to 777 (in FileZilla just right click the song.txt file and look for "file permissions")

in cPanel you will create a cron job, see this screenshot -- (if you tell me what you use for your web hosting I can help you choose the correct path you will need, the path included in the screenshot will not work)

http://prntscr.com/1l8kic

also there is no reason this cannot run on a Centova v3 server I wouldn't think

-------------------------------------------------------------------------------------------------------
We offer unlimited bandwidth with all our packages, there is no way  I would ever enable it in Centova if it were a option, iTunes radio is nothing compared to the amount of listeners you'll get with Tune In radio, when you display the currently playing song in your Tune In directory your going to get lots of listeners fast!
 The more listeners the more server resources you use, and I think one of the main reason for buffering, if every stream on your server gets 100 listeners steady your not going to be able to run as many streams and make a lot less money.

On the other hand, if your a provider and charge clients by bandwidth then this option would in fact be ideal, as your client grows they pay more and more -- so I agree a Tune In add on to Centova would be great, I would start offering different packages with metered bandwidth and unlimited listeners, as well as lots of marketing ideas.

 
Title: Re: Tunein.com api support
Post by: Dr Bunsen on August 14, 2013, 02:12:10 pm
SOrry I only use Centos but if it's not writing anything to your text file, and permissions are correct try testing fwrite on your server

<?php
$file = fopen("test.txt","w");
echo fwrite($file,"Hello World. Testing!");
fclose($file);
?>

http://www.w3schools.com/php/func_filesystem_fwrite.asp

That doesn't work for me I'm afraid. Is there something I can do about it? Thanks!
Title: Re: Tunein.com api support
Post by: My Auto DJ on August 14, 2013, 02:15:30 pm
I guess you just do not have the access, you could ask your web host about it.
Title: Re: Tunein.com api support
Post by: Dr Bunsen on August 14, 2013, 03:01:12 pm
I run my own dedicated host so I have full access...
Title: Re: Tunein.com api support
Post by: My Auto DJ on August 14, 2013, 03:16:27 pm
Then you should be able to use the command fwrite it's a very common command, as your dedicated provider for help. Do you get a error when you try to run the sample?
Title: Re: Tunein.com api support
Post by: Dr Bunsen on August 14, 2013, 04:39:29 pm
It outputs '21' to the CLI. That's it.
Title: Re: Tunein.com api support
Post by: My Auto DJ on August 14, 2013, 04:41:49 pm
Are you even able to run php scripts on your server?
If unsure try running <?php echo 'test'; ?>
Title: Re: Tunein.com api support
Post by: Dr Bunsen on August 14, 2013, 08:35:49 pm
Are you even able to run php scripts on your server?
If unsure try running <?php echo 'test'; ?>

Of course I am and that worked by the way...
Title: Re: Tunein.com api support
Post by: My Auto DJ on August 15, 2013, 04:05:21 am
Then you should be able to us fwrte, most likely your not using the correct path, you can't use test.txt you must use something like /home/user/public_html/path_to_/test.htm -- did you follow the instructions in the cron.php file, I'm betting  you just left that part un-changed??

If not you should ask your dedicated provider why it does not work if your not able to figure out why, or use Google to troubleshoot  https://www.google.com/search?q=can't+use+fwrite
Title: Re: Tunein.com api support
Post by: raoulduke881 on August 15, 2013, 05:35:14 am
raoulduke881 it should not be that hard, do you have a web hosting account (cPanel would be easiest) you can use?

More or less you just upload the entire tunein folder to your web hosting (ie. public_html/tunein/), set the permissions to the song.txt folder to 777 (in FileZilla just right click the song.txt file and look for "file permissions")

in cPanel you will create a cron job, see this screenshot -- (if you tell me what you use for your web hosting I can help you choose the correct path you will need, the path included in the screenshot will not work)

http://prntscr.com/1l8kic

also there is no reason this cannot run on a Centova v3 server I wouldn't think


i've contacted our webmaster and sent him the script you made, let's see if something can be done. the idea is to run the script from the server that hosts our station's webpage (server that is different and separated from the one used to stream)

We offer unlimited bandwidth with all our packages, there is no way  I would ever enable it in Centova if it were a option, iTunes radio is nothing compared to the amount of listeners you'll get with Tune In radio, when you display the currently playing song in your Tune In directory your going to get lots of listeners fast!
 The more listeners the more server resources you use, and I think one of the main reason for buffering, if every stream on your server gets 100 listeners steady your not going to be able to run as many streams and make a lot less money.

On the other hand, if your a provider and charge clients by bandwidth then this option would in fact be ideal, as your client grows they pay more and more -- so I agree a Tune In add on to Centova would be great, I would start offering different packages with metered bandwidth and unlimited listeners, as well as lots of marketing ideas.

 

our station has a maximum of 400 simultaneous listeners with a max bitrate of 128kbit (we stick to 96), but this limit will be ever far from be reached. bandwidth should not be a problem for us.
Title: Re: Tunein.com api support
Post by: Dr Bunsen on August 15, 2013, 06:37:32 pm
Then you should be able to us fwrte, most likely your not using the correct path, you can't use test.txt you must use something like /home/user/public_html/path_to_/test.htm -- did you follow the instructions in the cron.php file, I'm betting  you just left that part un-changed??

If not you should ask your dedicated provider why it does not work if your not able to figure out why, or use Google to troubleshoot  https://www.google.com/search?q=can't+use+fwrite

So the test file worked when I edited the path but cron.php still doesn't. Any thoughts on how to debug the problem? I've tried running php interactively and checking the syntax but that didn't give me anything...
Title: Re: Tunein.com api support
Post by: My Auto DJ on August 15, 2013, 06:42:35 pm
Sorry I do not know without a error message or something, are you saying it works when you run it in your browser and refresh, or are you saying that does not work either -- with a simple "it doesn't work" I really don't know sorry
Title: Re: Tunein.com api support
Post by: Dr Bunsen on August 15, 2013, 07:46:50 pm
What I'm saying is this script worked when I changed the path:

<?php
$file = fopen("test.txt","w");
echo fwrite($file,"Hello World. Testing!");
fclose($file);
?>

But the tunein script doesn't. There's no output at the CLI baring some blank lines and nothing in my php error log file. Anyway if you could tell me how to generate error message I will report back...
Title: Re: Tunein.com api support
Post by: My Auto DJ on August 16, 2013, 04:03:43 am
I think you would need to get someone to do this for you you would need a little php exp with this sorry
Title: Re: Tunein.com api support
Post by: raoulduke881 on August 16, 2013, 04:36:33 am
MyAutoDJ,

talking about the cron.php file, what are the parts that have to be be modified?
do the ' ' have to be kept? (for example, look at $ip = '23.23.23.23')

Code: [Select]
$ip = '23.23.23.23';
$port = '8000';  // server port
$password = 'PASSWORDHERE';  // server password
$type = 'SHOUTcast v2'; // choose  SHOUTcast v2  or  SHOUTcast v1  or    Icecast
$file = "/home/USERNAME/public_html/tunein/song.txt"; // make sure you have a song.txt text file and the path is correct, and that you set permissions to that file to 777

// TuneIn Radio Variables
$partnerID = 'partnerID';
$partnerKEY = 'partnerKEY';
$id = 'id';


Title: Re: Tunein.com api support
Post by: My Auto DJ on August 16, 2013, 04:45:17 am
(1) so sorry I forgot I had put a couple lines in there to hide php errors -- to turn error reporting on look for error_reporting(0); and delete that line

(2) yes the IP address, port number and password are for your SHOUTcast or Icecast server
the first part of the script checks the server type and will get the song title & artist
..the 2nd part writes the currently playing song to text file, and each minute as the cron runs it checks for a new song, if there is a new song it re-writes that song to the text file and also sends the notification to TuneIn, the song title and artist
Title: Re: Tunein.com api support
Post by: raoulduke881 on August 16, 2013, 05:10:58 am
another thing:

Code: [Select]
$ip = 'serverip';
$port = 'serverport';  // server port
$password = 'password';  // server password
$type = 'SHOUTcast v2'; // choose  SHOUTcast v2  or  SHOUTcast v1  or    Icecast
$file = "/home/USERNAME/public_html/tunein/song.txt"; // make sure you have a song.txt text file and the path is correct, and that you set permissions to that file to 777

do we have delete the lines (including the //) or can they be kept?
- // server port 
- // choose  SHOUTcast v2  or  SHOUTcast v1  or    Icecast
- // make sure you have a song.txt text file and the path is correct, and that you set permissions to that file
to 777

and the same applies to these lines, in the beginning of the script:

// Script by http://myautodj.com , if you like my script I ask you at least click on one of our Google ads on our site!
// This script will check when a new song plays and notify TuneIn radio. Requires API key from TuneIn http://tunein.com/broadcasters/api/
// TuneIn radio requires you do not send un nessary requests to them, this script will run on a cron job and only notify TuneIn radio when the song has changed.
// you must set up a cron job you can have it run as often as you like, 1 min does fine
// you should check and change the path to the text file -- you will need to change the path, depending on where you uploaded this file to -- if your using cPanel or other web hosting panel you should just be able to paste the entire line into your cron jobs (remember to change the path)
//    /usr/local/bin/php -q  /home/USERNAME/public_html/tunein/cron.php &> /dev/null

thanks.
Title: Re: Tunein.com api support
Post by: Dr Bunsen on August 16, 2013, 03:18:01 pm
(1) so sorry I forgot I had put a couple lines in there to hide php errors -- to turn error reporting on look for error_reporting(0); and delete that line

I've turned error_reporting(1) on through out but still no errors unfortunately...
Title: Re: Tunein.com api support
Post by: pdqdigitalmedia2 on August 17, 2013, 03:48:39 pm
+100
Title: Re: Tunein.com api support
Post by: ruffino on September 13, 2013, 11:08:38 pm
<?php
$file = fopen("test.txt","w");
echo fwrite($file,"Hello World. Testing!");
fclose($file);
?>
-------------------
that works perfect on my server.

i have everything set up but like everyone else, its not writing to the txt file. When you try to visit the actual cron.php in a browser its 500 error i believe.

So what could the problem be? Because its not the server?
Title: Re: Tunein.com api support
Post by: ruffino on September 14, 2013, 12:18:22 am
This is the error I'm getting trying to run the php script:

[14-Sep-2013 08:12:30] PHP Parse error:  syntax error, unexpected $end in /tunein/cron3.php on line 293

-----EDIT------

Okay so the reason its not working properly, some php tags were listed with <? instead of <?php

The short tag is deprecated and not supported in normal php.ini's.

So now its currently writing the song title to the txt file.

everything is up and running so far. I'm seeing titles on tunein. cronjob is working too.

cleaning up the code. but thanks again for this!
Title: Re: Tunein.com api support
Post by: ruffino on September 15, 2013, 08:51:58 pm
take that back. cron jobs will run, but its not writing anything to the txt file.

if i run the php script from a browser, it works just fine.
Title: Re: Tunein.com api support
Post by: My Auto DJ on September 16, 2013, 03:16:05 am
They you should try a different link for you cron then

try
lynx -dump http://website.com/path/to/cron.php &> /dev/null
Title: Re: Tunein.com api support
Post by: Dr Bunsen on September 28, 2013, 03:24:17 am
With Ruffino's <?php fix and lynx -dump, this works for me now. Thanks all!
Title: Re: Tunein.com api support
Post by: ruffino on September 30, 2013, 07:58:13 pm
With Ruffino's <?php fix and lynx -dump, this works for me now. Thanks all!

glad we could get everything up and running! big thanks to autoDJ for writing it.
Title: Re: Tunein.com api support
Post by: raoulduke881 on October 01, 2013, 10:05:35 am
our server seem not to support that script (a port matter, we suppose)... still waiting for centova's news about this feature request!
Title: Re: Tunein.com api support
Post by: Dr Bunsen on November 17, 2013, 03:12:23 am
Now the forum's been linked to the issue tracker. Please vote for this request if you approve...
Title: Re: Tunein.com api support
Post by: raoulduke881 on November 17, 2013, 03:43:25 am
Then provide us the link, thanks  8)

p.s: Steve, any info about this (several months old) request??
Title: Re: Tunein.com api support
Post by: Dr Bunsen on November 17, 2013, 10:54:57 am
Look below the thread bits of every thread Feature Requests...
Title: Re: Tunein.com api support
Post by: raoulduke881 on November 17, 2013, 11:01:58 am
found, thanks ;)
Title: Re: Tunein.com api support
Post by: Centova - Steve B. on November 25, 2013, 01:22:47 am
Sorry for the silence on my part, I've been focusing on the coding. :)  This feature requires a bit of development work on our end -- basically, we have to implement a system for polling streams very frequently in a way that doesn't hammer the streams and degrade server performance, while still being able to quickly notice track changes so we can promptly update the track info.  This underlying system can be used for a great deal of other things, however, so I began implementing it a short while ago.

Up until the (potential) discontinuation of SHOUTcast DNAS became a possibility, this was actually my main development project, but it's been sidelined for the time being as we're fast-tracking a few features deemed essential in the event that the SHOUTcast toolset is indeed abandoned.

So in a nutshell -- support for tunein.com (and potentially any other directories) is already in development and will definitely appear in a future release.  We just don't know quite when it'll be completed just yet. :)
Title: Re: Tunein.com api support
Post by: raoulduke881 on November 25, 2013, 02:51:23 am
So in a nutshell -- support for tunein.com (and potentially any other directories) is already in development and will definitely appear in a future release.  We just don't know quite when it'll be completed just yet. :)

Now that's something we wanted to read, thanks Steve!! ;)
Title: Re: Tunein.com api support
Post by: Dr Bunsen on November 25, 2013, 03:21:48 am
So in a nutshell -- support for tunein.com (and potentially any other directories) is already in development and will definitely appear in a future release.  We just don't know quite when it'll be completed just yet. :)

Now that's something we wanted to read, thanks Steve!! ;)

+1 :)
Title: Re: Tunein.com api support
Post by: Radiator on May 09, 2014, 08:35:47 am
I notice Tunein have update homepage and app. They implement more features and built this service as social platform like Facebook. I have 53 k followers with Tunein and i think it would time to support from Centova too. Any news?
Title: Re: Tunein.com api support
Post by: Dr Bunsen on August 07, 2014, 04:05:30 pm
It's great to see version 3.10 out at last but where is support for tunein's API? Pretty please guys give this some thought... :)
Title: Re: Tunein.com api support
Post by: Dr Bunsen on January 15, 2015, 09:39:57 pm
Sorry for the silence on my part, I've been focusing on the coding. :)  This feature requires a bit of development work on our end -- basically, we have to implement a system for polling streams very frequently in a way that doesn't hammer the streams and degrade server performance, while still being able to quickly notice track changes so we can promptly update the track info.  This underlying system can be used for a great deal of other things, however, so I began implementing it a short while ago.

Up until the (potential) discontinuation of SHOUTcast DNAS became a possibility, this was actually my main development project, but it's been sidelined for the time being as we're fast-tracking a few features deemed essential in the event that the SHOUTcast toolset is indeed abandoned.

So in a nutshell -- support for tunein.com (and potentially any other directories) is already in development and will definitely appear in a future release.  We just don't know quite when it'll be completed just yet. :)

Any word on this long awaited feature? Thanks.
Title: Re: Tunein.com api support
Post by: RadioSpace on February 14, 2015, 04:38:55 pm
This would be great. Keeping it fresh  8) +1
Title: Re: Tunein.com api support
Post by: Dr Bunsen on April 03, 2015, 07:00:50 pm
Just saying how this feature seems to matter to a lot of people with twice as many views and votes as any other request :)
Title: Re: Tunein.com api support
Post by: viper70785 on April 14, 2015, 12:48:52 pm
good thing in all but how do i set this up if my hosting does not have a cron job section?
Title: Re: Tunein.com api support
Post by: radioxenu on May 25, 2015, 11:14:07 am
Updates?
Title: Re: Tunein.com api support
Post by: mediahoraconjesus on June 30, 2015, 06:28:46 pm
It has been more than two years since this issue was reported and we haven't heard any news from any of the Centova team. This is unacceptable under any circumstances. Please provide a prompt response on this issue whether Centova is working or not on this matter. TuneIn is so popular nowadays and is a shame we cannot use all its potential due to technical restrictions on Centova side. You guys are forcing us to find another service provider different than you.
Waiting anxiously to see any updates from you in the near future (not months later)!!!
 
Title: Re: Tunein.com api support
Post by: My Auto DJ on June 30, 2015, 06:35:31 pm
It has been more than two years since this issue was reported and we haven't heard any news from any of the Centova team. This is unacceptable under any circumstances. Please provide a prompt response on this issue whether Centova is working or not on this matter. TuneIn is so popular nowadays and is a shame we cannot use all its potential due to technical restrictions on Centova side. You guys are forcing us to find another service provider different than you.
Waiting anxiously to see any updates from you in the near future (not months later)!!!
 


I don't think they made any promises to add TuneIn API support, just because a few clients ask for a feature does not automatically make them responsible for developing it
Title: Re: Tunein.com api support
Post by: Dr Bunsen on June 30, 2015, 06:51:30 pm
No promises were made but I refer you to comments by Steve dating back almost 2 years and I would question whether 29 votes represents just a few clients. Clearly this is the single most publicly saught after feature on the forum / bug tracker...

Quote
November 25, 2013, 01:22:47 am ยป

Sorry for the silence on my part, I've been focusing on the coding. :)  This feature requires a bit of development work on our end -- basically, we have to implement a system for polling streams very frequently in a way that doesn't hammer the streams and degrade server performance, while still being able to quickly notice track changes so we can promptly update the track info.  This underlying system can be used for a great deal of other things, however, so I began implementing it a short while ago.

Up until the (potential) discontinuation of SHOUTcast DNAS became a possibility, this was actually my main development project, but it's been sidelined for the time being as we're fast-tracking a few features deemed essential in the event that the SHOUTcast toolset is indeed abandoned.

So in a nutshell -- support for tunein.com (and potentially any other directories) is already in development and will definitely appear in a future release.  We just don't know quite when it'll be completed just yet. :)
Title: Re: Tunein.com api support
Post by: tdnradio on July 02, 2015, 06:47:07 am
For the next release we'd be glad to see the integration of tunein's api broadcaster information to let centova cast update tunein currently playing and recently played tracks, see here:

http://tunein.com/broadcasters/api/

Oh yeah this would not only be be a great feature it's vital especially to those of us who use AutoDJ for our overnights etc. +1 or ++ if I can vote twice.
Title: Re: Tunein.com api support
Post by: twitterautopost on July 05, 2015, 07:31:57 am
Hi all,

I appreciate that there are ways to do this in code and cron, etc, but we currently offer a hosted service to automatically grab the song from your Centova (Shoutcast & Icecast) streaming server and send them on to TuneIn automatically.

If you'd like more info, please take a look at http://www.twitterautopost.com/tunein-auto-post/

Thanks.
Title: Re: Tunein.com api support
Post by: qmr on July 24, 2015, 02:31:20 pm
It has been more than two years since this issue was reported and we haven't heard any news from any of the Centova team. This is unacceptable under any circumstances. Please provide a prompt response on this issue whether Centova is working or not on this matter. TuneIn is so popular nowadays and is a shame we cannot use all its potential due to technical restrictions on Centova side. You guys are forcing us to find another service provider different than you.
Waiting anxiously to see any updates from you in the near future (not months later)!!!
 


I don't think they made any promises to add TuneIn API support, just because a few clients ask for a feature does not automatically make them responsible for developing it

Whilst we wait for this to become a feature I have been trying to use the script that My Auto DJ had posted 2 years ago.

I get this message on cron.php  Parse error: syntax error, unexpected end of file in /var/www/vhosts/xxxx/public_html/xxxx/cron.php on line 299  This is where ?> on the last line. I am using PHP 5.6.3
Title: Re: Tunein.com api support
Post by: My Auto DJ on July 24, 2015, 03:46:18 pm
/var/www/vhosts/xxxx/public_html/   ---  I think you just need to check paths in the script looks like your using a custom path

For Centvoa v3 the current default directory for  vhosts is
/usr/local/centovacast/var/vhosts
Title: Re: Tunein.com api support
Post by: qmr on July 25, 2015, 12:32:21 am
Thanks for getting back but I get the parse error when I view cron.php in a browser.

The paths to song.txt are correct as I have tested it with another script to write "Hello World" and that worked.

Parse error: syntax error, unexpected end of file in /var/www/vhosts/*****/public_html/****/cron.php on line 299 (This is what I get in Chrome.)

This is the final lines of your script with 299 being the very last line.

   // It's a different song so we notify TuneIN radio

   $xml = simplexml_load_file('http://air.radiotime.com/Playing.ashx?partnerId=' . $partnerID . '&partnerKey=' . $partnerKEY . '&id=' . $id . '&title=' . $currentSong . '&artist=' . $currentArtist);

   // Write new song to text file and start over again
   $data= fopen($file, 'w') or die("can't open file");
   fwrite($data, $currentSong);
   fclose($data);

}

   ?>
Title: Re: Tunein.com api support
Post by: My Auto DJ on July 25, 2015, 04:18:36 am
I'm sorry I can't even find my post with the code, I guess they removed it but  I am sure there is a lot missing but from the code you included .. as it is now though it has a extra
}
at the end
As you said it's been a couple years I can't really remember what I posted if you paste the entire code I am sure I can find the problem :)
Title: Re: Tunein.com api support
Post by: qmr on July 25, 2015, 06:54:28 am
- Yes it's being used by 6 stations now -- we sell it as a hosted service for our clients.
- iplayradio - just download the package -- http://myautodj.com/tunein.rar

I downloaded from above which includes cron.php & song.txt
Title: Re: Tunein.com api support
Post by: My Auto DJ on July 25, 2015, 07:23:24 am
ok I found it on page 3, I tested and  it didn't have any errors, although I have found better ways to get the artist/song from the server since then it should still work. You said the error is on line 299, but the script only has 293 lines so you may want to check to make sure there is nothing else in that file .. also I tested using php 5.4

Again it's really simple I am sure a more exp coder can easily do a  lot better job

1. script pulls from the SHOUTcast DNAS the current track and writes it to a text file
2. checks every minute  (or how ever long you choose to run the cron job) to see if the current song still matches the song in the text file.
3. when the song does change, the script sends the data to TuneIN and writes the new song to the text file, starting the process over again

Also I read in this thread that this would use a lot server resources, we have ours serving just over 100 tune in stations so each minute with no problems  using the same script I posted in this thread a couple of years ago ..  in fact our system is is listed on the Tune In API page, look for SHOUTcast Widgets near the middle http://tunein.com/broadcasters/api/
Title: Re: Tunein.com api support
Post by: qmr on July 25, 2015, 07:38:43 am
I have just tried the script on another domain on my server using PHP 5.3 and no errors, working great!

Must be not compatible with later PHP releases.
Title: Re: Tunein.com api support
Post by: Dr Bunsen on January 04, 2016, 05:51:35 pm
Please consider this feature request or give us a reason why it can't be done so we can finally lay it to rest. It's been almost two years now since the original post and there was a point where it was a work in progress.

Thank you! :)
Title: Re: Tunein.com api support
Post by: ruffino on January 11, 2016, 11:20:04 am
Just use the version posted on page 3. Still works.
Title: Re: Tunein.com api support
Post by: deejay on January 13, 2016, 06:08:44 pm
+1 .. yes please.
Title: Re: Tunein.com api support
Post by: scysys on January 24, 2016, 05:49:10 am
+1 for this
Title: Re: Tunein.com api support
Post by: fhisupport on February 09, 2016, 04:07:37 am
+1 for this
Title: Re: Tunein.com api support
Post by: noventa on May 09, 2016, 05:09:50 am
hello everyone, how long it takes to get active script provided by My auto dj?
Title: Re: Tunein.com api support
Post by: My Auto DJ on May 09, 2016, 05:24:02 am
? what were you looking for noventa?
Title: Re: Tunein.com api support
Post by: noventa on May 09, 2016, 05:26:35 am
I did the entire configuration that you had to send information to TuneIn, but nothing happened ... so I asked to move to TuneIn is immediate or not
Title: Re: Tunein.com api support
Post by: My Auto DJ on May 09, 2016, 05:35:18 am
Sorry not really sure what you mean, I do know Tune In is not easy to get a hold of these days and they are pulling stations that don't pay their fees so if your like the 90% of station owners you may want to either get legal or don't waste too much time setting your Tune In API up because once you start getting listeners your doomed.
I expect the recording industry is coming down on them as they are Radionomy... the fees are way too high for small web casters, meanwhile the bigger players like Pandora that can afford it pay a fraction, and they wonder why nobody pays.
Title: Re: Tunein.com api support
Post by: noventa on May 09, 2016, 05:40:50 am
Sorry I'm Portuguese, so my English is weak ... I am not able to set the script, I created the cron in cpanel, but TuneIn stays the same.
Yes I come from Radionomy, created a new radio because of problems with the platform ... I have to pay copyright if you want to continue, I will continue to be able
Title: Re: Tunein.com api support
Post by: My Auto DJ on May 09, 2016, 05:49:17 am
Did you set permissions 777 for the song.txt file the current song is written to?

You can also try to run the script in your browser, setting up the cron in cPanel wrong is common
Title: Re: Tunein.com api support
Post by: noventa on May 09, 2016, 05:54:14 am
Yes, but the .txt file is always 0 bytes ... cron.php the file is with 644?
Title: Re: Tunein.com api support
Post by: My Auto DJ on May 09, 2016, 06:05:52 am
The text file is always blank because you have the permissions incorrect, the server can't write to it ... change the song.txt file to 777 and try again
Title: Re: Tunein.com api support
Post by: noventa on May 09, 2016, 06:08:19 am
777 is all permissions? .txt is with 777 .php is with 644
Title: Re: Tunein.com api support
Post by: Mungo on May 25, 2016, 01:59:14 pm
I've been trying to get this script to work but can't, it's driving me crazy. I've tried on two different web servers with no luck, I just get a blank page when I access cron.php from the browser and the song.txt never gets written to. Permissions set to 777. I changed the script so the error reporting lines are removed but no errors are seen.
Title: Re: Tunein.com api support
Post by: Dr Bunsen on September 13, 2016, 02:13:54 pm
Bump  :D
Title: Re: Tunein.com api support
Post by: musclerob on October 22, 2016, 05:37:57 am
+1 that would be very useful
Title: Re: Tunein.com api support
Post by: Dr Bunsen on March 10, 2017, 12:34:41 am
TuneIn hasn't really been a factor in my radio audience for years but still here's bumping this thread again for 2017... :)
Title: Re: Tunein.com api support
Post by: Richard E on June 09, 2017, 02:54:19 am
We currently use Shoutcast widgets for this and it would be much more sensible if it was handled by the server.

Needs to work with both AutoDJ and remote live sources.

--Richard E
Title: Re: Tunein.com api support
Post by: Rob916 on September 06, 2017, 01:20:34 am
Script works great.. thanks!
Title: Re: Tunein.com api support
Post by: wohooo on November 21, 2017, 10:50:54 pm
This is a must now!  :P
Title: Re: Tunein.com api support
Post by: kael on March 20, 2023, 07:18:13 pm
Hello, it's already 2023 and there is still nothing about the centovacast api for tunein radio, what I would like to say is that please centovacast developers, make that last request, for all of us who use centovacast, please develop an api that works to connect with tunein, it is 2023 and this implement is very important for centovacast. Once again I ask you centovacast developers, please make that last request, since several of us have been waiting for that update. Thank you
Title: Re: Tunein.com api support
Post by: My Auto DJ on March 21, 2023, 06:44:13 am
Is Tune In Radio still accepting new streams or updates? There are a few scripts and 3rd party sites you use. Here's a free one on Github https://github.com/Nomy/tunein-air-api-php/blob/master/tunein-cron.php
The "Tune In AIR API" Hasn't really changed much if any a while so it should still work.

I think the #1 reason that makes the Tune IN API work wonders is the current song & artist are listed in the directory. 
As soon as a stream connects the API and gets it set up, listeners start to pour in.

The Shoutcast directory did this recently but for some reason stopped. I sent an email to shoutcast asking about it....

"Vince (Shoutcast) Feb 28, 2023, 06:35 EST Hi, No, this feature is not in our current roadmap, but I can submit it for future release. Feb 28, 2023 "

Hello, it's already 2023 and there is still nothing about the centovacast api for tunein radio, what I would like to say is that please centovacast developers, make that last request, for all of us who use centovacast, please develop an api that works to connect with tunein, it is 2023 and this implement is very important for centovacast. Once again I ask you centovacast developers, please make that last request, since several of us have been waiting for that update. Thank you
Title: Re: Tunein.com api support
Post by: kael on March 21, 2023, 03:42:59 pm
Tunein currently no longer receives new stations, but it does update the radios of users that we have registered years ago.
In my case if I use tunein , I have some radio profiles there.
In these times, even Tunein is still highly required by users, who buy from other users, so that they have their station there.
Now regarding that scrip code of the link that you share with me, in the comments there it says that it is only for "icecast" and I use "shoutcast2".
And I don't know much about programming that. There will not be a short video tutorial, where it is shown how it is done?(The instructions) Please thanks
Title: Re: Tunein.com api support
Post by: My Auto DJ on March 21, 2023, 03:57:04 pm
Sent you a PM :)

Tunein currently no longer receives new stations, but it does update the radios of users that we have registered years ago.
In my case if I use tunein , I have some radio profiles there.
In these times, even Tunein is still highly required by users, who buy from other users, so that they have their station there.
Now regarding that scrip code of the link that you share with me, in the comments there it says that it is only for "icecast" and I use "shoutcast2".
And I don't know much about programming that. There will not be a short video tutorial, where it is shown how it is done?(The instructions) Please thanks