diff --git a/orchestrateur/main.py b/orchestrateur/main.py index b2d2790..e7b4983 100644 --- a/orchestrateur/main.py +++ b/orchestrateur/main.py @@ -689,7 +689,7 @@ async def request_cloud_cooking_plan(microwave_id, sensors_data): print(f"[{microwave_id}] Cloud Plan Received! Starting microwave: {c_time}s @ {c_power}W") microwave_states[microwave_id].set_state(MicrowaveState.COOKING) - if config.DEBUG: + if config.DEBUG_SHORTER_COOKING_PLAN: c_time = 20 # Set to 20s for debug c_temp = 50 # Set to 50°C for debug diff --git a/shared/config.py b/shared/config.py index 4e51961..49712da 100644 --- a/shared/config.py +++ b/shared/config.py @@ -1,7 +1,9 @@ # Debugging and others DEBUG=True +DEBUG_MESSAGES=True DEBUG_DANGEROUS_AREA=False DEBUG_TEMPERATURE_ALERT=False +DEBUG_SHORTER_COOKING_PLAN=True # Technitian Web Server TECHNICIAN_WEB_SERVER_HOST = "192.168.50.1" diff --git a/shared/logging.py b/shared/logging.py index f9d1d74..f29b536 100644 --- a/shared/logging.py +++ b/shared/logging.py @@ -1,6 +1,6 @@ -from shared.config import DEBUG +from shared.config import DEBUG_MESSAGES def log(message): """Log a message to the console if DEBUG is enabled.""" - if DEBUG: + if DEBUG_MESSAGES: print(f"\n{message}") \ No newline at end of file