fix seconds

Took 3 minutes
This commit is contained in:
Tobias Hopp 2022-11-28 11:27:57 +01:00
parent 85ea181daf
commit a84857a010
3 changed files with 5 additions and 3687 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@
/.idea/
/node_modules
/public/images/
/config.json
/config.json
/yarn-error.log

View File

@ -27,6 +27,7 @@ const log = debug("itender:station");
const mixLog = debug("itender:mix");
export class iTender {
private static secondsPer100ml: number = 10;
static get drinks(): IDrink[] {
return this._drinks;
@ -110,7 +111,7 @@ export class iTender {
return;
}
x.container = c;
let estimated = Settings.get("secondsPer100ml") as number / 100 * x.amount;
let estimated = iTender.secondsPer100ml / 100 * x.amount;
if (job.estimatedTime < estimated)
job.estimatedTime = estimated;
@ -153,7 +154,7 @@ export class iTender {
}
let waitTime = (Settings.get("secondsPer100ml") as number) / 100 * x.amount * 1000;
let waitTime = (iTender.secondsPer100ml as number) / 100 * x.amount * 1000;
mixLog(`Starting output of pump ${x.container.pumpPin}`);
//mixLog(x.ingredient + " takes " + (waitTime / 1000) + "s for " + x.amount + "ml");
let timer = setTimeout(async () => {

File diff suppressed because it is too large Load Diff