TOTH at specific time

You have a question or need an advice about how to do something? Ask it here!
Post Reply
moogwill
Posts: 340
Joined: 28 Feb 2016 12:31

TOTH at specific time

Post by moogwill » 27 Aug 2019 15:07

Hi Bernd,

I'm trying to create a script that could genrerate a specific time related TOTH.
If I have 24 different TOTH I'd like to have a script that pick a specific file to its own specific time.
it should refer to the relative time for example if time is 13:58 or 14:02 let's pick TOTH14.mp3
I'd like to achieve that in a script to be able to insert it in playlists and/or in overlays (for live or VT shows)

thanks,
T.

User avatar
radio42
Site Admin
Posts: 5564
Joined: 05 Apr 2012 16:26

Re: TOTH at specific time

Post by radio42 » 27 Aug 2019 16:51

You might create 24 program scheduler entries and define each to be started Soft at the full hour (eg. also using the ‘Allow Start Early’ Option plus the related timing option; click on the ‘?’ icon in the program entry editor dialog to get detailed help).
Alternatively you might just create 1 hourly recurring program entry.
You can then assign the same script to the program(s). The first script-line might be your TOTH track, eg. use the LoadFile mode and use the ${start_HH} macro in the file entry to specify the name of it.
The ${start_HH} macro resolves to the Hour of the effective StartTime of the related program and as such resolves to the full hour when the program is started.

Alternatively you might use a FixedTimeElement and use the ${fix_HH} macro.

moogwill
Posts: 340
Joined: 28 Feb 2016 12:31

Re: TOTH at specific time

Post by moogwill » 30 Aug 2019 17:03

as the playlist is loaded in advance.. will it still refer to the supposed strt time???

User avatar
radio42
Site Admin
Posts: 5564
Joined: 05 Apr 2012 16:26

Re: TOTH at specific time

Post by radio42 » 30 Aug 2019 17:56

When the playlist is loaded from the program scheduler it receives its effective start date and time and as such this will be used with the ${start_xxx} macros.

moogwill
Posts: 340
Joined: 28 Feb 2016 12:31

Re: TOTH at specific time

Post by moogwill » 31 Aug 2019 14:35

that's perfect tahanks...

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests