node-red

How to change node-red page title

前提是你 提交于 2019-12-24 09:59:25
问题 How can I change node-red page title? I have seen an issue on node-red's github page about this. But I could not understand which file I need to make changes. Here is that issue on github. Same thing on node-red web site configuration section. Which file do need to change? Do I need to install a node for editing theme? 回答1: From the documentation you link to: When run as a standalone application, these properties are read from the settings.js file. The location of this file is determined in

use an external js library in a node-red function

大兔子大兔子 提交于 2019-12-23 12:57:47
问题 I've installed a js library https://www.npmjs.com/package/fft with npm, how can I make this available in node-red functions ? 回答1: This is covered Writing Functions sections of the Node-RED docs You need to add npm modules to the settings.js file. You can find this file in ~/.node-red/ The section you are looking for is the functionGlobalContext section. ... functionGlobalContext: { fft: require('fft') }, ... You would then access the module in the function node with the following: var FFT =

I can`t connect from Node-RED to Freeboard.io using JSON

£可爱£侵袭症+ 提交于 2019-12-23 04:22:39
问题 I trying to create a freeboard dashboard. I have a Arduino with four sensors that send their informations by mqtt. So, I on Node-RED I gen a JSON to response get request in /saida. [{"id":"3f699b5.c91f064","type":"http response","z":"c7d4e8c8.509218","name":"","x":1184,"y":589,"wires":[]},{"id":"a3ed6250.1d64","type":"json","z":"c7d4e8c8.509218","name":"","x":1120.5,"y":540,"wires":[["3f699b5.c91f064"]]},{"id":"971f41c1.a1265","type":"function","z":"c7d4e8c8.509218","name":"","func":"msg

Handling MQTT communication inside HTTP request in Node-Red

≡放荡痞女 提交于 2019-12-23 03:25:27
问题 In Node-Red, I would like to be able to send a message and wait for its response using MQTT, in between an HTTP input node and a response one. I think a picture is more relevant to explain this: The problem is an HTTP response node has to be directly linked to an input one somehow, so I thought of saving the whole message in context after receiving an HTTP input, then restore it before sending the response. The problem is that apparently, the structure of the message is circular, hence I can

Node-RED, IOT Foundation Out Node Not Sending Commands

放肆的年华 提交于 2019-12-21 20:34:02
问题 I have a Node-RED application that is bound to an IOT Foundation (iotf) service. I can receive events from devices and handle them appropriately. However, I am now interested in sending commands back to my devices and am having some problems. Nothing is showing up at the device, but by creating an IOTF in node, I can confirm that the command is passing through iotf. I can definitely get commands to pass through iotf using pure python, as the follow code works well: Client code: #!/usr/bin

How to embed multiple instances of node-red in node app

时光总嘲笑我的痴心妄想 提交于 2019-12-21 20:29:05
问题 Node-red documentation here gives info on how to embed a single node-red app inside a nodejs app - http://nodered.org/docs/embedding We wanted our site's users to have their own node-red's on different ports for some custom programming. Is it possible to embed multiple node-red apps in a nodejs applicaiton? I tried repeating same steps for embedding by changing settings of each call with different port but only one time it is created. First time, a node-red instance is created based on

IoTP boilerplate Node RED complains about unsupported version of Node.js

我们两清 提交于 2019-12-16 18:04:42
问题 I opened my Node RED flow editor from an existing instance of the Watson IoTP and saw a warning about unsupported version of Node.js. "Using an unsupported version of Node.js You should upgrade to the latest Node.js LTS release" How do I fix this ? 回答1: When a boilerplate application is created, it is a snapshot of the application boilerplate at that time. Unless you maintain it, nothing changes. The warning is indicating that the Node RED version itself has updated (and is now warning about

Unable to pass payload parameters to Node-RED http request

旧巷老猫 提交于 2019-12-13 16:25:05
问题 I am trying to do a simple http get request in Node-RED. According to online documentation I have to pass the parameters in a function as input for the http request node. My function looks like this; msg.url = "https://api.socialstudio.radian6.com/v3/posts" msg.method = "GET" msg.headers = {'access_token': access_token} msg.payload = { 'topics': 234243, 'limit': 100, } return msg; However when i look at the server response i get the error: ["{"error":{"message":"Missing topics parameter.",

IBM Bluemix: Device connected, but 'IBMIoT: Error: Connection refused: Not authorized' message keeps popping up

北战南征 提交于 2019-12-13 05:50:40
问题 I am experimenting with IoT services in IBM Bluemix, attending a running MOOC at Coursera. I have set up my trial account and successfully registered some devices. I am testing the connectivity between Bluemix and my Raspberry Pi with the following simple Node-RED flow in Bluemix: Node-RED flow @ Bluemix where normal and alert are simple injection nodes of the respective strings, the format message node is similarly simple (returns msg , where msg.payload = {'a' : {'indicator' : msg.payload}}

How to install node-red-admin for node-red?

天大地大妈咪最大 提交于 2019-12-13 00:16:42
问题 I am trying to install the node-red-admin package for node-red using the command: npm install -g node-red-admin to add security authentications as told in this guide. However I get a bunch of warnings and an error saying: ./../nan/nan_maybe_43_inl.h:88:15: error: no member named 'ForceSet' in 'v8::Object' Does anyone know how to solve this? EDIT : node-js version: v10.5.0 npm-version: 6.1.0 Node-RED version: v0.18.4 OS version: macOS High Sierra 10.13.5 APPENDIX The complete output is: npm