Expanding logging
This commit is contained in:
parent
74642e8730
commit
e3250320da
5
main.js
5
main.js
@ -5,6 +5,10 @@ var dotenv = require('dotenv').config();
|
|||||||
// Module for working with files
|
// Module for working with files
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
|
// Write the current env vars to console
|
||||||
|
console.log('Environment variables:');
|
||||||
|
console.log(`ONTIME=${process.env.ONTIME}\nOFFTIME=${process.env.OFFTIME}\nPAUSETIME=${process.env.PAUSETIME}\nDEBUG=${process.env.DEBUG}`);
|
||||||
|
|
||||||
// Set up GPIO 4 (pysical pin 7) as output, then call cycleAuger()
|
// Set up GPIO 4 (pysical pin 7) as output, then call cycleAuger()
|
||||||
gpio.setup(7, gpio.DIR_OUT, cycleAuger);
|
gpio.setup(7, gpio.DIR_OUT, cycleAuger);
|
||||||
|
|
||||||
@ -63,6 +67,7 @@ async function cycleAuger(err) {
|
|||||||
console.log('Deleted reload file.');
|
console.log('Deleted reload file.');
|
||||||
});
|
});
|
||||||
console.log('Reloaded environment variables.');
|
console.log('Reloaded environment variables.');
|
||||||
|
console.log(`ONTIME=${process.env.ONTIME}\nOFFTIME=${process.env.OFFTIME}\nPAUSETIME=${process.env.PAUSETIME}\nDEBUG=${process.env.DEBUG}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for quit file existing, then delete it, then quit the program
|
// Check for quit file existing, then delete it, then quit the program
|
||||||
|
Loading…
Reference in New Issue
Block a user