UNPKG
node-red-contrib-oscar-bird-sound-classifier
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
0.0.6
0.0.5
0.0.3
0.0.2
0.0.1
Bird sound classifier service
node-red-contrib-oscar-bird-sound-classifier
/
BSC.js
9 lines
(8 loc)
•
307 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
fs =
require
(
"fs"
);
const
path =
require
(
"path"
);
module
.
exports
=
function
(
RED
) {
const
subflowFile = path.
join
(__dirname,
"subflow.json"
);
const
subflowContents = fs.
readFileSync
(subflowFile);
const
subflowJSON =
JSON
.
parse
(subflowContents);
RED
.
nodes
.
registerSubflow
(subflowJSON); }