Page 1 of 1

Auto say time

Posted: 20 Mar 2013 12:37
by workino
How can i make a script in order to say the time every 2 hours playing some audio file that contain the right numbers for hours and minutes?

Scenario:

12:03 PF launch script and compose the time joining time_was.mp3 + 12.mp3 + and.mp3 + 03.mp3 and play all together.


Best regards
Workino

Re: Auto say time

Posted: 20 Mar 2013 20:55
by radio42
The main script might look like this (script-lines):
1. LoadTrack, time_was.mp3, Count=1
2. LoadTrack, ${start_HH}.mp3, Count=1
3. LoadTrack, and.mp3, Count=1
4. LoadTrack, ${start_mm}.mp3, Count=1

Let's assume you have named the above script 'SayTime'.
From within any other script you might then invoke the script to create a dynamic embedded container - which plays the tracks resolved as one.
To do so, select the 'Container' action and select the above script and specify the 'One Loop' option.

Re: Auto say time

Posted: 12 Jan 2020 17:37
by angelfigueredo
Hello, continuing with this thread ...

Doing this script, is there any way to update the script when it has already loaded into the schedule?

I say it because it would be a problem that when I load the script I load at 12:34

and when the song ends at 12:36, the script when it plays gets stuck there at 12:34, and is not able to update the time ...

This is usually a bit awkward since the time is updated and when you give the time in your station it says the wrong time.

Re: Auto say time

Posted: 12 Jan 2020 17:57
by radio42
Macros must be resolved when the player is loaded.
As su h the above ${start_...} macros work best with a Fixed TUS or FTE.
Else they are not 100% precise.
And else there is no perfect way to auto announce the time, except using a live DJ ;-)

Re: Auto say time

Posted: 12 Jan 2020 18:01
by angelfigueredo
radio42 wrote: 12 Jan 2020 17:57 As su h the above ${start_...} macros work best with a Fixed TUS or FTE.

In this case, ¿how is that?

Re: Auto say time

Posted: 12 Jan 2020 18:18
by radio42
How is what?
A Fixed time update sync or a fixed time element starts exactly on time. And the above macros reference exactly that start time.