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

View File

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