From 6a0d9eeadc11a9393a7f9144bd9ff2e01b18d9aa Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Tue, 6 Dec 2022 00:20:41 -0500 Subject: [PATCH] Formatting log & fixing dependencies --- functions.js | 13 ++++++------- package.json | 3 ++- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/functions.js b/functions.js index c273d6a..cff88cf 100644 --- a/functions.js +++ b/functions.js @@ -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 diff --git a/package.json b/package.json index e47ccd8..4ea7830 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "requires": true, "packages": {}, "dependencies": { - "dotenv": "^16.0.3" + "dotenv": "^16.0.3", + "rpi-gpio": "^2.1.7" } }