CLI tool to control your IoT gadgets.
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.
roomcomputer/main.py

20 lines
357 B

#!/usr/bin/env python
from lib.input import * # Commandline parser
4 years ago
import hue_controller as hue # Actual controller
4 years ago
params = ""
if( inputHasKeys(["-p"]) ):
params = getValueOfKey("-p")
reqtype = "GET"
if( inputHasKeys(["-t"]) ):
reqtype = getValueOfKey("-t")
4 years ago
def init():
print(reqtype, params)
hue.API_Request(reqtype, params)
init()