No video

Saving your context data in Node-Red

  Рет қаралды 7,850

Csongor Varga

Csongor Varga

Күн бұрын

This is a very useful, addition to Node-Red (probably already about 6 months old) that you can define multiple storage option for context data, once could be filesystem storage. Node-Red will save your context data for you and make is available after Node-Red restarts. Without any additional coding.
nodered.org/do...

Пікірлер: 25
@astrogerard
@astrogerard 3 жыл бұрын
Thanks for the useful info and good to see I'm not the only one using the mc-editor.
@soovui
@soovui 3 жыл бұрын
U r more than superb bro... Thank you so much for sharing another fantastic knowledge... Really learn so much from u... Can't wait to see another innovative and creative nodered details tutorials... Stay healthy and happy always...
@hsmptg
@hsmptg 3 жыл бұрын
Spooky! Yesterday I was seeing your other method to save global variables in a file and some hours later you came with this!?! Are you entering my PC??? Congratulations for your videos!
@csongorvarga
@csongorvarga 3 жыл бұрын
Time flies and Node-Red is getting better :)
@rosaldanha
@rosaldanha 2 жыл бұрын
Very well explained and very useful, thanks!!
@kobedde
@kobedde 2 жыл бұрын
Thanks for this very useful video. Just what I needed 👍
@csongorvarga
@csongorvarga 2 жыл бұрын
This is a very old video. Now there is a filesystem storage option which takes care of this.
@kobedde
@kobedde 2 жыл бұрын
@@csongorvarga Hi, thanks for your reply. Is there an instruction video on that?
@csongorvarga
@csongorvarga 2 жыл бұрын
@@kobedde There is this article on this which explains it very well: nodered.org/docs/user-guide/context
@weatecnologia8858
@weatecnologia8858 3 жыл бұрын
I consider your videos to be among the best on KZfaq. Can you do one explaining how to calculate hourly average sensor data?
@csongorvarga
@csongorvarga 2 жыл бұрын
I used to create a function node and some javacript code for that, but you can use the smooth node to calculate a rolling average of the last n data. So if your data comes every minute, just set it to last 60 messages.
@thierry3610
@thierry3610 3 жыл бұрын
Informative content as usual. Thank you
@dano4700
@dano4700 3 жыл бұрын
Great info. Please keep doing these. Cheers 👍🇦🇺
@jdabramson
@jdabramson 3 жыл бұрын
Thank you for the video
@sidharthbajaj9237
@sidharthbajaj9237 3 жыл бұрын
Hi, Thanks for the videos Can you kindly show how to show the current variable values below the function node in the flow as shown in your video
@csongorvarga
@csongorvarga 3 жыл бұрын
Check this article, it explains it all: nodered.org/docs/creating-nodes/status
@sidharthbajaj9237
@sidharthbajaj9237 3 жыл бұрын
@@csongorvarga thank you for the quick answer :) However, my MQTT nodes are showing the status but the function nodes do not display the current variable values I guess I am doing something wrong. Kindly guide me
@csongorvarga
@csongorvarga 3 жыл бұрын
@@sidharthbajaj9237 What did you do? What code did you put in? You need to add that this.node = {....} line in your function code to do that.
@sidharthbajaj9237
@sidharthbajaj9237 3 жыл бұрын
@@csongorvarga thanks it worked :)
@giulianobardecio7248
@giulianobardecio7248 Жыл бұрын
I have set up node-red in a heroku server is it possible to store this variable in localfilesystem? Using part of the code you writed for the access managment system I have not configured what you show here specifying localfilesystem but it seems to be working anyway. Also currently I'm changing values from UI dashboard but what if I want to change the context data manually or add new objects like Users ? How could I do this?
@csongorvarga
@csongorvarga Жыл бұрын
A lot of time has passed since this video, and Node-Red implemented this standard. Please look at this: nodered.org/docs/user-guide/context. You can add filesystem as a storage option in the settings.js and from that point you can set the context to be stored in the file system. And Node-Red does it automatically. I don't understand your question on new object. What are you trying to do?
@giulianobardecio7248
@giulianobardecio7248 Жыл бұрын
Yes I added that line to store on local storage by default and it says that the variables are being stored there but it gets lost after some time, may be it’s related to the server being deployed on heroku?
@csongorvarga
@csongorvarga Жыл бұрын
@@giulianobardecio7248 well, that is strange. I have no issues...
@giulianobardecio7248
@giulianobardecio7248 Жыл бұрын
Have you ever tried deploying on heroku? or what do you use to host the server?
@csongorvarga
@csongorvarga Жыл бұрын
@@giulianobardecio7248 I have my own server, I am not hosting it on anything. Maybe node red does not have access to write to the filesystem.
How to use context storage in Node-RED to save data
13:07
Opto Video
Рет қаралды 26 М.
How to Store Data In Node Red Variables
12:23
Steve Cope
Рет қаралды 84 М.
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 79 МЛН
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 20 МЛН
Can This Bubble Save My Life? 😱
00:55
Topper Guild
Рет қаралды 82 МЛН
123 GO! Houseによる偽の舌ドッキリ 😂👅
00:20
123 GO! HOUSE Japanese
Рет қаралды 6 МЛН
How to Debug Node-red Flows and the Flow Debugger
11:01
Steve Cope
Рет қаралды 12 М.
are we seriously STILL talking about this?
10:00
Low Level Learning
Рет қаралды 10 М.
Raspberry Pi IoT Server Tutorial: InfluxDB, MQTT, Grafana, Node-RED & Docker
12:32
Learn Embedded Systems
Рет қаралды 219 М.
Browsing files in dashboard
14:13
Csongor Varga
Рет қаралды 15 М.
AMD Ryzen 7 9700X vs. 7700X: 40+ Game Benchmark [23H2 vs. 24H2]
26:24
Hardware Unboxed
Рет қаралды 126 М.
Auto Logger - Store Node-Red data in daily CSV files
11:45
Csongor Varga
Рет қаралды 54 М.
Intro to JSON for Node-RED
12:58
Opto Video
Рет қаралды 50 М.
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 79 МЛН