from subprocess import check_call
import time

class Power:

    def turn_off(self):
        for x in range(0, 5):
            check_call(["/home/pi/send", "001000001111101000000110"])
            time.sleep(1)

    def turn_on(self):
        for x in range(0, 5):
            check_call(["/home/pi/send", "001000001111101000001110"])
            time.sleep(1)
