Exemplo n.º 1
0
    def __init__(self):
        self.configuration = GlobalConfigurationWrapper()
        self.logger = Logger()

        self.clientId = self.configuration.imgur_client_id()
        self.clientSecret = self.configuration.imgur_client_secret()
        self.imagePath = self.configuration.imgur_latest_photo_root_path()
Exemplo n.º 2
0
    def __init__(self):
        self.configuration = GlobalConfigurationWrapper()
        self.timeToKeepTheBoxOpen = self.configuration.box_time_to_keep_the_box_open(
        )
        self.logger = Logger()

        self.servoManager = ServoManager()
        self.proximitySensorManager = ProximitySensorManager()
Exemplo n.º 3
0
 def __init__(self):
     self.configuration = GlobalConfigurationWrapper()
     self.hmiConfiguration = HmiConfigurationWrapper()
     self.boxOpeningManager = BoxOpeningManager()
     self.logger = Logger()
     self.soundManager = SoundManager()
     
     self.serial = serial.Serial(port='/dev/serial0',baudrate=9600,timeout=1.0)
     self.worker_thread = threading.Thread(target=self.__idle_start, args=())
Exemplo n.º 4
0
    def __init__(self):
        self.configuration = GlobalConfigurationWrapper()
        self.firebaseConfig = {
            "apiKey": self.configuration.fbase_apiKey(),
            "authDomain": self.configuration.fbase_authDomain(),
            "databaseURL": self.configuration.fbase_databaseUrl(),
            "storageBucket": self.configuration.fbase_storageBucket()
        }

        self.firebase = pyrebase.initialize_app(self.firebaseConfig)
        self.db = self.firebase.database()

        self.turnOffWasRequested = False
Exemplo n.º 5
0
 def __init__(self):
     self.configuration = GlobalConfigurationWrapper()
     self.logger = Logger()
     
     self.firebaseConfig = {
       "apiKey": self.configuration.fbase_apiKey(),
       "authDomain": self.configuration.fbase_authDomain(),
       "databaseURL": self.configuration.fbase_databaseUrl(),
       "storageBucket": self.configuration.fbase_storageBucket()
     }
     
     self.firebase = pyrebase.initialize_app(self.firebaseConfig)
     self.db = self.firebase.database()
     
     self.__load_local_default_settings()
     self.__load_default_settings_from_firebase()
Exemplo n.º 6
0
 def __init__(self):
     self.configuration = GlobalConfigurationWrapper()
     self.minimalLogLevel = ErrorLevelEnum[self.configuration.logging_log_level()]
     self.logTo = LogToEnum[self.configuration.logging_log_to()]
Exemplo n.º 7
0
 def __init__(self):
     self.configuration = GlobalConfigurationWrapper()
     self.pathToLatestCapture = self.configuration.imgur_latest_photo_root_path(
     )
     self.logger = Logger()