An open API service indexing awesome lists of open source software.

https://github.com/wago-uk/node-red-csv-parser

Simple Node-RED dashboard for uploading CSV files
https://github.com/wago-uk/node-red-csv-parser

csv modbus nodered wago

Last synced: 26 days ago
JSON representation

Simple Node-RED dashboard for uploading CSV files

Awesome Lists containing this project

README

          

# node-red-csv-parser
Simple Node-RED flow for uploading/deleting CSV files from dashboard and converting it to JSON objects.

# Requirements
Node-RED >= v3.0
Palletes:
- node-red-contrib-dashboard [LINK](https://flows.nodered.org/node/node-red-dashboard)

# Description

Simple flow for reading and saving files into preselected directory.
Files are read and content is displayed in a template node.

Dashboard gives an option to 'activate' detected datapoints, which means to save them into 'datapoints' object -
a global variable.

This parser has been used to read CSV files generated by WAGO EDM software to then read listed MODBUS registers.

# Instructions
- Flow is preset to save files into './files' directory (directory is created if it doesn't exist)
- Flow is preset to accept '.csv' files only
- Template node is preset to display elements of detected objects:
- ID
- Name
- Description
- Unit
- Datatype
- Address
- FC

>

As mentioned, this parser has been used to read a list of MODBUS registers, but if intended use is different, simply just change column titles and element references inside template node.

# Screenshots
![csv-parser screenshot](/src/csv-parser.png)

# Links
Flow uses 'File upload and delete in Dashboard' example, shared by [@natcl](https://github.com/natcl)
- [Github Link](https://gist.github.com/natcl/5805a1141b1212d2c55c1781b9dbd15b)
- [Node-RED Flows Link](https://flows.nodered.org/flow/5805a1141b1212d2c55c1781b9dbd15b)