import RPi.GPIO as GPIO
import schedule
import time

from client import *

def get_button_value():
    GPIO.setmode(GPIO.BCM)
    GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
    return GPIO.input(18)

def manual_button_check():
    print "button value is "+str(get_button_value())

schedule.every(1).seconds.do(manual_button_check)

while True:
    schedule.run_pending()
    time.sleep(0.5)

import RPi.GPIO as GPIO
import schedule
import time

from client import *

def get_button_value():
    GPIO.setmode(GPIO.BCM)
    GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
    return GPIO.input(18)

def manual_button_check():
    print "button value is "+str(get_button_value())

schedule.every(1).seconds.do(manual_button_check)

while True:
    schedule.run_pending()
    time.sleep(0.5)
