# iotdb_node **Repository Path**: dufzh/iotdb_node ## Basic Information - **Project Name**: iotdb_node - **Description**: node-red中的iotdb节点 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-05-14 - **Last Updated**: 2026-05-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # node-red-contrib-iotdb Node-RED nodes for Apache IoTDB ## Installation ```bash cd ~/.node-red npm install node-red-contrib-iotdb ``` Or for local development: ```bash cd /path/to/node-red-contrib-iotdb npm link cd ~/.node-red npm link node-red-contrib-iotdb ``` ## Nodes ### iotdb-config Configuration node for IoTDB server connection. **Properties:** - Host: IoTDB server host - Port: IoTDB server port (default 6667) - Username: IoTDB username - Password: IoTDB password - Timezone: Timezone ### iotdb-in Query data from IoTDB. **Query modes: - Custom SQL: Execute custom SQL query - Template: Use predefined templates **Predefined templates:** - Latest Data - Time Range Query - Latest N Records - Average - Sum - Max - Min - Count - Group By Time **Inputs:** - payload: SQL string (custom mode) or parameters object (template mode) **Outputs:** - payload: Query result array ### iotdb-out Write data to IoTDB. **Write modes:** - Single Record: Write single time-series record - Batch: Write multiple records **Input payload format (single): ```javascript { timestamp: 1600000000000, measurements: { temperature: 25.5, humidity: 60 } } ``` **Input payload format (batch): ```javascript [ { timestamp: 1600000000000, measurements: { temperature: 25.5 } }, { timestamp: 1600000001000, measurements: { temperature: 26.0 } } ] ``` ### iotdb-delete Delete data from IoTDB. **Delete modes:** - Time Range: Delete data in specified time range - Delete Device: Delete entire device - Delete Timeseries: Delete specific time series ### iotdb-batch Execute multiple SQL statements. **Input:** Array of SQL strings or semicolon-separated SQL string. **Output:** Array of execution results. ## Requirements - Node.js >= 12.x - Node-RED >= 1.x - Apache IoTDB >= 2.x