Idk
Build, push image, and notify Watchtower / build-image (push) Successful in 48s
Build, push image, and notify Watchtower / notify (push) Successful in 10s

This commit is contained in:
2026-08-25 20:01:36 +02:00
parent dd37465546
commit 49fd566457
4 changed files with 11 additions and 11 deletions
+8 -8
View File
@@ -911,15 +911,15 @@ class EdamamAPI:
""")
url = "https://api.edamam.com/api/vision/v1/nutrients"
url = "https://api.edamam.com/api/vision/v1/nutrients?app_id=09cb5bd7&app_key=8b2730f3c7f4f075cc939da3fa0c49fb&beta=true&servings=1"
# Query parameters as specified by the YAML schema
params = {
"app_id": EDAMAM_APP_ID__FOOD,
"app_key": EDAMAM_APP_KEY__FOOD,
"beta": "true" # Recommended since vision is in Beta
}
print("params:", params)
# params = {
# "app_id": EDAMAM_APP_ID__FOOD,
# "app_key": EDAMAM_APP_KEY__FOOD,
# "beta": "true" # Recommended since vision is in Beta
# }
# print("params:", params)
# Specify the media type in the header
headers = {
@@ -932,7 +932,7 @@ class EdamamAPI:
response = requests.post(
url,
params=params,
# params=params,
headers=headers,
data=raw_image_bytes
)
+1 -1
View File
@@ -480,7 +480,7 @@ async def on_new_alert(alert: Alert):
# Send the alert to the lora device
payload = payloads.lora_new_alert(alert)
print(f"[Alert Handling] Sending alert to LoRa device: {payload}")
if lora.send_reliable(payload):
if lora.send_reliable(payload, max_retries=7):
microwave_states["2"].set_cooking_state(CookingStates.ALERT)
# --- HARDWARE CONTROLLERS ---
+1 -1
View File
@@ -2,7 +2,7 @@
DEBUG=True
DEBUG_MESSAGES=True
DEBUG_DANGEROUS_AREA=False
DEBUG_TEMPERATURE_ALERT=True
DEBUG_TEMPERATURE_ALERT=False
DEBUG_SHORTER_COOKING_PLAN=True
DEBUG_DISHANALYZER=True
+1 -1
View File
@@ -81,7 +81,7 @@ class BaseLoraDevice:
return packet
def send_reliable(self, payload, max_retries=4, ack_timeout=3.0):
def send_reliable(self, payload, max_retries=5, ack_timeout=3.0):
"""Sends a payload and listens in a single continuous RX window for the ACK."""
with self.tx_lock: