Example #1
0
def init():
    play_sound('start')
    match = ScoringSystem.objects.all()[0].current_match
    match.reset()
    ScoringDevice.objects.all().update(on_center=False)
    match.actual_start = tz_aware_now()
    match.save()
    start_match_lighting()
    us = get_microseconds()
    return match, us
Example #2
0
def init():
    play_sound('start')
    match = ScoringSystem.objects.all()[0].current_match
    match.reset()
    ScoringDevice.objects.all().update(on_center=False)
    match.actual_start = tz_aware_now()
    match.save()
    start_match_lighting()
    us = get_microseconds()
    return match, us
Example #3
0
def end_game():
    play_sound('warning')
Example #4
0
def end_match():
    end_match_lighting()
    play_sound('end')
    time.sleep(5)
    prematch_lighting()
Example #5
0
def abort_match():
    play_sound('abort')
    end_match_lighting()
    time.sleep(3)
    prematch_lighting()
Example #6
0
def end_game():
    play_sound('warning')
Example #7
0
def end_match():
    end_match_lighting()
    play_sound('end')
    time.sleep(5)
    prematch_lighting()
Example #8
0
def abort_match():
    play_sound('abort')
    end_match_lighting()
    time.sleep(3)
    prematch_lighting()