def __init__()

in smart-mirror-full/extracted/device/script/agt_smart_mirror.py [0:0]


    def __init__(self):
        super().__init__()

        self.config = self.get_parameters()
        self.smart_mirror = SmartMirror(self.config)

        #This sets what action is starte when the mirror starts
        self.defaultAction = Actions.Clock
        self.currentAction = self.defaultAction
        self.lastAction = self.defaultAction

        # Boolean that tells the loop if it should execute actions or not - default is True which means that the configured default action (self.defaultAction)
        # will be used
        self.keep_cycling = True

        #default options for show color as a reference
        self.showColorOptions = {
            'color': webcolors.name_to_rgb('yellow')
        }

        #default options for timer
        self.showTimerOptions = {
            'startTime': None,
            'endTime': None,
            'color': webcolors.name_to_rgb('red'),
            'timer_token': None
        }

        # Setup a lock to be used for avoiding race conditions
        # during color animation state updates
        self.lock = threading.Lock()
        self.loop_thread = threading.Thread(target=self.loop)
        self.loop_thread.start()