Difference between revisions of "Template:Networking rutos Thingsboard.io"
(9 intermediate revisions by 2 users not shown) | |||
Line 16: | Line 16: | ||
<li> Click marked "<b>+</b>" buttons to add new device to the group.</li> | <li> Click marked "<b>+</b>" buttons to add new device to the group.</li> | ||
</ol> | </ol> | ||
− | [[File: | + | [[File:1.png]] |
Line 23: | Line 23: | ||
<li> Configure your device's <b>Label</b> (Optional)</li> | <li> Configure your device's <b>Label</b> (Optional)</li> | ||
</ol> | </ol> | ||
− | [[File: | + | [[ File:2.png ]] |
Line 34: | Line 34: | ||
<li> Click <b>Add</b> button to save changes. </li> | <li> Click <b>Add</b> button to save changes. </li> | ||
</ol> | </ol> | ||
− | [[File: | + | [[File:3.png|border|class=tlt-border]] |
=== Credentials type: MQTT Basic === | === Credentials type: MQTT Basic === | ||
Line 45: | Line 45: | ||
<li> Click <b>Add</b> button to save changes. </li> | <li> Click <b>Add</b> button to save changes. </li> | ||
</ol> | </ol> | ||
− | [[File: | + | [[File:4.png]] |
==Preparing data source== | ==Preparing data source== | ||
Line 56: | Line 56: | ||
2. Go to <b>Services → Modbus TCP Server</b> page.<br> | 2. Go to <b>Services → Modbus TCP Server</b> page.<br> | ||
3. Enable <b>Modbus TCP Server</b>.<br> | 3. Enable <b>Modbus TCP Server</b>.<br> | ||
− | [[File: | + | [[File:6.png]] |
4. Go to <b>Modbus TCP Client</b> page and add new Server device.<br> | 4. Go to <b>Modbus TCP Client</b> page and add new Server device.<br> | ||
− | [[File: | + | [[File:7.png]] |
5. Configure <b>Modbus TCP master's Server device</b> as shown below to return device's uptime value.<br> | 5. Configure <b>Modbus TCP master's Server device</b> as shown below to return device's uptime value.<br> | ||
− | [[File: | + | [[File:8.png|border|class=tlt-border|1152x525px]] |
− | |||
[[File:9.png|border|class=tlt-border|1152x525px]] | [[File:9.png|border|class=tlt-border|1152x525px]] | ||
Line 70: | Line 69: | ||
[[File:10.png]] | [[File:10.png]] | ||
− | + | [[FFile:10.png ]] | |
− | + | [[File:11.png]] | |
− | [[File: | + | [[File:12.png]] |
− | |||
− | |||
− | [[File: | ||
<ol> | <ol> | ||
<li> Set name for the <b>Data sender</b>.</li> | <li> Set name for the <b>Data sender</b>.</li> | ||
+ | <li> Set desirable name for your data variable. Make sure that your chosen parameter is shown below JSON format field.</li> | ||
<li> Paste connection string with your own <b>Access token</b>.</li> | <li> Paste connection string with your own <b>Access token</b>.</li> | ||
<pre>https://thingsboard.cloud/api/v1/YOUR_ACCESS_TOKEN/telemetry</pre> | <pre>https://thingsboard.cloud/api/v1/YOUR_ACCESS_TOKEN/telemetry</pre> | ||
Line 88: | Line 85: | ||
[[File:13.png]] | [[File:13.png]] | ||
− | |||
[[File:14.png]] | [[File:14.png]] | ||
− | + | [[File:15.png ]] | |
− | [[File: | ||
<ol> | <ol> | ||
+ | <li> Set name for the <b>Data sender</b>.</li> | ||
<li> Choose <b>MQTT</b> protocol.</li> | <li> Choose <b>MQTT</b> protocol.</li> | ||
+ | <li> Set desirable name for your data variable. Make sure that your chosen parameter is shown below JSON format field.</li> | ||
<li> Enter <b>thingsboard.cloud</b> as a host.</li> | <li> Enter <b>thingsboard.cloud</b> as a host.</li> | ||
<li> Paste in MQTT topic. </li> | <li> Paste in MQTT topic. </li> | ||
Line 106: | Line 103: | ||
<li> From the pop-up menu select <b>Latest telemetry </b> option. There you should see collected data.</li> | <li> From the pop-up menu select <b>Latest telemetry </b> option. There you should see collected data.</li> | ||
</ol> | </ol> | ||
− | [[File: | + | [[File:Latest telemetry.png]] |
Line 115: | Line 112: | ||
<li> Press <b>Show on widget </b> button.</li> | <li> Press <b>Show on widget </b> button.</li> | ||
</ol> | </ol> | ||
− | [[File: | + | [[File:Show on widget.png]] |
<ol> | <ol> | ||
<li> Choose bundle accordingly to your data.</li> | <li> Choose bundle accordingly to your data.</li> | ||
Line 121: | Line 118: | ||
<li> Add widget to dashboard.</li> | <li> Add widget to dashboard.</li> | ||
</ol> | </ol> | ||
− | [[File: | + | [[File:Add widget to dashboard..png]] |
<ol> | <ol> | ||
<li> Create new dashboard. </li> | <li> Create new dashboard. </li> | ||
Line 127: | Line 124: | ||
<li> Adds widget to dashboard.</li> | <li> Adds widget to dashboard.</li> | ||
</ol> | </ol> | ||
− | [[File: | + | [[File:Dashbord.png]] |
Revision as of 15:40, 5 September 2023
The information on this page is updated in accordance with the 00.07.4 firmware version .
Introduction
This article contains instructions on how to configure ThingsBoard IoT platform and connect Teltonika-Networks devices. ThingsBoard IoT platform is an open-source IoT platform for data collection, processing, visualization, and device management. It enables device connectivity via industry standard IoT protocols - MQTT, CoAP and HTTP and supports both cloud and on-premises deployments. ThingsBoard combines scalability, fault-tolerance and performance so you will never lose your data.
Configuring ThingsBoard IoT platform
The goal of this tutorial is to demonstrate the basic usage of the most popular ThingsBoard features which helps monitor Teltonika-Networks devices.
First, you need to login into the platform. Next, you will see an overview window, scroll down to Entities section and simply click on the Device in the navigation menu.
- Click on one of the marked in red buttons in the overview page Entities → Devices. In this page you can also add additional device in order to distinguish different devices with unique data flows.
- Click marked "+" buttons to add new device to the group.
- In the pop up window set name for your device.
- Configure your device's Label (Optional)
Credentials type: Access token (HTTP protocol)
- Enable Add credentials option.
- Set desirable Access token.
- Click Add button to save changes.
Credentials type: MQTT Basic
- Enable Add credentials option.
- Choose Credentials type:MQTT Basic.
- Set username which will be used in MQTT authorization.
- Set password which will be used in MQTT authorization.
- Click Add button to save changes.
Preparing data source
Different data streams can be selected depending on the device's supported functionality's. In this example we will be using Modbus TCP Server with native Modbus TCP Client functionality.
1. First, change WEBUI mode from basic to advanced.
2. Go to Services → Modbus TCP Server page.
3. Enable Modbus TCP Server.
File:6.png
4. Go to Modbus TCP Client page and add new Server device.
File:7.png
5. Configure Modbus TCP master's Server device as shown below to return device's uptime value.
1152x525px
Configuring data to server with HTTP protocol
After configuring the data source, you can add a data sender configuration. Data sender functionality is located Services → Data to server. You can add data sender by clicking Add button.
- Set name for the Data sender.
- Set desirable name for your data variable. Make sure that your chosen parameter is shown below JSON format field.
- Paste connection string with your own Access token.
- Add value to Custom header.
https://thingsboard.cloud/api/v1/YOUR_ACCESS_TOKEN/telemetry
Content-Type:application/json
Configuring data to server with MQTT protocol
After configuring the data source, you can add a data sender configuration. Data sender functionality is located Services → Data to server. You can add data sender by clicking Add button.
- Set name for the Data sender.
- Choose MQTT protocol.
- Set desirable name for your data variable. Make sure that your chosen parameter is shown below JSON format field.
- Enter thingsboard.cloud as a host.
- Paste in MQTT topic.
- Enable Use credentials option. Enter configured username and password from ThingsBoard IoT platform.
v1/devices/me/telemetry
Adding widget to the dashboard
The collected data can be displayed using various a widgets. To create one you should be able to see gathered data in the Latest telemetry section. To access it you should follow these steps:
- Click on the configured device.
- From the pop-up menu select Latest telemetry option. There you should see collected data.
In order to display data in the widget you should:
- Click on the gathered data row.
- Press Show on widget button.
- Choose bundle accordingly to your data.
- Choose suitable chart for your data visualization.
- Add widget to dashboard.
- Create new dashboard.
- With this option enabled after addition you will be redirected to newly created dashboard
- Adds widget to dashboard.