test(ocp): working on more migrations

This commit is contained in:
2025-04-04 17:13:15 -05:00
parent a7818b4ca3
commit 9f26f2334f
8 changed files with 224 additions and 16 deletions

View File

@@ -0,0 +1,20 @@
import { getPrinters } from "./getPrinters.js";
export const printerCycle = async () => {
/**
* We will cycle through the printers to check there states.
*/
let printers = await getPrinters();
/**
* if the last timeprinted would be greater than x well just change the status to idle and extended based on the 2 times.
*
* to get a printer going again label will need to come from the front end as that will just unpause the printer and start the labeling, or the api for manual print
* well need to adjust this to actually print the label then unpause it.
*
* it will be
*
* less than x since time printed run the printer status
* greater than x but less than y change the status to idle, but ping to make sure its online,
* if greater than y change to extended idle but stil also ping to make sure its online.
*/
};