import RPi.GPIO as gpio
from datetime import datetime
import controller

gpio.setmode(gpio.BOARD)
switch = 10

gpio.setup(switch, gpio.OUT, initial=False)

def switch_on():
  gpio.output(switch, True)
  print "Oven switched ON at " + str(datetime.now())


def switch_off():
  gpio.output(switch, False)
  print "Oven switched OFF at " + str(datetime.now())
  gpio.cleanup()

def status():
  return gpio.input(switch)





@@ -411,11 +411,123 @@
 witch)%0A%0A
+while True:%0A  switch_on()%0A  status()%0A  time.sleep(2)%0A  switch_off()%0A  status()%0A  time.sleep(2)%0A%0A%0Agpio.cleanup()%0A
 %0A%0A%0A

add python in