Fixed default config

fetchIP
E. Almqvist 4 years ago
parent 62b7cbbeab
commit 60dbe4dae7
  1. 16
      default-presets.json
  2. 14
      modules/configloader/loader.py

@ -1,41 +1,41 @@
{ {
"default": { "default": {
"color": {178, 199, 255}, "color": [178, 199, 255],
"brightness": 255 "brightness": 255
}, },
"dim": { "dim": {
"color": {178, 199, 255}, "color": [178, 199, 255],
"brightness": 111 "brightness": 111
}, },
"dim": { "dim": {
"color": {178, 199, 255}, "color": [178, 199, 255],
"brightness": 80 "brightness": 80
}, },
"red": { "red": {
"color": {255, 0, 0}, "color": [255, 0, 0],
"brightness": 255 "brightness": 255
}, },
"green": { "green": {
"color": {0, 255, 0}, "color": [0, 255, 0],
"brightness": 255 "brightness": 255
}, },
"blue": { "blue": {
"color": {0, 0, 255}, "color": [0, 0, 255],
"brightness": 255 "brightness": 255
}, },
"ice" : { "ice" : {
"color": {80, 100, 255}, "color": [80, 100, 255],
"brightness": 120 "brightness": 120
}, },
"sleep": { "sleep": {
"color": {185, 155, 25}, "color": [185, 155, 25],
"brightness": 60 "brightness": 60
} }
} }

@ -1,12 +1,12 @@
import json import json
def readconfig(path): def readconfig(path):
#try: try:
with open(path) as cfg: with open(path) as cfg:
data = json.load(cfg) data = json.load(cfg)
return data return data
#except: except:
#print("[Error] Something went wrong reading the configuration file.") print("[Error] Something went wrong reading the configuration file.")
#print("--", path) print("--", path)

Loading…
Cancel
Save