Compare commits

...

2 Commits

Author SHA1 Message Date
Ninluc 181009604d Removed unused print
Build, push image, and notify Watchtower / build-image (push) Successful in 59s
Build, push image, and notify Watchtower / notify (push) Successful in 12s
2026-07-27 17:31:52 +02:00
Ninluc d6290efb18 Longer timeout 2026-07-27 17:31:44 +02:00
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -57,7 +57,6 @@ def cooking_params():
initial_temp_c = float(data.get("ir_initial_temp", 20.0)) # e.g., 4.0 for fridge, -18.0 for freezer initial_temp_c = float(data.get("ir_initial_temp", 20.0)) # e.g., 4.0 for fridge, -18.0 for freezer
microwave_wattage = int(data.get("microwave_wattage", 900)) # e.g., 900W microwave_wattage = int(data.get("microwave_wattage", 900)) # e.g., 900W
defrost_mode = bool(data.get("defrost_mode", False)) # True for defrost, False for cook/reheat defrost_mode = bool(data.get("defrost_mode", False)) # True for defrost, False for cook/reheat
print("Received cooking parameters request:", data)
print("Parsed parameters - Height (cm):", height_cm, "Initial Temp (C):", initial_temp_c, "Microwave Wattage:", microwave_wattage, "Defrost Mode:", defrost_mode) print("Parsed parameters - Height (cm):", height_cm, "Initial Temp (C):", initial_temp_c, "Microwave Wattage:", microwave_wattage, "Defrost Mode:", defrost_mode)
# 1. Handle the Camera Image # 1. Handle the Camera Image
+1 -1
View File
@@ -204,7 +204,7 @@ def _cooking_worker(microwave_id: str, sensors_data: dict, cancel_event: threadi
sensors_data["camera_image"] = base64.b64encode(sensors_data["camera_image"]).decode("utf-8") sensors_data["camera_image"] = base64.b64encode(sensors_data["camera_image"]).decode("utf-8")
# 1. HTTP Request (15-second timeout) # 1. HTTP Request (15-second timeout)
response = requests.post(URL, json=sensors_data, timeout=15) response = requests.post(URL, json=sensors_data, timeout=360) # timeout for long-running requests
# Check cancellation right after network call returns # Check cancellation right after network call returns
if cancel_event.is_set(): if cancel_event.is_set():