Formatting log & fixing dependencies
This commit is contained in:
parent
4d682ae984
commit
6a0d9eeadc
13
functions.js
13
functions.js
@ -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
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user