diff --git a/bindings/nodejs/nodered/hvps-nodered.js b/bindings/nodejs/nodered/hvps-nodered.js index 03fc3cb..61c9cf5 100644 --- a/bindings/nodejs/nodered/hvps-nodered.js +++ b/bindings/nodejs/nodered/hvps-nodered.js @@ -1,11 +1,12 @@ -import { ExecutionContext } from "hvps"; +hvps = require('hvps') module.exports = function (RED) { function HVPS(config) { RED.nodes.createNode(this, config); const node = this; + context = new hvps.ExecutionContext("/usr/bin/python"); node.on('input', function (msg) { - msg.payload = msg.payload.toLowerCase(); + msg.payload = context.run(msg.payload); node.send(msg); }); }