mirror of
https://gitlab.sectorq.eu/jaydee/mqtt_srv.git
synced 2025-12-14 02:34:52 +01:00
bitwarden
This commit is contained in:
18
mqtt_srv.cfg
18
mqtt_srv.cfg
@@ -1,9 +1,9 @@
|
||||
[global]
|
||||
mykey = prod/v1/install/
|
||||
|
||||
[morefine]
|
||||
right = ["HDMI-A-0", "1920x1080"]
|
||||
tleft = ["DisplayPort-6", "1920x1080"]
|
||||
tright = ["DisplayPort-8", "1920x1080"]
|
||||
left = ["DisplayPort-7", "2560x1440"]
|
||||
mid = ["DisplayPort-0", "3440x1440"]
|
||||
{"global":
|
||||
{"mykey": "prod/v1/install/"}
|
||||
"morefine":
|
||||
{"right": ["HDMI-A-0", "1920x1080"]},
|
||||
{"tleft": ["DisplayPort-6", "1920x1080"]},
|
||||
{"tright": ["DisplayPort-8", "1920x1080"]},
|
||||
{"left": ["DisplayPort-7", "2560x1440"]},
|
||||
{"mid": ["DisplayPort-0", "3440x1440"]}
|
||||
}
|
||||
13
mqtt_srv.py
13
mqtt_srv.py
@@ -17,14 +17,15 @@ import ctypes
|
||||
import getopt
|
||||
import random
|
||||
import requests
|
||||
import configparser
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
config.read(r'/etc/mqtt_srv/mqtt_srv.cfg')
|
||||
|
||||
lala = config.get('morefine', 'right')
|
||||
print(lala)
|
||||
print(lala[0])
|
||||
with open("/etc/mqtt_srv/mqtt_srv.cfg") as json_file:
|
||||
config = json.load(json_file)
|
||||
print(config)
|
||||
|
||||
|
||||
print(config["morefine"])
|
||||
|
||||
|
||||
#import psutil
|
||||
stats = {}
|
||||
|
||||
Reference in New Issue
Block a user