Startclock

A "starting clock", like an ALGE ASC3, can be shown with RRExchange.

RR12 needs to have an output list containing the next starttime and the bib and name of the athlete to start. RRExchange will periodically pull this list via it's Globals feature. Then you can use any of the pre-defined template and use it for displaying these values.

Prepare RR12

Create an output list named StartClockTest with the folliwng fields:

Column NameDescription

CurrentTime

not needed but good to see if we receive changes

NextStarttime

start time of next athlete to start

NextBib

bib of next athlete top start

NextName

name of next athlete to start

Set the Maximum number of records to only 1.

Prepare RRExchange

Globals

Click on Globals in the top center of the window, then click on RaceResult 12 Lists and add a new entry called StartClockTest and assign the newly created output list.

If you do not see the newcly created output list, close the Globals window and click on the refresh button next to the event name. This will query all list names again.

Scripting

Bring up the scripting window for the Clear template and remove all existing content. In order to check the retrieveal of the output list, write the following content:

{{ StartClockTest.First.CurrentTime }}

You should then see a clock, which is generated by the RR12 output list.

If so, remove all of it and replace it with this code:

{{
     # Check for any scheduled at all (either no row at all or empty starttime)
     if (StartClockTest.First != null && StartClockTest.First.NextStarttime != "")
       # Get current time
       now = Clock
        # Convert time of day to time span
       starttime = ToDateTime StartClockTest.First.NextStarttime
       # Calculate remaining time to start
       timeRemaining = datetime.Subtract starttime now       
       
       # Output string including bib number
       StartClockTest.First.NextBib + " -> " + timespan.FormatRaceResult timeRemaining "mm:ss"       
    else 
         "No one scheduled"
    end
}}

From here on you can add different colors based on the time remaining or clamp the time at 0.

Last updated