Skip to content

Commit

Permalink
Merge pull request #96 from coronasafe/preset-query
Browse files Browse the repository at this point in the history
add a 5s delay
  • Loading branch information
mathew-alex authored Sep 7, 2023
2 parents 719d98f + 8f9e733 commit 93d6946
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/automation/autoDataExtractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ const extractData = async (camParams, monitorPreset = { x: 0, y: 0, z: 0 }) => {
console.log("Moving to coordinates: ", monitorPreset);
await CameraUtils.absoluteMove({ camParams, ...monitorPreset });

// TODO: replace timeout with a better solution
await new Promise((resolve) => setTimeout(resolve, 5000));

const snapshotUrl = await CameraUtils.getSnapshotUri({ camParams });

const fileName = "image-" + new Date().getTime() + ".jpeg";
Expand Down

0 comments on commit 93d6946

Please sign in to comment.