def check_ph_controller_status(): """Check if our pH Controller is physically running.""" log.debug("check_ph_controller_status() called") ph_controller_current_watts = power_strip.get_current_power("PH Controller") if ph_controller_current_watts > system_info.ph_controller_watts: update_mysql_database("led_status", "injecting_co2_led", True) else: update_mysql_database("led_status", "injecting_co2_led", False)
def check_uv_pump_status(): """Check if our UV light and pump is physically running.""" log.debug("check_uv_pump_status() called") uv_pump_current_watts = power_strip.get_current_power("UV Light") if uv_pump_current_watts > system_info.uv_pump_watts: update_mysql_database("led_status", "uv_pump_status", True) else: update_mysql_database("led_status", "uv_pump_status", False)
def check_406_filter_status(): """Check if our 406 filter is physically running.""" log.debug("check_406_filter_status() called") f406_filter_current_watts = power_strip.get_current_power("406 Filter") if f406_filter_current_watts > system_info.f406_filter_watts: update_mysql_database("led_status", "f406_status", True) else: update_mysql_database("led_status", "f406_status", False)
def check_airpump_status(): """Check if our air pump is physically running.""" log.debug("check_airpump_status() called") airpump_current_watts = power_strip.get_current_power("Air Pump") if airpump_current_watts > system_info.air_pump_watts: update_mysql_database("led_status", "airpump_status", True) else: update_mysql_database("led_status", "airpump_status", False)