mirror of
https://gitlab.sectorq.eu/jaydee/mqtt_srv.git
synced 2025-12-14 10:34:53 +01:00
bitwarden
This commit is contained in:
18
mqtt_srv.cfg
18
mqtt_srv.cfg
@@ -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"]
|
}
|
||||||
13
mqtt_srv.py
13
mqtt_srv.py
@@ -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 = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user