Compare commits
1 commit
5c3d1f0def
...
5e1c369c34
Author | SHA1 | Date | |
---|---|---|---|
5e1c369c34 |
2 changed files with 4 additions and 3 deletions
1
index.js
1
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'));
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue