Saving your context data in Node-Red

  Рет қаралды 8,020

Csongor Varga

Csongor Varga

Күн бұрын

Пікірлер
@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...
@astrogerard
@astrogerard 3 жыл бұрын
Thanks for the useful info and good to see I'm not the only one using the mc-editor.
@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 :)
@weatecnologia8858
@weatecnologia8858 3 жыл бұрын
I consider your videos to be among the best on KZbin. Can you do one explaining how to calculate hourly average sensor data?
@csongorvarga
@csongorvarga 3 жыл бұрын
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.
@rosaldanha
@rosaldanha 3 жыл бұрын
Very well explained and very useful, thanks!!
@thierry3610
@thierry3610 3 жыл бұрын
Informative content as usual. Thank you
@dano4700
@dano4700 3 жыл бұрын
Great info. Please keep doing these. Cheers 👍🇦🇺
@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
@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 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
@@giulianobardecio7248 well, that is strange. I have no issues...
@giulianobardecio7248
@giulianobardecio7248 2 жыл бұрын
Have you ever tried deploying on heroku? or what do you use to host the server?
@csongorvarga
@csongorvarga 2 жыл бұрын
@@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.
@jdabramson
@jdabramson 3 жыл бұрын
Thank you for the video
How to use the Context storage in Node-Red
40:20
Csongor Varga
Рет қаралды 4,2 М.
How to use context storage in Node-RED to save data
13:07
Opto Video
Рет қаралды 29 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Storing data into variables | Node-RED Essentials | Tutorial
13:20
Let's Automate
Рет қаралды 9 М.
Auto Logger - Store Node-Red data in daily CSV files
11:45
Csongor Varga
Рет қаралды 57 М.
Node-Red Context and Persisting Data
4:13
FreeWave Technologies
Рет қаралды 10 М.
How to Store Data In Node Red Variables
12:23
Steve Cope
Рет қаралды 84 М.
Global Context Variable | Node Red
4:11
The Defeated Engineer
Рет қаралды 35 М.
Node-Red Variables (Context data)- Part 2
11:28
Steve Cope
Рет қаралды 7 М.
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 66 М.
Raspberry Pi IoT Server Tutorial: InfluxDB, MQTT, Grafana, Node-RED & Docker
12:32
Learn Embedded Systems
Рет қаралды 245 М.
Postgres in NodeRED
34:49
NotEnoughTECH
Рет қаралды 11 М.
Browsing files in dashboard
14:13
Csongor Varga
Рет қаралды 15 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН