def __init__(self, db_path='/home/pi/.greenhouse/greenhouse.db'): """ db_path defaults to /home/pi/.greenhouse/greenhouse.db """ self.db = GreenhouseDatabase(db_path) self.darkness_level = 0.01
def __init__(self, db_path='/home/pi/.greenhouse/greenhouse.db'): """ db_path defaults to /home/pi/.greenhouse/greenhouse.db """ self.db = GreenhouseDatabase(db_path) self.target_temperature_lower = 20 self.target_temperature_upper = 30 self.target_humidity_lower = 60 self.target_humidity_upper = 85 self.target_soil = 60 self.target_light = 60 self.status_colours = { self.SENSOR_LOW: 'blue', self.SENSOR_OK: 'green', self.SENSOR_HIGH: 'red', } self._setup_gpio()