From 1dfa09f0787893290c68a71c4b2f683ce4246f2c Mon Sep 17 00:00:00 2001 From: khavinshankar Date: Thu, 7 Sep 2023 14:53:41 +0530 Subject: [PATCH] debug --- src/automation/helper/getMonitorCoordinates.js | 2 +- src/controller/ObservationController.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/automation/helper/getMonitorCoordinates.js b/src/automation/helper/getMonitorCoordinates.js index 8eb7740..6a53c44 100644 --- a/src/automation/helper/getMonitorCoordinates.js +++ b/src/automation/helper/getMonitorCoordinates.js @@ -27,7 +27,7 @@ export const getMonitorCoordinates = async (bedId) => { zoom: preset.zoom, }; } catch (err) { - console.log(err?.response?.data); + console.log(err); return { x: 0, diff --git a/src/controller/ObservationController.js b/src/controller/ObservationController.js index 908b769..71f6c38 100644 --- a/src/controller/ObservationController.js +++ b/src/controller/ObservationController.js @@ -290,7 +290,9 @@ const updateObservationsToCare = async () => { payload.rounds_type = "AUTOMATED"; try { - const { camera } = await getBedById(bed_id); + const { camera, monitorPreset } = await getBedById(bed_id); + console.log(bed_id, camera, monitorPreset); + const cameraParams = { hostname: camera.ipAddress,