You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
357 B
19 lines
357 B
#!/usr/bin/env python
|
|
from lib.input import * # Commandline parser
|
|
|
|
import hue_controller as hue # Actual controller
|
|
|
|
params = ""
|
|
if( inputHasKeys(["-p"]) ):
|
|
params = getValueOfKey("-p")
|
|
|
|
reqtype = "GET"
|
|
if( inputHasKeys(["-t"]) ):
|
|
reqtype = getValueOfKey("-t")
|
|
|
|
|
|
def init():
|
|
print(reqtype, params)
|
|
hue.API_Request(reqtype, params)
|
|
|
|
init()
|
|
|