Better logging

This commit is contained in:
Skylar Grant 2024-11-24 18:18:03 -05:00
parent ee70f34179
commit e5ba2e52e5

View File

@ -7,14 +7,17 @@ const { State } = require('../custom_modules/HestiaClasses.js');
// Variables
process.pinMap = new Map();
fn.log('Initializing pinMap');
for (const pin of config.pins) {
process.pinMap.set(pin.key, pin);
}
// Initialize state
fn.log('Initializing state');
process.psState = new State(config);
// Auger Loop
fn.log('Starting auger loop');
setInterval(fn.routines.cycleAuger, 2000);
fn.log('Setting exhaust to low to keep NC relay closed and fan running');