def weightLifing():
    global scanPass, backData
    scanPassScreen("top")
    thread = threading.Thread(target=reader, args=(True, ))
    thread.start()
    scanPass.mainloop()

    cardData = backData
    cardDataDb = ("rfidNumber = '" + str(cardData) + "'")
    backData = ""
    customerID = gD.getDataWhere("customerID", "loginInfo", cardDataDb)

    Weightlifting.main(customerID[0][0])
def weightLifing():
    global scanPass, backData
    scanPassScreen("top")
    thread = threading.Thread(target=reader, args=(True,))
    thread.start()
    scanPass.mainloop()

    for i in range(3):
        GPIO.output(ledGreen, True)
        sleep(0.3)
        GPIO.output(ledGreen, False)
        sleep(0.3)
    
    cardData = backData
    cardDataDb = ("rfidNumber = '" + str(cardData) + "'")
    backData = ""
    customerID = gD.getDataWhere("customerID", "loginInfo", cardDataDb)

    Weightlifting.main(customerID[0][0])
Exemple #3
0
def weightLifing():
    global scanPass, backData
    scanPassScreen("top")
    thread = threading.Thread(target=reader, args=(True, ))
    thread.start()
    scanPass.mainloop()

    for i in range(3):
        GPIO.output(ledGreen, True)
        sleep(0.3)
        GPIO.output(ledGreen, False)
        sleep(0.3)

    cardData = backData
    cardDataDb = ("rfidNumber = '" + str(cardData) + "'")
    backData = ""
    customerID = gD.getDataWhere("customerID", "loginInfo", cardDataDb)

    Weightlifting.main(customerID[0][0])
def weightLifing():
    Weightlifting.main()
Exemple #5
0
def weightLifing():
    Weightlifting.main()