Read and Write Data To a File In Node-Red

preview_player
Показать описание
In this video tutorial we look at using the file input and output nodes to read and write data from and to a file. We look at writing text,JSON and CSV formatted data and how to set the file name using a function node.

Flow used in Video

Related videos and tutorials

Node-Red -Guide to Using The CSV Node
-----------
How to Copy Nodes and Flows in Node-Red
---------
The Node-Red Message Object for Beginners
------------
Create a Node Red Basic Flow - MQTT Subscribe Example
---------------------------------
Have a question Use the comments or if you want help then use
If you find these videos useful then you might want to consider buying me a coffee
Рекомендации по теме
Комментарии
Автор

Thanks you Steve for such great content, so useful right now for me. learning mqtt, node red, and dabbling with some java script(which I don't know syntax for, im more fluent in python or C+) is alot to take in at one time, your channels have me on the fast track ;) thanks again man.

FisVii
Автор

awesome...I love your tutorials. Excelent explaination, easy to follow. Exactly what I need. Please continue with these videos. Thanks

uweri_
Автор

Thanks man, when after watch your lecture, I can read my local files, Thanks!

DayMoon
Автор

Steve, do you know how to continuously monitor a directory for the newest file & import this into Node-RED utilizing the 'Read File' or alternative nodes? Note that the file names are not constant.

gettmad_
Автор

Your explanations are excellent. thank you

kalvinreier
Автор

very easy to understand ... great video

rogeriotalmeida
Автор

I need to append daily data in a file called "day".csv (01.csv, 02.csv... 29.csv, 30.csv, 31.csv) and overwrite them in the next month. In other words, keep those files as backup as much as 30 days. Is there an easy way to automatize this?

jlnolmo
Автор

Many thanks. In excel, How do I convert the CSV timestamp to something "human redeable"? I tried with format cell but didn't work.

Amalokch
Автор

Hello Sir,
You are doing a great job. i am a beginner in node red and use node red in connection with a siemens plc. it works well but I don't know how I can display a text message on the dashboard and put it away again by setting a boolean. can you maybe help me further?

SK-dpzm
Автор

hi Steve, how do I write to a usb pen drive? I try to specify the full path but does not work, i.e "/media/pi/Flashdrive name"/

Thanks,

kenkoknz
Автор

Steve! Thanks for this brilliant tutorial again! Well explained. I try to achieve something. I have multiple sensors so many data coming in and I log those sensor values into a CSV file. Is there a way to use a CSV file and tel node-red to open an additional sheet for a certain data? Since I have to save my different application values into a single CSV file. Would be nice to use the same file but under different sheets. Hope it makes sense. If this possible please let me know. Thanks.

pistifesus
Автор

Thanks for this. Could this be used instead of sql and log sensor data like temp and humidity. From what I under stand from the video it can but just checking

nigelholland
Автор

Another quick question Steve. Do you have any video showing how to save a payload array into an Excel spreadsheet? I am trying to save the lines I receive on the payload in a spreadsheet in a tabular format, using column titles as well. Cheers.

rogeriotalmeida
Автор

Great tutorial as always, I have a request, can you add a video to explain how to send node properties from the user Dashboard. Like file name, path. I'm collecting data using modbus but I don't know how to change COM port properties using user interface (Baud rate, Parity, ...). Thanks

ahmedjoo
Автор

I want to read my text file once. For example if i restart my Node-Red or Deploy some changes. It should not read it on every trigger. Any help?

CoolDude-vcfl
Автор

Hey Hi, I need to install the file node can u send me to the link

nareshchiku
Автор

Is it possible to convert input csv file to json file output file ?

gowthamvel
Автор

Thanks for a great tutorial answers some questions that have bothered me for some time, only problem is I am getting an error message "ReferenceError: date is not defined (line 1, col 13)" can you throw some light on this please.

davidbarradine
Автор

i am trying to use node red to create an excel sheet but it always stores the last value only . do you know around that ? . i am using the excel node

kamalelsadek
Автор

can we fill filename in file in node with a path stored in variable node-red? if no how can we read a file with path dynamic ?

arabbatehafsa