def update_humidity_24hour(self): value = database.get_average_value("humidity", 24) self.update_text(self.humidity_24hour_avg, value)
def update_co2_24hour(self): value = database.get_average_value("co2", 24) self.update_text(self.co2_24hour_avg, value)
def update_temperature_24hour(self): value = database.get_average_value("temperature", 24) self.update_text(self.temperature_24hour_avg, value)