def update_max_temp(): global unit ts, val = dbops.calcDayMaximum("temperature") ui.temp_unit_3.setText('degC') if (unit == 1): val = sensorRead.todegF(val) ui.temp_unit_3.setText('degF') ui.max_temp.setText(str(round(val, 2))) ui.max_temp_ts.setText(ts.strftime('%b-%d-%Y %H:%M:%S'))
def update_max_hum(): ts, val = dbops.calcDayMaximum("humidity") ui.max_hum.setText(str(round(val, 2))) ui.max_hum_ts.setText(ts.strftime('%b-%d-%Y %H:%M:%S'))