Auto DJ Script

Read 21099 times
Sorry to post again, but really hoping to get some assistance in this.

Used that really nice script provided to turn on and off the autodj. I get as far as where it lets you know what the server status is, but when you go to change the status of the autodj (on-off) you get a invalid username or password error.

Anyone have any ideas?

Thanks
To the best of my recollection there are no non-obvious cases where this would happen -- invalid username and password errors always mean exactly that.  

Make sure you've precisely followed the directions in autodjcontrol.php and correctly specified your $stream_username, and that you've also either specified the stream's administrator password for the stream in $stream_password, or the Centova Cast "admin" account password in $admin_password.  Make sure you're not accidentally using the source password or somesuch... that's a common mistake that's easy to make. :)

Yea, I would tend to agree on what you say. Problem is, I've double checked it and tried just about every combination to get it working.

It does report the server and autodj status so it makes me think something is working.

Any other ideas?

Thanks

Jeff Wilson
Quote
It does report the server and autodj status so it makes me think something is working.

That information doesn't require authentication (it's freely available via the widgets and so-on), so you'd still be able to see that even if your password was invalid.
Hi Steve,

I have question related to this so thought i'd just ask in this thread instead, rather than creating a new one. I hope you don't mind. :)

What i have noticed is that when DJs on my station have finished streaming LIVE and use the AutoDJ Script to restart the AutoDJ server is that a new DJ mix starts to play from the playlist.

My problem with this setup is that not all of the DJ mixes on in rotation on the server are being played equally

Is it possible to change it so when a DJ restarts the AutoDJ server using the AutoDJ script that it loads up a Station ID (7 seconds or so) first, and once finished carry s on playing the DJ mix where it left of and continue going through the playlist in order.

Even though i have the playlist set to play in shuffle mode all DJ mixes are still not being played equally. Many of them are repeating over and over and some don't get any playtime at all because of it.

This would be the same whether using the the AutoDJ Script or using the proper CentovaCast Control Panel to restart the AutoDJ server

Apologies for long post.

I hope there is a fix or workaround for this.

Cheers,
Chris
Quote
Is it possible to change it so when a DJ restarts the AutoDJ server using the AutoDJ script that it loads up a Station ID (7 seconds or so) first


Unfortunately that's not possible for the reason below.


Quote
and once finished carry s on playing the DJ mix where it left of and continue going through the playlist in order


Centova Cast's playlist system works on a per-invocation basis.  So basically, every time your source software (i.e., ices-cc) needs to play a new track, it runs a Centova Cast script which asks for the filename of the next track to play.

Centova Cast internally does not care (or even know) how long it's been in between invocations of that script, nor does it have any idea if ices-cc has been running the whole time or was shut down for a length of time in between.

To put that in a nutshell, stopping the autoDJ will have zero impact on which track is served next.  If Track 123 is about to be played next, it will be played next regardless of whether you leave the autoDJ running, or shut it down for an hour before starting it back up.  (The only exception to that is, of course, if you have a scheduled playlist due to play when you start the autoDJ back up -- it will override the general rotation track which would have otherwise played.)


Quote
Even though i have the playlist set to play in shuffle mode all DJ mixes are still not being played equally. Many of them are repeating over and over and some don't get any playtime at all because of it.


No offence to you personally but we've heard this over and over ad nauseum, and nobody ever seems to be able to provide concrete evidence (i.e., logs) showing that the randomization is anything but random.  We've analyzed many log files from our own streams and over time, taking weighting into account, the selection algorithm always appears to be doing what it should.

Usually it turns out the client has duplicate tracks in his playlists, either under different filenames, or as multiple entries for the same track in his playlist.

See also the KB article about this which gives a bit more info.

I have 107:23:40 hrs of dj mixes rotating in the playlist. Probably too many hours for it to rotate properly.

I will check logs to see if that helps
Shouldn't be.  There should be no notion of "properly" or "improperly"... it's just MySQL queries, so it'll either work or it won't.

Up until the point where it stops working, the number of tracks won't matter.  Beyond that point, your MySQL server will take so long to process your track list that the streaming server will time out waiting for the autoDJ to serve up the next track, and listeners will hear silence and/or be disconnected.

You'll need a pretty big playlist and a pretty slow MySQL server for that to happen, though, and when it does, you'll know about it. :)
You can make an script that plays an station id when Autodj is restarted.
Just enable an immediate playlist, or create one through the API and it's done!
Hello

Who can help me with this script I keep getting wrong username or password
while I'm sure that it is good

greetz

The Hosting 4 you
TheHosting4You

Voor een betaalbare streaming en goede support tevens kunnen wij uw voor radio stations een app maken voor android en ios,