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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user