Exemplo n.º 1
0
 def GET(self, address):
     i = web.input()
     r = utils.try_get_input(i, 'red', 0)
     g = utils.try_get_input(i, 'green', 0)
     b = utils.try_get_input(i, 'blue', 0)
     duration = utils.try_get_input(i, 'duration', 0.25)
     action.thread.queue.put(action.ActionFlash(state.from_rgb(r, g, b, 100), duration))
Exemplo n.º 2
0
 def GET(self, address):
     i = web.input()
     r = utils.try_get_input(i, 'red', 0)
     g = utils.try_get_input(i, 'green', 0)
     b = utils.try_get_input(i, 'blue', 0)
     duration = utils.try_get_input(i, 'duration', 0.25)
     action.thread.queue.put(
         action.ActionFlash(state.from_rgb(r, g, b, 100), duration))
Exemplo n.º 3
0
 def GET(self, address):
     i = web.input()
     b = utils.try_get_input(i, 'brightness', 0)
     action.thread.queue.put(action.ActionSetBrightness(b))
Exemplo n.º 4
0
 def GET(self, address):
     i = web.input()
     r = utils.try_get_input(i, 'red', 0)
     g = utils.try_get_input(i, 'green', 0)
     b = utils.try_get_input(i, 'blue', 0)
     action.thread.queue.put(action.ActionSetRGB(r, g, b))
Exemplo n.º 5
0
 def GET(self, address):
     i = web.input()
     b = utils.try_get_input(i, 'brightness', 0)
     action.thread.queue.put(action.ActionSetBrightness(b))
Exemplo n.º 6
0
 def GET(self, address):
     i = web.input()
     r = utils.try_get_input(i, 'red', 0)
     g = utils.try_get_input(i, 'green', 0)
     b = utils.try_get_input(i, 'blue', 0)
     action.thread.queue.put(action.ActionSetRGB(r, g, b))