Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kp45-tech/node-red-contrib-tdengine
tdengine connector plugin for node-red
https://github.com/kp45-tech/node-red-contrib-tdengine
Last synced: 14 days ago
JSON representation
tdengine connector plugin for node-red
- Host: GitHub
- URL: https://github.com/kp45-tech/node-red-contrib-tdengine
- Owner: kp45-tech
- Created: 2021-01-14T11:28:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T07:18:35.000Z (about 1 year ago)
- Last Synced: 2024-09-07T09:11:49.958Z (2 months ago)
- Language: HTML
- Size: 3.92 MB
- Stars: 10
- Watchers: 2
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-tdengine - node-red-contrib-tdengine - TDengine connector plugin for Node-RED. (IoT)
README
This repositry create a custom Node-Red node for configing TDEngine server connection and execute SQL from preview node msg.payload
## Design
Use Taos data restful API to commit SQL, API call like
```
curl -H 'Authorization: Basic ' -d '' :/rest/sql/[db_name]
```Input options:
* DB Server: Setup server connection or select a exist server
* DB Name: Database to execute SQLUse [axios](https://axios-http.com/) to call http request
## Usage
1. Start Node-Red
2. Install TDEngine node
3. Add "taos query" node to workspace from palette
4. Setup a TDEngine server and database name
5. Add function or other node to create SQL, put SQL into msg.payload
6. Link to "taos query" node### Demo
1. Start Node-Red by docker
```
docker run -it -p 1880:1880 -v node_red_data:/data --name mynodered nodered/node-red
```
2. Import sample flow "demo/flow.json"
![import-flow](demo/ImportFlow.png)
3. Install TDEngine node by name "node-red-contrib-tdengine", current version is 0.0.2
![alt](demo/InstallTDEngineNode.png)
4. Modify your TDEngine server config
![alt](demo/ModifyServerConfig.png)
5. Edit test SQL
![alt](demo/EditTestSQL.png)
6. Start flow by click Inject node