diff --git a/index.js b/index.js index 0624a2a..b17f111 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,6 @@ import * as server from './server.js'; import * as lights from './lights.js'; +import * as fs from 'fs'; const cfg = JSON.parse(fs.readFileSync('./config.json')); diff --git a/lights.js b/lights.js index 2645ae1..df3b0e0 100644 --- a/lights.js +++ b/lights.js @@ -1,6 +1,6 @@ -import ws281x from 'rpi-ws281x' -import * as fs from 'fs' -import Logger, { levels } from './logger.js' +import ws281x from 'rpi-ws281x'; +import * as fs from 'fs'; +import Logger, { levels } from './logger.js'; const cfg = JSON.parse(fs.readFileSync('./config.json')); const log = new Logger("lights", cfg.log_level ? levels[cfg.log_level] : levels.INFO);