Back to software_installation.md
- About Live Track
- Create an account
- Create a device
- Import dashboards
- Connect the device to the dashboard
- Check the dashboard
- Make the dashboard public
- Option
This document describes the setup of ThingsBoard.
ThingsBoard is an open source dashboard platform. It is free to use and is one of the few platforms that can display tracks and paths (used as routes) on a map.
The dashboard can be viewed from the web(Live Demo server) and from the application.
For more details, see ThingsBoard Documentation and Getting Started with ThingsBoard.
Three types of dashboards are currently provided.
Go to ThingsBoard and create a free account with "Live Demo" of Community Edition.
Login to Live Demo server(demo.thingsboard.io).
Click "Entities" > "Devices" in the menu.
Click "+" > "Add new device"
Input "Pizero Bikecomputer" in "Name" field and click "Add".
Now, the device is added. Click this.
Click "Copy access token" and paste THINGSBOARD_API section of setting.conf.
Upload the dashboards provided.
Click "Dashboards" in the menu.
Click "+" > "Import dashboard". For example, upload "pizero_bikecomputer_w_track_.json".
Now, the dashboard is added. Click this.
Allow the imported dashboard to retrieve values for the device you just created.
Click edit button.
Click "Entity aliases" button.
Click edit button.
Click "Device" to see the devices created. Select this and save.
Click "Save" button.
Click check button to save.
Now you have the dashboard which works with the program. Check to see if the dashboard works. Run the program in demo mode.
$ python3 pizero_bikecomputer.py --demo
First, make sure that the value of Power, HR(heartrate) or Speed is available(not 0 or NaN). If you don't see any values, disable ANT+ in setting.conf.
Then click start button.
Turn on Live Track from the menu.
Open "Devices" section in "Entities" menu. The state of your device changed to "Active". Click it.
Click "Latest telemetry" tab. Values sent from the program are displayed.
Also, graph values(heartrate/power) are displayed.
To allow others to see your dashboard, publish your device and dashboard.
Click submenu button and "Make device public" from "Devices" menu.
Click "Yes".
Then, click submenu button and "Make dashboard public" from "Dashboards" menu.
You can get the public URL. Click "OK".
If you want to make it private again, do the reverse operation.
The default location is Tokyo in Japan. If you want to change it, edit your dashboard.
Then click edit button in the map widget.
Click "Advanced" tab and "Advanced settings" under "Common map settings".
Change the value of "Default map center position". The format is "latitude,longitude".