Stand with Ukraine flag
Try it now Pricing
Professional Edition
Community Edition Professional Edition Cloud Edge PE Edge IoT Gateway License Server Trendz Analytics Mobile Application PE Mobile Application MQTT Broker
Documentation > Solution Templates > Fleet tracking
Getting Started
Devices Library Guides Installation Architecture API FAQ
On this page

Fleet tracking template

Doc info icon

The Solution Templates are available in ThingsBoard Cloud. Solution templates for ThingsBoard PE introduced starting from version 3.3.1PE.

Fleet Tracking template refers to the bus tracking solution. With this template you get an interactive dashboard with real-time vehicles’ tracking as well as route details, status of the asset on the route, etc.


As part of this solution, we created a “Fleet Tracking” dashboard that displays data from multiple buses. This dashboard contains 2 states - Main state and Bus state.

You may use the Main state to:

  • observe the location of the buses on the interactive map in real-time;
  • control the buses status, speed and fuel level;
  • monitor bus tracking events (alarms).

In order to go to Bus state, click on the row of the desired sensor in the Buses section.

You may use the Bus state to:

  • view a specific bus history of the route in the form of a route record with the possibility of playing it;
  • see the current bus route;
  • monitor speed, fuel level, and status in real-time. Also, the ability to view bus speed statistics;
  • respond to events that have arisen using the alert system.

Also, for the convenience of viewing information, the user can switch from day to night mode and vice versa.

You may always customize the “Fleet Tracking” dashboard using dashboard development guide.


We have already created four bus tracking devices and loaded some demo data for them. See solution instructions for the list of created devices and their credentials.

Solution expects that the bus tracking device will upload “latitude”, “longitude”, “speed”, “fuel” and “status” values. The most simple example of the expected payload is in JSON format:

{"latitude":  37.764702, "longitude":  -122.476071, "speed":  50, "fuel":  5, "status": "On route"}

You may find the exact commands to send data on behalf of created devices in the solution instructions. See connecting devices for various connectivity options to connect real devices.


Alarms are generated using two Alarm rules in the “bus” device profile.