Temperature Alert
Build, push image, and notify Watchtower / build-image (push) Successful in 1m17s
Build, push image, and notify Watchtower / notify (push) Successful in 16s

This commit is contained in:
2026-08-17 13:04:35 +02:00
parent 01eccf47c6
commit 83b269cc88
7 changed files with 93 additions and 30 deletions
+5 -2
View File
@@ -20,10 +20,12 @@ class AlertManager:
self.alerts.clear()
class Alert:
def __init__(self, alertType: "AlertType", message: str):
def __init__(self, alertType: "AlertType", message: str, redistributed: bool = False, small_message: str = None):
self.alertType = alertType
self.message = message
self.small_message = small_message
self.timestamp = time.time()
self.redistributed = redistributed
def to_dict(self):
return {
@@ -44,4 +46,5 @@ class Alert:
return alert
class AlertType:
COOKING_SAFETY = "COOKING_SAFETY"
COOKING_SAFETY = "COOKING_SAFETY"
TEMPERATURE_ALERT = "TEMPERATURE_ALERT"