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...
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!
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.
@@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
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?
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?
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?
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...
Thanks for the useful info and good to see I'm not the only one using the mc-editor.
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!
Time flies and Node-Red is getting better :)
I consider your videos to be among the best on TH-cam. Can you do one explaining how to calculate hourly average sensor data?
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.
Very well explained and very useful, thanks!!
Informative content as usual. Thank you
Great info. Please keep doing these.
Cheers 👍🇦🇺
Thanks for this very useful video. Just what I needed 👍
This is a very old video. Now there is a filesystem storage option which takes care of this.
@@csongorvarga Hi, thanks for your reply. Is there an instruction video on that?
@@kobedde There is this article on this which explains it very well: nodered.org/docs/user-guide/context
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
Check this article, it explains it all: nodered.org/docs/creating-nodes/status
@@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
@@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.
@@csongorvarga thanks it worked :)
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?
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?
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?
@@giulianobardecio7248 well, that is strange. I have no issues...
Have you ever tried deploying on heroku? or what do you use to host the server?
@@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.
Thank you for the video