Page 1 of 1

TOTH at specific time

Posted: 27 Aug 2019 15:07
by moogwill
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)


Re: TOTH at specific time

Posted: 27 Aug 2019 16:51
by radio42
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.

Re: TOTH at specific time

Posted: 30 Aug 2019 17:03
by moogwill
as the playlist is loaded in advance.. will it still refer to the supposed strt time???

Re: TOTH at specific time

Posted: 30 Aug 2019 17:56
by radio42
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.

Re: TOTH at specific time

Posted: 31 Aug 2019 14:35
by moogwill
that's perfect tahanks...