bitwarden

This commit is contained in:
jaydee
2024-10-30 12:44:41 +01:00
parent 2ce50277cb
commit 0271860fea
2 changed files with 16 additions and 15 deletions

View File

@@ -1,9 +1,9 @@
[global] {"global":
mykey = prod/v1/install/ {"mykey": "prod/v1/install/"}
"morefine":
[morefine] {"right": ["HDMI-A-0", "1920x1080"]},
right = ["HDMI-A-0", "1920x1080"] {"tleft": ["DisplayPort-6", "1920x1080"]},
tleft = ["DisplayPort-6", "1920x1080"] {"tright": ["DisplayPort-8", "1920x1080"]},
tright = ["DisplayPort-8", "1920x1080"] {"left": ["DisplayPort-7", "2560x1440"]},
left = ["DisplayPort-7", "2560x1440"] {"mid": ["DisplayPort-0", "3440x1440"]}
mid = ["DisplayPort-0", "3440x1440"] }

View File

@@ -17,14 +17,15 @@ import ctypes
import getopt import getopt
import random import random
import requests import requests
import configparser
config = configparser.ConfigParser()
config.read(r'/etc/mqtt_srv/mqtt_srv.cfg')
lala = config.get('morefine', 'right') with open("/etc/mqtt_srv/mqtt_srv.cfg") as json_file:
print(lala) config = json.load(json_file)
print(lala[0]) print(config)
print(config["morefine"])
#import psutil #import psutil
stats = {} stats = {}