node-red

How do I use a Watson Conversation service in Frankfurt using Node-RED or the node-sdk for Watson?

独自空忆成欢 提交于 2019-12-12 19:16:00
问题 I'm able to use the node-red-node-watson library to call an instance of Watson Conversation hosted in the US-South region of IBM Cloud. If I try it in the Germany region, it does not work. In github I spotted the following line ConversationV1.URL = 'https://gateway.watsonplatform.net/conversation/api'; which is the URL for Conversation in US-South. The URL shown in Bluemix VCAP_SERVICES for the Frankfurt instance is different: "https://gateway-fra.watsonplatform.net/conversation/api" I'm not

'require' keyword doesn't work within Node Red Function node

我怕爱的太早我们不能终老 提交于 2019-12-12 08:09:14
问题 first line in a Node red Function Node is var moment = require('moment-timezone'); ... I am trying to establish a timezone correct date/time stamp for sensor data. I get the following error when this node runs; ReferenceError: require is not defined (line 1, col 14) This function, by the way, has other JavaScript which always runs perfectly. My Package.json has no errors and I have the, "moment-timezone":"0.5.3" added. I understand from a bit or research that I need to add something to the

Fiware suitable Components

假装没事ソ 提交于 2019-12-12 07:02:20
问题 Could someone suggest me suitable components to build a full path using fiware components?In the path i would like to register mobile devices to a broker (also Node-RED for getting info from broker).Above the broker i want to have a Complex Event Processing engine for the complex events. 回答1: Mobile Devices can be registered to Orion Context Broker. https://github.com/fiware/context.Orion. You should use NGSIv2 APIs, please check http://fiwaretourguide.readthedocs.io/en/latest/development

Node-RED getting “login Failed” error in eMail node

不打扰是莪最后的温柔 提交于 2019-12-12 06:18:36
问题 I am using the email node to connect to gmail. I receive "Error - Invalid Login" on the node. In the email node, I've set the following parameters: To: email-i-want-to-email-to@anymail.com Server: smtp.gmail.com Port: 465 (which I believe is an SSL port as per the link below) UserID: gmail-account (or should this be gmail-account@gmail.com - I've tried both) Password: the password on the "gmail-account" Name: email out This conforms to what I found at the following forum, but I am getting

Node red: how to make inject fire at given seconds per minute

喜夏-厌秋 提交于 2019-12-12 05:51:30
问题 Is it possible to make an inject node that fires every 5 seconds, but not depending on deployment, instead in a fixed time grid. For example, an inject node with a 5 second interval would fire at hh:mm:08, hh:mm:13, hh:mm:18 etc. when deployed at hh:mm:03. Is there a way to delay it so that messages are sent exactly(*) at hh:mm:05, hh:mm:10, hh:mm:15 no matter in which second it was deployed? A possible solution would be to set the repeat interval to 1 second, and use a function node to only

Posting binary buffer payload using Node-RED

馋奶兔 提交于 2019-12-12 05:39:00
问题 I am trying to send a byte array through POST using Node-RED. I can successfully create the buffer using this module and storing it in msg.payload . However I can't figure out how to add it as a parameter in a http request node. The receiving application requires enclosing quotes. So I use the payload in the following url: localhost:port/path?var=\"{{payload}}\" , but it gives "Error converting http params to args: invalid character '\' looking for beginning of value" If using it in the

websockets connection does time out

≯℡__Kan透↙ 提交于 2019-12-12 05:38:28
问题 I got Problems with websockets on my Azure WebApp. I cloned Node-red from github and published it onto a brand new WebApp in Azure (using VisualStudioOnline). Than I installed all packages and build the solution using grunt. (As described here) After that I changed the settings.js and configured azure to support websockets. (as described here). But the websockets still do not work: Chrome does show the following Error: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT I can not

Node-Red: Create server and share input

情到浓时终转凉″ 提交于 2019-12-12 03:09:29
问题 I'm trying to create a new node for Node-Red. Basically it is a udp listening socket that shall be established via a config node and which shall pass all incoming messages to dedicated nodes for processing. This is the basic what I have: function udpServer(n) { RED.nodes.createNode(this, n); this.addr = n.host; this.port = n.port; var node = this; var socket = dgram.createSocket('udp4'); socket.on('listening', function () { var address = socket.address(); logInfo('UDP Server listening on ' +

Your application is staging to create bluemix node-red app

混江龙づ霸主 提交于 2019-12-12 01:26:51
问题 I am a newbie for the bluemix. I would like to start the Node red app. However the app will never be created, instead the screen always show Your application is staging. I have try this a number of times and changed the server location from UK to USA. However it never works. 回答1: it is a known issue about a node.js module not building correctly. There is already a fix about the module, we are waiting for the npm repository to be updated. https://github.com/ibmdb/node-ibm_db/pull/44/commits

display only value fields from the msg.payload in node red

白昼怎懂夜的黑 提交于 2019-12-12 00:05:30
问题 I am working on node red (SNMP). When I deploy, I have the output below: [ { "oid": "1.3.6.1.2.1.10.21.1.2.1.1.2.1.26", "type": 2, "value": 104 , "tstr": "Integer" }, { "oid": "1.3.6.1.2.1.10.21.1.2.1.1.2.2.27", "type": 2, "value": 104 , "tstr": "Integer" }, { "oid": "1.3.6.1.2.1.10.21.1.2.1.1.2.10.28", "type": 2, "value": 1 , "tstr": "Integer" }, { "oid": "1.3.6.1.2.1.10.21.1.2.1.1.2.11.29", "type": 2, "value": 1, "tstr": "Integer" }, { "oid": "1.3.6.1.2.1.10.21.1.2.1.1.2.12.30", "type": 2,