Huawei Cloud Yaoyun Server L instance evaluation|Deploying the powerful open source IoT platform ThingsBoard

Huawei Cloud Yaoyun Server L instance evaluation|Deploying the powerful open source IoT platform ThingsBoard

Application scenarios

Introduction to ThingsBoard

ThingBoard is an open source Internet of Things (IoT) platform designed to provide a one-stop solution for remote management and control of smart devices, sensors and actuators. It provides a powerful set of web interfaces that allow users to monitor and control their IoT devices while supporting customized communication and collaboration between devices. The ThingBoard platform has functions such as device management, data visualization, alarm system, and rules engine, which can help developers and enterprises quickly build and expand IoT solutions. It supports multiple protocols, such as MQTT, CoAP, HTTP, etc., making it easy to integrate communication methods of various devices. In addition, ThingBoard also provides a rich API interface and supports multiple programming languages ​​​​such as Python, Java, C#, etc., making it convenient for developers to carry out customized development according to business needs.

The following is an example of an IoT product developed using ThingsBoard.
A case of smart energy platform
Insert image description here
Insert image description here
A case of smart farm
Insert image description here
Insert image description here

Smart office
Insert image description here

The following will demonstrate to you how to deploy the ThingsBoard service on a Huawei Cloud Yaoyun Server L instance, and use it simply.

Resource and cost planning

This practice uses the Portainer image.
This practice uses the following resource planning as an example. You can adjust it according to actual needs.

resource Configuration illustrate
Yunyao cloud server L instance - CPU: 2 cores - Memory: 2GB - System disk: 40GiB The minimum configuration for running the Portainer application image is 2 cores of 2GB and a system disk of 40GiB. It is recommended to choose the Yunyao Cloud Server L instance based on your needs.
mirror Portainer Select the Portainer application image.
security group Inbound rules: - Protocol: TCP - Ports: 80, 443, 3000 - Source address: 0.0.0.0/0 - 80: Allow access to the website using the HTTP protocol. - 443: Allow access to the website using HTTPS protocol. - 3000: Allow access to ThingsBoard service
domain name domaintest.com - If you are only using it for personal development or testing, you do not need to add a domain name. - If your application is open to the outside world, please add and resolve the domain name for the cloud server.

Operating procedures

Purchase and configure Yunyao Cloud Server L instance

  1. Log in to the Yunyao Cloud Server L instance console .
  2. Click "Purchase Resources" and select "Purchase Yunyao Cloud Server L Instance" or "Purchase Yunyao Service Portfolio" in the drop-down list.
  3. Configure resources for the cloud server. This example takes the selection of "Purchase Yunyao Cloud Server L Instance" as an example.
parameter illustrate
area The intranets of Yunyao Cloud Server L instances in different regions are not connected to each other. Please choose an area close to your business to reduce network latency and improve access speed.
scene mirroring Select the Portainer application image.
Package specifications Select package specifications. The minimum configuration is 2 cores 2GB and system disk 40GiB.
Instance name Please customize the instance name to facilitate your identification, such as Portainer-Example.
Additional services (optional) This is only supported when "Purchase Yunyao Cloud Server L Instance" is selected. Choose additional services such as data disk, host security, and cloud backup as needed.
Purchase duration The minimum time limit for a single purchase is 1 month and the maximum time limit is 3 years.
Purchase quantity Set the number of Yunyao Cloud Server L instances you purchased.
  1. Click "Buy Now" to enter the order details page. According to the interface prompts, please confirm the configuration information, read and check the agreement.
  2. Click "Go to Pay" and complete the payment according to the prompts on the page.
  3. Click "Return to Huawei Cloud Yunyao Cloud Service Solution Console" to view the created Yunyao Cloud Server L instance.
Set the password for Yunyao Cloud Server L instance
  1. Click the Yunyao Cloud Server L instance card.
  2. In "Image Information" on the "Overview" page, click "Manage" to log in to the management interface and check whether the application image starts normally.

**Note:** During the startup of the application image, resetting the password, restarting or powering off the Yunyao Cloud Server L instance will result in abnormal login of the application image management interface. If the management interface displays a normal boot or login interface, it means that the application image has been started normally. Otherwise, please wait patiently for 1~2 minutes and try again later.
4. Please refer to Set/Reset Password to set the password for the administrator root of Yunyao Cloud Server L instance.

Configure security group

Configure the inbound access rules of the security group to ensure normal access to the application image.

  1. Click the Yunyao Cloud Server L instance card to enter the resource page.
  2. Click "Yunyao Cloud Server L Instance" in the list on the left, click the cloud server name, and enter the cloud server details page.
  3. Select the "Security Group" tab, click "Add Rule", and add the following rules. This example only adds basic rules, you can add more rules as needed.
priority Strategy type protocol port source address describe
100 allow IPv4 TCP:3000 0.0.0.0/0 Allow access to ThingsBoard service.
100 allow IPv4 TCP:443 0.0.0.0/0 Allows access to the application management interface using the HTTPS protocol.
100 allow IPv4 TCP:80 0.0.0.0/0 Allows access to the HTTP protocol to access the application management interface.
  1. **Figure 1 **Configuration results For convenience, I have opened all ports here. Please do not configure this in a production environment. Not very safe.

Initialize Portainer

  1. In "Image Information" on the server's "Overview" page, click "Manage" to log in to the management interface. Initializing Portainer has a certain timeliness. If the user cannot be created quickly, the following prompt will appear. Please log in to the cloud server and execute the command sudo docker restart portainer to restart Portainer, and then quickly create a user.
  2. Set the Portainer administrator username and password and click "Create user". If you have backed up data, in the "Restore Portainer from backup" configuration item, you can upload the backup data locally to quickly set up a Portainer environment.
  3. Select the "Home" menu and click the Local project to start using Portainer for Docker visual management.

At this point, you have obtained a complete Portainer application cloud server L instance. You can start using Portainer, let's continue to deploy the ThingsBoard platform on this platform

Deploy ThingsBoard container using Portainer

Let's take the deployment of ThingsBoard container as an example to introduce how to use Portainer for Docker visual management. For more detailed operation instructions, please refer to the official website for guidance .

Create ThingsBoard container
  1. Select the "Contaners" menu and click "Add container" to add the ThingsBoard container.
  2. Configure ThingsBoard container parameters as shown.
  • ①Name: Customized container name
  • ②Image: Container image name, for example, if you set thingsboard/tb-postgres, the system will automatically pull the latest ThingsBoard image from DockerHub.
  • ③Click "publish a new network port" and add port 3000 to ensure that the ThingsBoard service can be accessed normally.
  • ④Restart policy: It is recommended to select "Always" so that the container will always restart automatically no matter what circumstances it stops.
  1. Insert image description here
    Among them 9090, the port is the port of the web service, 1883the port of the mqtt service, 7070and the service of the edge gateway.
  2. Click "Deploy the container" to create the ThingsBoard container.
Access ThingsBoard service

After the container is deployed successfully, you can access the ThingsBoard service by accessing http://{ip}:9090

Initialized account and password

System Administrator: [email protected] / sysadmin
Tenant Administrator: [email protected] / tenant
Customer: [email protected] / customer

What you see after logging in is as follows:
Insert image description here

Using ThingsBoard

Home page after login (version 2.5)
Insert image description here

Rule chain editing, deployment operations,
Insert image description here
device creation:
only the name is required when creating, and the rest are optional.
Each device configuration can mount a rule chain, which can only be selected from the currently visible rule chain library.
Select a queue name. There are three options to choose from.
Insert image description here

Guess you like

Origin blog.csdn.net/github_35631540/article/details/132992471