Fixed default config

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

@ -1,41 +1,41 @@
{
"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
}
}

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

Loading…
Cancel
Save