feat(labelratio): new feature to monitor label ratio from auto and manual

this was designed more for dayton but could be used for all plants
This commit is contained in:
2025-07-14 10:18:23 -05:00
parent d6232cb358
commit 41308788fd
8 changed files with 156 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import { unPausePrinter } from "../../utils/unpausePrinter.js";
import { labelingProcess } from "../labeling/labelProcess.js";
import { timeZoneFix } from "../../../../globalUtils/timeZoneFix.js";
import { autoLabelCreated } from "../labeling/labelRatio.js";
let logLevel: string = process.env.LOG_LEVEL || "info";
let errorCheck = false;
@@ -132,6 +133,7 @@ export const printerStatus = async (p: any) => {
// sending over for labeling.
labelingProcess({ printer: p });
autoLabelCreated();
} else if (tmp[2] === "0") {
// printer was unpaused for the first time or made it here
createLog(
@@ -146,6 +148,7 @@ export const printerStatus = async (p: any) => {
// sending over for labeling.
labelingProcess({ printer: p });
autoLabelCreated();
} else if (tmp[2] === "1") {
// printer is paused and waiting
createLog(