bitwarden

This commit is contained in:
jaydee
2024-10-30 12:26:49 +01:00
parent f836cd59b3
commit 5b819d3043
2 changed files with 14 additions and 5 deletions

View File

@@ -1,2 +1,9 @@
[global]
mykey = prod/v1/install/
[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"]

View File

@@ -17,17 +17,18 @@ import ctypes
import getopt
import random
import requests
from backports import configparser
import configparser
config = configparser.ConfigParser()
config.read(r'mqtt_srv.cfg')
config.read(r'/etc/mqtt_srv/mqtt_srv.cfg')
print(config.get('global', 'mykey') )
print(config.get('morefine', 'right') )
#import psutil
stats = {}
VERSION = "1.0.33"
curos = platform.system()
host = platform.node().lower()
print(host)
@@ -75,6 +76,7 @@ def uptime():
def writeLog(msg, svr="INFO"):
ts = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
if curos == "Windows":
log_path = "c:\Program Files\jaydee\jaydee.log"
else: