mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-07-01 15:48:33 +02:00
build
This commit is contained in:
@ -20,8 +20,8 @@ import numpy as np
|
||||
file_path = os.path.realpath(__file__)
|
||||
dir_path = os.path.dirname(file_path)
|
||||
VERSION="1.0.2"
|
||||
print(file_path)
|
||||
print(dir_path)
|
||||
# print(file_path)
|
||||
# print(dir_path)
|
||||
os.chdir(dir_path)
|
||||
from wakeonlan import send_magic_packet
|
||||
pid = os.getpid()
|
||||
@ -54,8 +54,6 @@ while not conn:
|
||||
try:
|
||||
s.connect(('192.168.77.1', 1))
|
||||
IP = s.getsockname()[0]
|
||||
print(IP)
|
||||
print(output)
|
||||
conn = True
|
||||
except:
|
||||
time.sleep(5)
|
||||
@ -65,7 +63,6 @@ port = 1883
|
||||
topic_sum = "sectorq/amd/backups"
|
||||
mqtt_username = 'jaydee'
|
||||
mqtt_password = 'jaydee1'
|
||||
print("1")
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], "hTamftDr:bd:sSOl:", ["command=", "help", "output="])
|
||||
except getopt.GetoptError as err:
|
||||
@ -125,7 +122,6 @@ else:
|
||||
logging.info("script started")
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
print("2")
|
||||
client_id = "dasdasdasd333"
|
||||
try:
|
||||
client = mqtt_client.Client(mqtt_client.CallbackAPIVersion.VERSION1, client_id)
|
||||
|
Reference in New Issue
Block a user