commit
01073429a1
@ -0,0 +1,10 @@ |
||||
{ |
||||
"hue": { |
||||
"address": "", |
||||
"username": "" |
||||
}, |
||||
"speech": { |
||||
"device_index": 30, |
||||
"prefixes": ["computer", "computers"] |
||||
} |
||||
} |
@ -1,44 +1,41 @@ |
||||
# Presets goes in here |
||||
PRESETS = { |
||||
|
||||
{ |
||||
"default": { |
||||
"color": (178, 199, 255), |
||||
"color": [178, 199, 255], |
||||
"brightness": 255 |
||||
}, |
||||
|
||||
"dim": { |
||||
"color": (178, 199, 255), |
||||
"color": [178, 199, 255], |
||||
"brightness": 111 |
||||
}, |
||||
|
||||
"dim": { |
||||
"color": (178, 199, 255), |
||||
"color": [178, 199, 255], |
||||
"brightness": 80 |
||||
}, |
||||
|
||||
"red": { |
||||
"color": (255, 0, 0), |
||||
"color": [255, 0, 0], |
||||
"brightness": 255 |
||||
}, |
||||
|
||||
"green": { |
||||
"color": (0, 255, 0), |
||||
"color": [0, 255, 0], |
||||
"brightness": 255 |
||||
}, |
||||
|
||||
"blue": { |
||||
"color": (0, 0, 255), |
||||
"color": [0, 0, 255], |
||||
"brightness": 255 |
||||
}, |
||||
|
||||
"ice" : { |
||||
"color": ( 80, 100, 255 ), |
||||
"color": [80, 100, 255], |
||||
"brightness": 120 |
||||
}, |
||||
|
||||
"sleep": { |
||||
"color": (185, 155, 25), |
||||
"color": [185, 155, 25], |
||||
"brightness": 60 |
||||
} |
||||
|
||||
} |
@ -0,0 +1 @@ |
||||
|
@ -0,0 +1,12 @@ |
||||
import json |
||||
|
||||
def readconfig(path): |
||||
try: |
||||
with open(path) as cfg: |
||||
data = json.load(cfg) |
||||
|
||||
return data |
||||
|
||||
except: |
||||
print("[Error] Something went wrong reading the configuration file.") |
||||
print("--", path) |
@ -1,4 +0,0 @@ |
||||
# Hue Remote Settings |
||||
class hue_config: |
||||
address = "192.168.0.3" |
||||
username = "E0ru0AeVFKEH1E30X40JAJfovg4Uu1aTkdrKQ2Oi" |
@ -1,8 +0,0 @@ |
||||
################################## |
||||
# RENAME THIS FILE TO "config.py"# |
||||
################################## |
||||
|
||||
# Hue Remote Settings |
||||
class hue_config: |
||||
address = "" # Local IPv4 address to the HUE bridge |
||||
username = "" # Username for the bridge |
@ -0,0 +1,7 @@ |
||||
#!/usr/bin/bash |
||||
|
||||
cfgPath="$HOME/.config/roomcomputer" |
||||
|
||||
mkdir $cfgPath |
||||
cp default-config.json $cfgPath/config.json |
||||
cp default-presets.json $cfgPath/presets.json |
Loading…
Reference in new issue