Compare commits

..

1 commit

Author SHA1 Message Date
5e1c369c34 fix import error 2021-05-26 18:30:39 -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 * from 'fs'; import * as fs 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);