node-red

Json - Node-RED Extract

北城余情 提交于 2020-01-14 05:08:07
问题 Noob looking for help... I have a JSON stream of data which looks like this.. { "header" : { "content" : "telegram", "gateway" : "EN-GW", "timestamp" : "2016-08-08T13:45:47.032+0100" }, "telegram" : { "deviceId" : "01864892", "friendlyId" : "Boardroom-CO2-Sensor", "timestamp" : "2016-08-08T13:45:47.032+0100", "direction" : "from", "functions" : [ { "key" : "humidity", "value" : 39.00, "unit" : "%" }, { "key" : "concentration", "value" : 830.00, "unit" : "ppm" } ], "telegramInfo" : { "data" :

Run two instances in Node-Red: install alternative version

大城市里の小女人 提交于 2020-01-06 05:29:08
问题 I need to run 2 instances of Node-Red on the same laptop. I found this fork: https://github.com/aryeharmon/node-red In this post the author gave some information: How to embed multiple instances of node-red in node app I don't know how to install his fork. Do i have to download and install it as i did with the classic version of Node-Red? Anything else? It's the first time i try to use a fork, thanks in advance. 回答1: You do not need to install a fork of node-red to support running multiple

Node Red not automatically loading flows

橙三吉。 提交于 2020-01-05 02:34:28
问题 I have succesfully installed nodered on my raspberry-pi.But the problem is each time i write a flow,i have to save the flow into flows_raspberrypi.json and restart nodered server. How to make it automatically save the nodes. 回答1: 2 possible things. 1) If you created there flow file by hand then you probably need to create a file called flows_raspberrypi_creds.json containing: {} 2) assuming no errors in either the flow file or the creds file then node-red will load a file based on the

How to run a command in node-red node exec to enable a script for LCD

∥☆過路亽.° 提交于 2020-01-04 06:50:23
问题 I have a script to bring a current time on LCD in Raspberry PI. LCD is connected with Raspberry PI tested working fine. I created a script name index.js inside ~/.node-red folder, and have installed LCD node module inside the same ~/.node-red folder using command : npm install lcd --save cd ~/.node-red pi@raspberrypi ~/.node-red $ sudo node index.js When I tested inside using the command it brings the time on the LCD. How to execute this index.js script in node-red node exec? I have tried but

Is there a way to prohibit Anonymous access to my NodeRed Flow Editor on Bluemix?

自闭症网瘾萝莉.ら 提交于 2020-01-03 19:12:07
问题 I've created a NodeRed app using the Starter Boilerplate on Bluemix. One thing I've noticed is that my Flow Editor is available to the public (i.e. Anonymous access can edit my nodes and deploy). How can I prevent Anonymous access to my Flow Editor on Bluemix? 回答1: If you go back to the index page for your node-red instance you should see a link under the " Go to your Node-RED flow editor " that says " Learn how to password-protect your instance " (or just scroll down the page) This will take

Is there a way to prohibit Anonymous access to my NodeRed Flow Editor on Bluemix?

。_饼干妹妹 提交于 2020-01-03 19:11:54
问题 I've created a NodeRed app using the Starter Boilerplate on Bluemix. One thing I've noticed is that my Flow Editor is available to the public (i.e. Anonymous access can edit my nodes and deploy). How can I prevent Anonymous access to my Flow Editor on Bluemix? 回答1: If you go back to the index page for your node-red instance you should see a link under the " Go to your Node-RED flow editor " that says " Learn how to password-protect your instance " (or just scroll down the page) This will take

Node-red output a message to CSV

雨燕双飞 提交于 2019-12-25 08:48:08
问题 For the past couple of days I have been trying and reading to get something very specific done in Node-Red: I want to send the (LoRa) message to a CSV. This CSV should contain the following items: topic date payload I can insert the date using a function node: var str1 = Date(); I have been playing around with CSV node, but I can't get it to output comma separated values. All this has probably to do with my lack of javascript programming skills, which is why I turn to you. Can you help me out

node-red: multi users dashboard + node-red-contrib-users

随声附和 提交于 2019-12-25 01:34:03
问题 I'm trying to use node-red to create a multi-user dashboard, the idea is that the dashboard has different session, each for a different user. A user must be identificated by the system and can't reach the dashboard resources of another user. I find the multiuser dashboard very useful to this scope, and I try to use it with node-red-contrib-user to obtain a login system that manages different types of account. I make this flow: but when I try to open the node-red-url/mui it redirect me

My Node Red dashboard disappeared, my app says “not running” but won't restart

こ雲淡風輕ζ 提交于 2019-12-24 18:40:50
问题 I am starting from the position of near absolute ignorance here. I successfully set up a Bluemix account, added devices, got API keys, connected my Raspberry Pi running Node Red and a temperature sensor to Node Red on Bluemix, created a dashboard and was able to get data back and forth between Watson/Bluemix and my Pi. Cool. Unfortunately, I got all that way without ever really understanding the navigation of Watson/Bluemix nor all the terminology. I made NR work both ways and was happy. Then

Watson IOT Out node on Raspberry Pi repeatedly disconnecting

瘦欲@ 提交于 2019-12-24 18:33:31
问题 I am using a Watson IOT Output (wiotp out) in a Node-RED flow on my Raspberry PI and am having issues with the connection repeatedly disconnecting and then re-connecting. Here is a screenshot of my Credentials Node and one of my IOT Out Node. The connection is configured so that I can send messages to the cloud and successfully have them trigger a flow in my cloud Node-RED instance. The problem I'm having is that when I attempt to send a string array as my payload, very items in the array