Finished a first version with basic outputs

This commit is contained in:
2024-02-25 11:53:48 +01:00
parent 6ef8fee79a
commit 377f339e57
11 changed files with 67 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
import paho.mqtt.client as mqtt
from alert import Alert
#alerts : Alert = [Alert("JUST A TEST1"),Alert("JUST A TEST2")]
alerts : Alert = []
client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2)
client.connect("192.168.178.36",1884,keepalive=60)
client.publish("watchdog/alerts/status","Watchdog-Alerts starting up...")