Compare commits

..

1 commit

Author SHA1 Message Date
5c3d1f0def fix import error 2021-05-26 18:29:50 -04:00
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
import * as server from './server.js'; import * as server from './server.js';
import * as lights from './lights.js'; import * as lights from './lights.js';
import * as fs from 'fs'; import * from 'fs';
const cfg = JSON.parse(fs.readFileSync('./config.json')); const cfg = JSON.parse(fs.readFileSync('./config.json'));

View file

@ -1,6 +1,6 @@
import ws281x from 'rpi-ws281x'; import ws281x from 'rpi-ws281x'
import * as fs from 'fs'; import * as fs from 'fs'
import Logger, { levels } from './logger.js'; import Logger, { levels } from './logger.js'
const cfg = JSON.parse(fs.readFileSync('./config.json')); const cfg = JSON.parse(fs.readFileSync('./config.json'));
const log = new Logger("lights", cfg.log_level ? levels[cfg.log_level] : levels.INFO); const log = new Logger("lights", cfg.log_level ? levels[cfg.log_level] : levels.INFO);