def pump_stop(): pool_control_master_db.pump_control("STOP") update_database("pump_status", "pump_program_running", "stop") return redirect(url_for('pool_control'))
def pump_program4(): pool_control_master_db.pump_control('PROGRAM_4') update_database("pump_status", "pump_program_running", "program_4") return redirect(url_for('pool_control'))
def pump_start(): pool_control_master_db.pump_control("START") return redirect(url_for('pool_control'))