Introduction to DataEase
DataEase is an open-source data visualization and analysis tool that provides a drag-and-drop interface, allowing users to easily create charts and dashboards. It supports multiple data sources such as MySQL, SQL Server, Hive, ClickHouse, and DM, and can be integrated into other applications. This tool helps users quickly gain insights from their data and make informed decisions. For more detailed information, please refer to DataEase official website
Introduction to the DataEase-IoTDB Connector
IoTDB can be efficiently integrated with DataEase through API data sources, and IoTDB data can be accessed through the Session interface using API data source plugins. This plugin supports customized data processing functions, providing users with greater flexibility and more diverse data operation options.
| Preparation Content | Version Requirements |
|---|---|
| IoTDB | Version not required, please refer to Deployment Guidance |
| JDK | Requires JDK 11 or higher (JDK 17 or above is recommended for optimal performance) |
| DataEase | Requires v1 series v1.18 version, please refer to the official DataEase Installation Guide(V2.x is currently not supported. For integration with other versions, please contact Timecho) |
| DataEase-IoTDB Connector | Please contact Timecho for assistance |
Step 1: Please contact Timecho to obtain the file and unzip the installation package iotdb-api-source-1.0.0.zip
Step 2: After extracting the files, modify the application.properties configuration file in the config folder
server.port can be modified as needed.iotdb.nodeUrls should be configured with the address and port of the IoTDB instance to be connected.iotdb.user should be set to the IoTDB username.iotdb.password should be set to the IoTDB password.# Port on which the IoTDB API Source listens server.port=8097 # IoTDB instance addresses, multiple nodeUrls separated by ; iotdb.nodeUrls=127.0.0.1:6667 # IoTDB username iotdb.user=root # IoTDB password iotdb.password=root
Step 3: Start up DataEase-IoTDB Connector
./sbin/start.sh
./sbin/start.sh -d
Step 4: After startup, you can check whether the startup was successful through the log.
lsof -i:8097 // The port configured in the file where the IoTDB API Source listens
http://[target server IP address]:80http://[IoTDB API Source]:[port]/getData>. If operating on the local machine and using the default port, the address should be set to http://127.0.0.1:8097/getData.In the “Request parameters”-“Request Body” configuration, set the format as “JSON”. Please fill in the parameters according to the following example:
{ "timeseries": "root.ln.wf03.wt03.speed", "limit": 1000 }
time, rownumber and value as shown in the interface below. The date type for each field also need to be specified. After completing the settings, click the “Save” button in the bottom.rowNum) and convert them to dimensions.Configure update frequency: Click on “Add Task” under “Update info” tag and set the following information:
Task Name: Define the task name
Update method: Select “Full update”
Execution frequency: Set according to the actual situation. Considering the data retrieval speed of DataEase, it is recommended to set the update frequency to more than 5 seconds. For example, to set the update frequency to every 5 seconds, select “Expression setting” and configure the cron expression as 0/5****?*. Click on “Confirm” to save the settings.
rowNum field to the category axis (usually the X-axis) and the value field to the value axis (usually the Y-axis).Since DataEase may cause the API data, originally returned in ascending order, to become disordered after automatically updating the dataset, it is necessary to manually specify the sorting order in the chart configuration.