UNPKG

@racksync/node-red-contrib-low-pass-filter

Version:

Manipulate data from noise and handle payload as stable as you can with low pass filter.

9 lines (8 loc) 315 B
const fs = require("fs"); const path = require("path"); module.exports = function(RED) { const subflowFile = path.join(__dirname,"low-pass-filter.json"); const subflowContents = fs.readFileSync(subflowFile); const subflowJSON = JSON.parse(subflowContents); RED.nodes.registerSubflow(subflowJSON); }