Sign In:     


Forum: General Discussion

Topic: Ghange playlist automatically ?

This topic is old and might contain outdated or incorrect information.

Hi guys,
I'm looking forward to make an automatisation to be able to change playlist at a given specific time ?
Eg the first one starts at 10am to 4pm and the second one starts at 4 pm to 10 pm ?

Have any of you ever done that ?
Would really help me !
 

Posted Wed 17 Aug 16 @ 8:30 pm
I don't think there is a way to do this, but the playlist does indicate when the next song will start. In the the 'will play at ' column , ao just organize you play list , add all your music until you get to the 6 hours mark, then add your second lot, I know it means meeting two play lists but it will achieve what you want
 

Maybe you can load the first playlist in the playlist and the second in the sidelist.
Then activate with action "switch_sidelist_playlist". I don't know if vdj reads the time to activate an action.
 

I think this is possible, I'm just testing if I can query the clock.

*edit*
It appears you can't query the clock, but a repeat start script could do it if you activate it at the right time [10 am]

repeat_start 'plSchedule' 360000 1 & playlist_load 'playlist 1'

you could have it rolling 24/7 changing every X hours, describe more why you want it and I can write something bespoke.
 

Hi Locodog,

It's basically because the music that will be playing is for a bar when there's no dj, so the first is for diner 10-16, second is for lunch 16-22 and the other one for nighttime 22-3 everyday !

If you could help me it would be really appreciated :)
 

If you're planning on using the home free version of VDJ in your bar it against the EULA as it's for non-commercial use.
 

We're using the full version !
 

Cool, just thought I'd point that out as you are on the forum as a home user.
 

repeat_start 'plSchedule1' 28800000 1 & playlist_load 'afternoonplaylist' & repeat_start 'plSchedule2' 21600000 1 & playlist_load 'nightplaylist'

ok put this script on a custom button [change the playlist names to your names], load up your first playlist, and press the button at 10AM.

Now mines a pint of porter.
 

The number 28800000 are for the time of the playlists ?
 

They are milliseconds... but I think Loco's script has a small mistake:

Shouldn't it be

repeat_start 'plSchedule1' 21600000 1 & playlist_load 'afternoonplaylist' & repeat_start 'plSchedule2' 18000000 & playlist_load 'nightplaylist'

Because 16-22 are 6 hours, and 6 hours are: 6*60*60*1000 -> 21600000 milliseconds

22-3 are 5 hours: 5*60*60*1000 -> 18000000 milliseconds
 

no mistake, daytime [first] playlist is loaded by the user and lasts 8 hours.

I've never ran a repeat script for that long so would like to know if it works out.

EDIT actually yes a mistake [I missed the ms unit]

repeat_start 'plSchedule1' 28800000ms 1 & playlist_load 'afternoonplaylist' & repeat_start 'plSchedule2' 21600000ms 1 & playlist_load 'nightplaylist'
 

VBscript is the solution
 



(Old topics and forums are automatically closed)