Formatting log & fixing dependencies

This commit is contained in:
Skylar Grant 2022-12-06 00:20:41 -05:00
parent 4d682ae984
commit 6a0d9eeadc
2 changed files with 8 additions and 8 deletions

View File

@ -165,13 +165,12 @@ const functions = {
init(gpio) { init(gpio) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
// Write the current env vars to console // Write the current env vars to console
console.log(`Environment variables:\n console.log(`Environment variables:
ONTIME=${process.env.ONTIME}\n ONTIME=${process.env.ONTIME}
OFFTIME=${process.env.OFFTIME}\n OFFTIME=${process.env.OFFTIME}
PAUSETIME=${process.env.PAUSETIME}\n PAUSETIME=${process.env.PAUSETIME}
DEBUG=${process.env.DEBUG}\n DEBUG=${process.env.DEBUG}
ONPI=${process.env.ONPI} ONPI=${process.env.ONPI}`);
`);
// Set up GPIO 4 (pysical pin 7) as output, then call functions.auger.ready() // Set up GPIO 4 (pysical pin 7) as output, then call functions.auger.ready()
if (process.env.ONPI == 'true') { if (process.env.ONPI == 'true') {
// Init the Auger pin // Init the Auger pin

View File

@ -4,6 +4,7 @@
"requires": true, "requires": true,
"packages": {}, "packages": {},
"dependencies": { "dependencies": {
"dotenv": "^16.0.3" "dotenv": "^16.0.3",
"rpi-gpio": "^2.1.7"
} }
} }