This commit is contained in:
2025-08-26 13:38:19 +02:00
parent 8e9e915cdc
commit ba09aeb502

View File

@@ -17,11 +17,16 @@ import fnmatch
import yaml import yaml
import paramiko import paramiko
import shutil import shutil
import signal
import paho.mqtt.client as mqtt import paho.mqtt.client as mqtt
#import numpy as np #import numpy as np
def signal_handler(sig, frame):
print('You pressed Ctrl+C!')
conn.close()
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
file_path = os.path.realpath(__file__) file_path = os.path.realpath(__file__)
dir_path = os.path.dirname(file_path) dir_path = os.path.dirname(file_path)
VERSION="1.0.9" VERSION="1.0.9"