pool_control_master_db.py
def pfv_disabled():
    pool_fill_notifications = read_database("notification_settings", "pool_fill_notifications")
    # TODO Complete and test pfv_disabled() function
    """ Function to determine if our PFV has been manually disabled. """
    if DEBUG == "True":
        print("Starting pfv_disabled().")
    # Let take a quick look at the switch that controls our fill valve. Has
    # it been disabled? If so, send a notification
    # and log the error.
    pool_fill_valve_disabled = GPIO.input(pool_fill_valve_disabled_pin)
    if pool_fill_valve_disabled == True:
        led_control(pool_fill_valve_disabled_led, "True")
        if PUSHBULLET == "True" and pool_fill_notifications == "True":
            send_push_notification("Pool Fill Valve DISABLED", "Your pool fill valve has been DISABLED. Pool will not fill.")
    if DEBUG == "True":
        print("Completed pfv_disabled() function")
 Function to determine if our PFV has been manually disabled. 
Function to determine if our PFV has been manually disabled.
Function to determine if our PFV has been manually disabled .
def pfv_disabled():
    pool_fill_notifications = read_database("notification_settings", "pool_fill_notifications")
    if DEBUG == "True":
        print("Starting pfv_disabled().")
    pool_fill_valve_disabled = GPIO.input(pool_fill_valve_disabled_pin)
    if pool_fill_valve_disabled == True:
        led_control(pool_fill_valve_disabled_led, "True")
        if PUSHBULLET == "True" and pool_fill_notifications == "True":
            send_push_notification("Pool Fill Valve DISABLED", "Your pool fill valve has been DISABLED. Pool will not fill.")
    if DEBUG == "True":
        print("Completed pfv_disabled() function")
def pfv_disabled ( ) : pool_fill_notifications = read_database ( "notification_settings" , "pool_fill_notifications" ) if DEBUG == "True" : print ( "Starting pfv_disabled()." ) pool_fill_valve_disabled = GPIO . input ( pool_fill_valve_disabled_pin ) if pool_fill_valve_disabled == True : led_control ( pool_fill_valve_disabled_led , "True" ) if PUSHBULLET == "True" and pool_fill_notifications == "True" : send_push_notification ( "Pool Fill Valve DISABLED" , "Your pool fill valve has been DISABLED. Pool will not fill." ) if DEBUG == "True" : print ( "Completed pfv_disabled() function" )
Function to determine if our PFV has been manually disabled.
Function to determine if our PFV has been manually disabled .
# TODO Complete and test pfv_disabled() function """ Function to determine if our PFV has been manually disabled. """ # Let take a quick look at the switch that controls our fill valve. Has # it been disabled? If so, send a notification # and log the error.