Exemplo n.º 1
0
def alarm(value):
    ### fuel pump de-activation ###
    print('Alarm Status: {}'.format(int(value[0])))
    if int(value[0]) == 1:
        print('Disabling Fuel Pump in 10 Seconds')
        time.sleep(10)
        print('Disabling Fuel Pump')
        lib8relay.set(1, 8, int(value[0]))
        blynk.virtual_write(14, "DISABLED")
    else:
        lib8relay.set(1, 8, int(value[0]))
        blynk.virtual_write(14, "ENABLED")
Exemplo n.º 2
0
def rear_led(value):
	#fuel pump de-activation
	print ('Alarm Status: {}'.format(int(value[0])))
        lib8relay.set(1,8,int(value[0]))
Exemplo n.º 3
0
def rear_led(value):
        print ('Rear LED Status: {}'.format(int(value[0])))
        lib8relay.set(1,5,int(value[0]))
Exemplo n.º 4
0
def right_side_led(value):
        print ('Right Side LED Status: {}'.format(int(value[0])))
        lib8relay.set(1,4,int(value[0]))
Exemplo n.º 5
0
def left_side_led(value):
        print ('Left Side LED Status: {}'.format(int(value[0])))
        lib8relay.set(1,3,int(value[0]))
Exemplo n.º 6
0
def ditch_light_led(value):
        print ('Ditch Light LED Status: {}'.format(int(value[0])))
        lib8relay.set(1,2,int(value[0]))
Exemplo n.º 7
0
def rt_led_lightbar(value):
	print ('RT LED Lightbar Status: {}'.format(int(value[0])))
	lib8relay.set(1,1,int(value[0]))
Exemplo n.º 8
0
def fuel_pump(pin,value):
        print ('Fuel Pump Disabled: {}'.format(int(value[0])))
        lib8relay.set(1,1,int(value[0]))
Exemplo n.º 9
0
def gmrs_power(pin,value):
	print ('GMRS Radio Power: {}'.format(int(value[0])))
	lib8relay.set(1,8,int(value[0]))
Exemplo n.º 10
0
def rear_led(pin,value):
	print ('Water Pump and UV Filter Power: {}'.format(int(value[0])))
	lib8relay.set(1,7,int(value[0]))
Exemplo n.º 11
0
def right_side_led(pin,value):
        print ('Right Side LED Pods Status: {}'.format(int(value[0])))
        lib8relay.set(1,3,int(value[0]))
Exemplo n.º 12
0
def left_side_led(pin,value):
        print ('Left Side LED Pods Status: {}'.format(int(value[0])))
        lib8relay.set(1,2,int(value[0]))
Exemplo n.º 13
0
def ditch_light_led(pin,value):
        print ('Ditch Light LED Pods Status: {}'.format(int(value[0])))
        lib8relay.set(1,4,int(value[0]))