Skip to content

Latest commit

 

History

History
289 lines (176 loc) · 10.5 KB

get-started.rst

File metadata and controls

289 lines (176 loc) · 10.5 KB

Get Started

Tip

  • This section applies when no Avantec HVAC device is added to the ThingBoard server.
  • If you add some Avantec HVAC devices to ThingsBoard Server again, please refer to the instructions of each device.
    • Add TA652FC-W to ThingsBoard </device/ta652fc-w/add-ta652fc-w-to-thingsboard>
    • Add TA652FH-W to ThingsBoard </device/ta652fh-w/add-ta652fh-w-to-thingsboard>

Reprinted this article from Getting Started with ThingsBoard, slightly modified.

Introduction

The goal of this tutorial is to demonstrate the basic usage of the most popular Avantec HVAC device and ThingsBoard features. You will learn how to:

  • Connect devices to ThingsBoard;
  • Import real-time end-user dashboards.

We will connect and visualize data from a Avantec HVAC device to keep it simple.

Refer to Getting Started with ThingsBoard to get support for the following features:

  • Define thresholds and trigger alarms;
  • Push notifications about new alarms over email, SMS or other systems.

Prerequisites

You will need to have ThingsBoard server up and running.

  • The easiest way is to use Live Demo server.
  • Or ThingsBoard Cloud.
  • The alternative option is to install ThingsBoard using /thingsboard/thingsboard-installation-options.
    • Windows users should follow this guide.
    • Linux users that have docker installed should execute the following commands:
    mkdir -p ~/.mytb-data && sudo chown -R 799:799 ~/.mytb-data
    mkdir -p ~/.mytb-logs && sudo chown -R 799:799 ~/.mytb-logs
    docker run -it -p 9090:9090 -p 7070:7070 -p 1883:1883 -p 5683-5688:5683-5688/udp -v ~/.mytb-data:/data \
    -v ~/.mytb-logs:/var/log/thingsboard --name mytb --restart always thingsboard/tb-postgres

    These commands install ThingsBoard and load demo data and accounts. ThingsBoard UI will be available using the URL: http://localhost:8080 . You may use username tenant@thingsboard.org and password tenant. More info about demo accounts is available.

Some important parameters

Please remember the following important parameters, which will be used frequently in the following work:

Some important parameters
ThingsBoard server Web URI Default Tenant Account MQTT URI / Cloud Host
Live Demo server https://demo.thingsboard.io mqtt://demo.thingsboard.io
ThingsBoard Cloud (Subscription plans) https://thingsboard.cloud mqtt://mqtt.thingsboard.cloud
Installation local: http://localhost:8080 remote: http://your_server_ip:8080 username: tenant@thingsboard.org password: tenant See demo accounts mqtt://your_server_ip

Step 1. Tenant Login

image

Tenant default username and password, refer to Some important parameters.

Step 2. Import Avantec Widgets

  • See Import Avantec Widgets <Import Avantec Widgets>.

Step 3. Import device profile

  • See Import Device Profile of TA652FC-W Thermostat <Import Device Profile of TA652FC-W Thermostat>, or
  • See Import Device Profile of TA652FH-W Thermostat <Import Device Profile of TA652FH-W Thermostat>.

Step 4. Import Dashboards

  • See Import TA652FC-W Detail Dashboard <Import TA652FC-W Detail Dashboard> and Import TA652FC-W List Dashboard <Import TA652FC-W List Dashboard> , or
  • See Import TA652FH-W Detail Dashboard <Import TA652FH-W Detail Dashboard> and Import TA652FH-W List Dashboard <Import TA652FH-W List Dashboard>.

Step 5. Provision device

  • See Step 4. Provision TA652FC-W device, or
  • See Step 4. Provision TA652FH-W device.

Step 6. Connect device

  • See Step 5. Connect TA652FC-W device, or
  • See Step 5. Connect TA652FH-W device.

Step 7. Assign Device and Dashboards to Customer

One of the most important ThingsBoard features is the ability to assign Dashboards to Customers. You may assign different devices to different customers. Then, you may create a Dashboard(s) and assign it to multiple customers. Each customer user will see his own devices and will not be able to see devices or any other data that belongs to a different customer.

Step 7.1 Create customers

Let's create a customer with title "My New Customer". Please see instruction below:

  • Navigate to the Customers page.

image

  • Click the "+" sign to add a customer.

image

  • Add customer title and click "Add".

image

Step 7.2 Assign dashboards to Customer

Let's share our dashboard with the Customer. The Customer users will have read-only access to the Dashboard.

  • See Step 6.1 Assign dashboards of TA652FC-W to Customer, or
  • See Step 6.1 Assign dashboards of TA652FH-W to Customer.

Step 7.3 Assign device to Customer

Let's assign device to the Customer. The Customer users will have ability to read and write telemetry and send commands to devices.

  • See Step 6.2 Assign TA652FC-W device to Customer, or
  • See Step 6.2 Assign TA652FH-W device to Customer

Step 7.4 Create customer user

Finally, let's create a user that will belong to the customer and will have read-only access to the dashboard and the device. You may optionally configure the dashboard to appear just after user login to the platform web UI.

  • Navigate back to the "Customers" page and click the "manage customer users" icon.

image

  • Click the "Add user" icon.

image

  • Specify email that you will use to login as a customer user and click "Add".

image

  • Copy the activation link and save it to a safe place. You will use it later to set the password.

image

  • Open user details.

image

  • (Option) Toggle edit mode.

image

  • (Option) Select default dashboard and check "Always fullscreen". Apply changes.

image

Step 7.5 Activate customer user

  • Use the activation link to set the password. Click "Create Password". You will automatically login as a customer user.

image

  • You have logged in as a Customer User. You may browse the data and acknowledge/clear alarms.

image

Step 8. Open Dashboards

  • See Step 7. Open Dashboards of TA652FC-W, or
  • See Step 7. Open Dashboards of TA652FH-W.

Next Steps

  • /thingsboard/thingsboard-dashboards - Customize your Dashboard & Widget.
  • /thingsboard/thingsboard-rule-engine - Customize your event processing with Rule engine.
  • /thingsboard/thingsboard-white-labeling - Customize your company or product logo with ThingsBoard PE.
  • Platform Integrations - Connect existing NB IoT, LoRaWAN, SigFox and other devices with specific payload formats directly to ThingsBoard platform.
  • Trendz Analytics - Converts the IoT dataset into insights and simplifies the decision-making process.
  • /thingsboard/thingsboard-mobile-application - learn how to customize the mobile application.
  • /thingsboard/thingsboard-mqtt-device-api | /device/ta652fc-w/ta652fc-w-mqtt-api | /device/ta652fh-w/ta652fh-w-mqtt-api - Connect Avantec HVAC device to your existing IoT platform.

See also

Your feedback

Don't hesitate to star Avantec on github to help us spread the word.