Auto say time

You have a question or need an advice about how to do something? Ask it here!
Post Reply
workino
Posts: 50
Joined: 05 Mar 2013 16:19
Auto say time

Post 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
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Auto say time

Post 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.
angelfigueredo
Posts: 11
Joined: 11 Jan 2020 15:27
Re: Auto say time

Post 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.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Auto say time

Post 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 ;-)
angelfigueredo
Posts: 11
Joined: 11 Jan 2020 15:27
Re: Auto say time

Post 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?
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Auto say time

Post 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.

Post Reply