|
|
@@ -120,11 +120,11 @@ def get_status(location: Locations):
|
|
|
response = requests.get(
|
|
|
f"{printer_url}/status",
|
|
|
headers={"Authorization": f"Bearer PRINTER123cerveza@"},
|
|
|
- timeout=5
|
|
|
+ timeout=10
|
|
|
)
|
|
|
|
|
|
data = response.json()
|
|
|
- status = data.get("printed_connected", False)
|
|
|
+ status = data.get("printer_connected", False)
|
|
|
|
|
|
logger.info(f"Printer service status: {'online' if status else 'offline'}")
|
|
|
|
|
|
@@ -140,4 +140,5 @@ def get_status(location: Locations):
|
|
|
error_msg = f"Unexpected error checking printer status: {e}"
|
|
|
logger.error(error_msg)
|
|
|
|
|
|
- return False
|
|
|
+ return False
|
|
|
+
|