Professional Documents
Culture Documents
It is available for download and installation on your own hardware or as an online Polls
service for demonstration purposes.
Are you Using Dynamic
Security with Mosquitto?
In this tutorial we will configure a simple Dashboard to display data from sensors
using MQTT and Python. yes
No
There are two sensors, a main door sensor and a main light sensor. Our final demo
dashboard will appear like this Vote
View Results
Hi - I'm Steve
and welcome
to my website
where you can
learn how to build IOT
systems using MQTT.
The first step is to create your own demo account by signing up here.
Once you have an account and have verified it you can login to thingsboard here.
Process Overview
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 1/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
MQTT For
Complete...
$4.99
Shop now
The Mosquitto
Broker For...
$4.99
Shop now
Search
Devices
Go to devices and click on the add device circle in the lower right hand corner
About Me
MQTT Tools
Quizzes- MQTT
Networking
My Youtube Channel
You will need to give the device a name and add a description. Leave the is gateway
box un-checked.
node-red
MQTT Brokers
mqtt and python
Internet
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
Click
the use ADD
of ALL thewhen done.
cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 2/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Now click on the device card to edit the device, and then click the tick icon to display
Each device is assigned an access token which is used by the device to identify itself
to the thingsboard platform.
You will need to copy this access token for use in your MQTT client. You can do this
using the copy access token tab.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 3/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
v1/devices/me/telemetry
Note: A device need not be a single device like a sensor as devices publish data as a
JSON object.
The device client attributes can be used to manage the device, but these must first
be populated by the client. We will not be using device attributes in this tutorial.
If you follow the introduction on the thingsboard website they use a JavaScript client
and Node.js to send data.
In this tutorial we will send data using MQTT and a Python client.
broker=demo.thngsboard.io
topic=v1/devices/me/telemetry
We also need to package the data in a dictionary object and then convert it to a JSON
encoded string to output
Here is my demo script (partial) that simply simulates a light sensor and a door
sensor.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 4/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
The light is either on or off, and the door is either open or closed.
To view the results on the device in Thingsboard go the device telemetry tab.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 5/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
To visualize data from this device we need to configure a dashboard and a display
widget.
To add this device to a widget click on the check box next to last update time
Now select the widget type (cards) and then use the small circles to select the card
type, and then click add to dashboard.
You can now add the widget to an existing dashboard or create a new dashboard.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 6/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
If you tick the check box to open the dashboard, when you click ADD the dashboard
will open and display the widget.
To add a new widget or edit the dashboard click on the edit (pencil) icon in the lower
right corner of the dashboard.
When adding a new widget you first need to select the type of widget.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Now you need to select a data source for the Widget.
Cookie Settings Accept All
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 7/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Now configure
the data source. In the example below our data source is called house which is the
name of the device we configured earlier and we select the main-light property. The
Main-door property we added to our first widget.
Now you can edit the card settings and change colour and fonts etc.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 8/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
As long as the edit icons are showing you can rearrange and edit widgets on the
dashboard.
You need:
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Sending Test
AcceptData
Cookie Settings All Using cURL
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 9/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
The Thingsboard website give the various formats supported and example curl
commands.
Unfortunately these didn’t work on windows until I escaped the quotes on the data
keys and values.
{"key1":"value1", "key2":"value2"}
The ThingsBoard dashboard has two devices a light and door. The JSON data looks
like this
Notice I had to escape the quotes around the keys and values.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 10/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Here is my demo test house dashboard that I created in the video tutorial. You can
download the python scripts used in the video below:
References:
Thingsboard website
Thingsboard Getting started video
Related Tutorials:
77 comments
Sokolov says:
January 26, 2022 at 8:47 pm
Hi, i create device and upload some sensor data. How can we import data from personal
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
devices
the use of ALLtothe
rule chainHowever,
cookies. ? you may visit "Cookie Settings" to provide a controlled consent.
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 11/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
steve says:
January 27, 2022 at 2:32 pm
Hi
Sorry I don’t know as I don’t use thingsboard anymore I just left the tutorial online as it
might still be useful.
Rgds
Steve
Reply
Leon says:
July 29, 2021 at 9:06 am
Hi Steve,
How can I create multiple devices with telemetry to connect to thingsboard? For example,
I want to create 100 devices. Can you help me? Thank you very much.
Reply
steve says:
July 29, 2021 at 11:37 am
Hi
Sorry but I don’t work much with thingsboard. I tried it and wrote this tutorial but I’m
not a user
Rgds
Steve
Reply
Leon says:
July 29, 2021 at 8:44 am
For example, I want to emulate 100 devices. Can you help me?
Reply
steve says:
July 29, 2021 at 11:38 am
Reply
Leon says:
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
July However,
the use of ALL the cookies. 30, 2021 at 2:32
you amvisit "Cookie Settings" to provide a controlled consent.
may
Cookie Settings
Yes, Can Accept All me? Python paho mqtt
you help
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 12/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Reply
steve says:
July 30, 2021 at 8:22 am
I have a script that I wrote for testing connection limits on a broker which I
thought I made available but haven’t. It connects to a broker with x client
connections and then publishes a message would that be of interest as a starting
point?
Reply
Leon says:
August 1, 2021 at 8:50 am
steve says:
August 2, 2021 at 3:08 pm
The script download is at the end of the tutorial here is the link
http://www.steves-internet-guide.com/download/mqtt-dashboard-using-
thingsboard/
Rgds
Steve
Dmitry says:
May 27, 2021 at 9:59 am
Hi Steve!
I need some assistance in building IoT system using Thingsboard. In short, I have to
receive BLE devices messages which are polled by the gateway. I understand how
establish MQTT connection between gateway and TB, actually it’s already been done. The
challenge for me is to parse data that appears on the server – gateway sends data all in
one JSON packet and I can’t find the way to split big JSON packet consisting BLE data and
then parsh and to populate it over TB logical devices.
If you have ideas regarding my task please contact me, I’m ready to pay for you help.
Reply
steve says:
May 27, 2021 at 3:17 pm
I’m not a big thingsboard user I will take a quick look and get back to you. Are you
seeing the actual data coming in?
RGds
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use Steve
of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 13/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Yes, the data is there but I have no idea how to manage them using rule chain
engine (I guest I should you it since it has several tools to transform incoming data
and even write JS scripts).
Reply
steve says:
May 28, 2021 at 9:23 am
Using rule chains isn’t something I’ve looked at but it likely the correct approach.
Sorry I can’t be more help.
Rgds
Steve
Reply
I can’t figure out how to send values to my esp8266 from a knob control… I can send rpc
with the rpc buttons but don’t understand how the knob control is configured. Any
suggestions? I just want to set a set point on my device.
Reply
steve says:
May 1, 2021 at 8:12 am
Hi
contact me using the ask steve page and We can set up a skype call and I will show you
what I have done. I keep meaning to make a video on it
Rgds
Steve
Reply
I’m using knob control with rpc to control a dc engine but every time that I
refreshed thingsboard the dashboard shows a timeout. Could you help me to solve
this?
Reply
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
steve says:
Cookie Settings Accept All
June 9, 2021 at 5:36 pm
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 14/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Sorry but I’m not a big user of thingsboard and haven’t seen a dashboard
timeout but I’ve only used the online demo version
Reply
Raimundas says:
March 19, 2021 at 9:05 am
Hello,
I want to publish Tasmota sensors to Thigsboard, but can’t get data … maybe who knows
what i’m not doing so? Here is part of the logo from my Tasmota.
Reply
steve
We use cookies on our says:to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
website
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
March 19, 2021 at 1:03 pm
Cookie Settings Accept All
What client are you using?
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 15/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Reply
Raimundas says:
March 22, 2021 at 9:20 am
Reply
steve says:
March 23, 2021 at 4:24 pm
Hi
You need to include the device key as part of the username as in the tutorial are
you doing that?
Reply
Raimundas says:
March 24, 2021 at 8:18 am
topic=v1/devices/me/telemetry
In Tasmota log :
in my log:
steve says:
March 24, 2021 at 9:22 am
Use the ask steve page and and me you login details and I will take a look.
http://www.steves-internet-guide.com/ask-steve/
Weng says:
January 19, 2021 at 6:50 am
Hi, cookies
We use I want on
to our
build a dashboard
website to give youwhich willrelevant
the most be subscribing
experiencetobyDioty MQTT server
remembering to retrieveand repeat visits. By clicking “Accept All”, you consent to
your preferences
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
data and also POSTING mqtt message to DIOTY MQTT server. Any help please ?
Cookie Settings Accept All
Reply
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 16/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
steve says:
January 19, 2021 at 11:10 am
Hi
You need to take a look at the other dashboard videos that I’ve don on you tube
https://youtu.be/e70ta8jI_nM
https://youtu.be/Gu0Vq2kVNzw
Reply
Jil says:
January 1, 2021 at 2:42 pm
This device has relation to any other device. How to i publish telemetry data on it with help
of mqtt. please share script or coding file on it. Please sir help me.
Reply
steve says:
January 2, 2021 at 1:56 pm
I’ve put a direct link to the script at the bottom of the tutorial
Reply
Deepthi says:
December 14, 2020 at 11:17 pm
Reply
steve says:
December 15, 2020 at 1:25 pm
Reply
Xianfeng Ye says:
August 20, 2020 at 7:18 am
Hi Steve,
In thingsboard-ce, how does it work as a mqtt broker? There are something in the source
code of the thingsboard-3.1.0:
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
thingsboard/tools/src/main/python/mqtt-send-telemetry.py:broker=”test.mosquitto.org”
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Does that mean it make test.mosquitto.org as a mqtt broker in the thingsboard?
Cookie Settings
Therefore, if weAccept
wantAllanother mqtt broker work, we just need to modify it to another url?
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 17/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Sincerely,
Xianfeng Ye
Reply
steve says:
August 20, 2020 at 9:50 am
Hi
Thingsboard supports MQTT as an end point but as far as I know it doesn’t work as a
conventional broker.
Rgds
Steve
Reply
Timber says:
June 3, 2020 at 2:36 pm
Hi Steve,
First of all thanks a lot for all of your tutorials, are very useful.
http://www.mqtt-dashboard.com/
Thanks in advance.
Reply
steve says:
June 3, 2020 at 2:54 pm
Hi
Did you see the one I created in node-red on the mqtt-tools page
http://www.steves-internet-guide.com/mqtt-tools/
Rgds
Steve
Reply
TBUser says:
December 18, 2019 at 12:41 pm
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Hi
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 18/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
But One of my tool is not supporting special charachter in topic name as “+” or “#”.
Can I use some other topic name for commnad from dashboard
Reply
steve says:
December 18, 2019 at 8:48 pm
what tool are you using? you can use the exact topic name but in this case I don’t think
you will know it.
rgds
steve
Reply
TBUser says:
December 20, 2019 at 6:19 am
Reply
steve says:
December 20, 2019 at 3:37 pm
Ok
If you look at the python script and dashboard I sent via email you will see that
commands are send from thingsboard like this
So you need to be able to use a wildcard otherwise it looks like it won’t work with
thingsboard
rgds
steve
Reply
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Anita says:
Cookie Settings Accept All
December 1, 2019 at 8:31 pm
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 19/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Hello,
I’m using ThingsBoard IoT Gateway. I want to send data from ThingsBoard server to the
devices that are connected via gateway but, I couldn’t use the RPC capability of
ThingsBoard. I don’t know how to set a topic for widgets in Dashboard. Do you have any
idea about this?
Regards,
Anita
Reply
steve says:
December 1, 2019 at 8:36 pm
Hi
I tried about 6 months ago and couldn’t get rpc working as I thought it should I will try
again this week and let you know if I have any joy.
rgds
steve
Reply
Anita says:
December 2, 2019 at 3:27 pm
Reply
steve says:
December 2, 2019 at 7:40 pm
Hi
http://demo.thingsboard.io/dashboards/5391b680-6009-11e7-ab61-
c7f326cba909
When you change the temperature it sends a rpc command to a python client
and the client send the temperature back as telemetry data to the temperature
display.
It might not work for you but I will try to get the Python script running all night
so you can try it.
Rgds
Steve
Reply
Anita says:
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
December
the use of ALL the cookies. However, you10,
may2019
visitat"Cookie
8:20 pmSettings" to provide a controlled consent.
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 20/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Hi,
just by working with tb-gateway,I cannot see that the gateway gets the rpc or
not… and also on the device I don’t know where to subscribe.
steve says:
December 11, 2019 at 9:25 am
Hi
Yes and I thought I had emailed you but didn’t find it. I will email you my
Python script and dashboard link later today.
The solution is that you use rpc to make the request from thingsboard to the
client and send the reply as telemetry data.
rgds
steve
Anita says:
December 1, 2019 at 8:59 am
Hello,
1- I’m using ThingsBoard IoT Gateway. I want to send data from ThingsBoard server to the
devices that are connected via gateway but, I couldn’t use the RPC capability of
ThingsBoard. I don’t know how to set a topic for widgets in Dashboard. Do you have any
idea about this?
client.username_pw_set(username=TOKEN,password=None)
while client.loop() == 0:
client.subscribe(“v1/devices/me/rpc/request/+”)
Reply
Esam says:
November 6, 2019 at 1:55 am
Hi Steve,
I try to subscribe to the knob control but it stay offline and I dont seem to get any rpc
commnds
We use cookies onfrom
our it to mytoiot
website device.
give Any
you the hints
most tips experience
relevant would be appreciated.
by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Reply
Cookie Settings Accept All
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 21/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
steve says:
November 7, 2019 at 6:13 pm
rgds
Steve
Reply
Thanks for a great software and tutorial. I have played around with examples and seem to
work fine. Now I am trying to make it work with my sensors using Vera MQTT plug-in to
connect devices to actual sensors. However, the plug-in has limitations in the sense, it only
allows me to specify one username/password and wants to send MQTT status of all
sensors using the same credentials. It also doesn’t use v1/devices/me/telemetry as a
topic. Here is what an update for a sensor looks like:
Message payload:
Is there any way to map these messages into thingsboard telemetry data and also get
around to having only one username/password for all devices?
Reply
steve says:
September 22, 2019 at 10:45 am
Hi
The only way I can think of is to use a republisher which subscribes to the topics
published by vera and republishes them in a format accepted by thingsboard.
http://www.steves-internet-guide.com/understanding-mqtt-topics/
I also create a video and tutorial on doing it for http to mqtt with python and the code
is included here
http://www.steves-internet-guide.com/republish-html-data-over-mqtt-flight-arrivals/
Other than that you would need to write you own plugin or modify the existing on to do
what you want
Rgds
Steve
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Reply
Cookie Settings Accept All
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 22/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Thanks – upon further reading, the Thingsboard IoT gateway seems like it is meant
for this type of situation.
Reply
steve says:
September 22, 2019 at 3:35 pm
I agree with you there. I would recommend you take a look at node-red it is far
more versatile.
https://stevesnoderedguide.com/
rgds
Steve
Reply
Dino says:
August 16, 2019 at 7:59 am
Hi,
But I could’t get the data from the other computer at same time like I use this
And, How Could I get the history data from the TB’s device.
Best Regards,
Dino
Reply
steve says:
August 16, 2019 at 8:31 am
You cannot subscribe to the thingsboard MQTT broker like you would to a normal
broker. You should be able to get the historical data using their http API
https://thingsboard.io/docs/user-guide/telemetry/
rgds
steve
Reply
Edgar
We use cookies on Granda
our website tosays:
give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
August 3, 2019 at 3:12 pm
Cookie Settings Accept All
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 23/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Hello, I am from Ecuador, I am working on my thesis, I would like to use the things board
platform to send a signal to the gpio port to open and close a door, I have read and found
tutorials that manage all the gpio ports, I really can’t understand them , I would like you
to help me with a basic example to start from there. I am working with python and mqtt.
Show data in the telemetry topic I already did. But I wish I could control a gpio port, could
you help me with an example. I will be very grateful.
I have seen some videos on YouTube but I don’t understand very well, since I don’t get
much English.
Reply
steve says:
August 3, 2019 at 4:29 pm
Hi
https://thingsboard.io/docs/samples/esp8266/gpio/
https://thingsboard.io/docs/samples/raspberry/gpio/
Rgds
Steve
Reply
Thangz says:
July 26, 2019 at 10:45 am
Is there any much simpler way to connect to mosquitto broker & subscribe to topics from
Thingsboard CE, so that whenever a message published in broker reaches the
thingsboard as well without the frequent subscription or without the need for access
token?
Reply
steve says:
July 26, 2019 at 2:13 pm
Rgds
Steve
Reply
TBUser says:
July 17, 2019 at 11:31 am
Hi Steve
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL
I want to the cookies.
Send PahoHowever, youto
Mqtt data may visit "CookiePE
thingsboard Settings" to provide
on different a controlled
topics. For
consent.
For Settings
Cookie now I have Accept
only one
All topic “v1/devices/me/telemetry”. I want to use multiple topics.
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 24/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
I have 100 tags data to send ,which I want to send on 4 different topics. Can I configure
topic in Thingsboard PE like
“v1/device1/me/telemetry”
“v1/device2/me/telemetry”
“v1/device3/me/telemetry”
“v1/device4/me/telemetry”
I want to send Mqtt data on multiple topics.So that I can fasten my publishing without any
data leakage.
Reply
steve says:
July 17, 2019 at 1:10 pm
In Thingsboard you use the same topic. It is the device id that changes. So you will need
to create multiple devices and not multiple topics.
Rgds
Steve
Reply
TBUser says:
July 18, 2019 at 5:42 am
Thanks a lot , Steve.So I need to send data on same topic to difent device(diffrent
credentials).I hope I am getting it correct..
I am trying to send data of around 500 tags (changing data per second) from Paho
MQTT to Cloud. Initially all data is received, but after some time it starts losing
samples.
Kindly help.
Reply
steve says:
July 18, 2019 at 2:32 pm
I would guess that you are overloading the receiver. Try starting with 100 tags
and it that works go to 200 until you find the point at which you lose messages
and that will confirm that the receiver is being overwhelmed or throttled.
Rgds
Steve
Reply
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
TBUser says:
Cookie Settings Accept All
July 19, 2019 at 6:02 am
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 25/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Its working fine with 200 tags.But I want it for 500 tags which getting chaned
at per second.(500 changes /second)
But after that, I start losing data. If you could help me with this.
TBUser says:
July 18, 2019 at 10:00 am
What is the rate limit to be accepted by TB server persecond i.e. deafult value
changes per second limit in TB PE.
Is it 300:1,3000:60
means no more then 300 updates per second and no more then 3000 updates per
minute.
TB_SERVER_WS_TENANT_RATE_LIMITS_MAX_UPDATES_PER_SESSION
Reply
steve says:
July 18, 2019 at 2:42 pm
Hi
I just looked at their docs and the limits seem to refer to websockets and not
mqtt. It is very likely similar for mqtt but you will need to test.
Rgds
Steve
Reply
TBUser says:
July 19, 2019 at 6:27 am
I have found TB has given some tet results.But I am wondring from where I
can see those trends.
https://thingsboard.io/docs/reference/performance/
given on TB site.
TBUser says:
July 19, 2019 at 11:06 am
objClient.client.username_pw_set(“NewMQTT”,””)
time.sleep(1)
objClient.client.username_pw_set(“TestTopic”,””)
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 26/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
steve says:
July 19, 2019 at 12:12 pm
Hi
You should be able to. Are you overwriting your initial client object?
I would go for qos of 0 not 2 unless you really must as qos of 2 create 4 times as
many messages.
I find with IOT devices like sensors most don’t change from one sample period to
the next so why waste network and storage on transmitting and storing the
same data.
http://www.steves-internet-guide.com/logging-mqtt-sensor-data/
Rgds
Steve
Reply
TBUser says:
July 22, 2019 at 4:27 am
steve says:
July 22, 2019 at 3:01 pm
rgds
steve
TBUser says:
July 22, 2019 at 9:46 am
steve says:
July 22, 2019 at 3:00 pm
Hi
Milica says:
June 14, 2019 at 2:19 pm
Sir,
cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
We use
the use
Canofyou
ALL tell
the cookies.
me which However,
python youscript
may visit
did "Cookie
you use?Settings"
Becauseto provide
the onea controlled consent.
I use, thingsboard-1, I
get Settings
Cookie errors: Accept All
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 27/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
client.connect(broker,port)
File “C:\Users\Korisnik\AppData\Local\Programs\Python\Python36-32\lib\site-
packages\paho\mqtt\client.py”, line 839, in connect
return self.reconnect()
File “C:\Users\Korisnik\AppData\Local\Programs\Python\Python36-32\lib\site-
packages\paho\mqtt\client.py”, line 962, in reconnect
File “C:\Users\Korisnik\AppData\Local\Programs\Python\Python36-32\lib\socket.py”,
line 704, in create_connection
File “C:\Users\Korisnik\AppData\Local\Programs\Python\Python36-32\lib\socket.py”,
line 745, in getaddrinfo
Or is there any previous tutorial about connecting sensor to platform via MQTT? And, do
you use sensor for real? Or is this just demo version?
Best r, Milica
Reply
steve says:
June 14, 2019 at 4:49 pm
If you go to the downloads page and scroll down to the scripts used in video you will
find the scripts there under Creating an mqtt dashboard in thingsboard
http://www.steves-internet-guide.com/downloads/
Reply
Hi,
First of all, thanks for this very helpful and clear tutorial. This IOT platform seems really
appropriated for what I intend to do. However, I want to use a Pycom device (don’t know if
you’ve heard about it) to communicate with Thingsboard through MQTT. I found the
following module on Github
(https://raw.githubusercontent.com/micropython/micropython-
lib/master/umqtt.simple/umqtt/simple.py) which seemed quite OK. However, I am still
confused with all the parameters required, to create a client object with the _init_ function
and how to adapt it with the credentials provided by one of the devices I created on
Thingsboard. Or maybe, could you please provide me with the module/library and the
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
methods
the use youcookies.
of ALL the are using? Notyou
However, sure
mayif Ivisit
am"Cookie
being clear, buttothanks
Settings" provide aa controlled
lot for helping.
consent.
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 28/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
steve says:
February 19, 2019 at 3:22 pm
From looking at the code all you need is the client name and broker name/address.
What credentials are you referring to?
On things board each device as an ID which you use for the username password is
blank.
client =(name,server,username=xxx)
Reply
Rodrigo says:
September 16, 2018 at 11:19 pm
I have some experience with Thingboard, but I have a problem when I want to set up
values from the dashboard with a widget, I use Knob Control from Control Widgets but it
is not very useful, because it sends many values before you reach the value that you want.
Reply
steve says:
September 17, 2018 at 1:47 pm
I know what you mean. There is currently no way that I can see of preventing this
unless you change the widget code. I haven’t tried doing that but hopefully will one day.
You could catch it on the receive side but it depends on what you are sending it to.
Reply
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment *
Name *
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Email
Cookie *
Settings Accept All
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 29/30
9/27/22, 2:57 PM Create an MQTT Dashboard Using Thingsboard
Website
Post Comment
Prorateer Lea
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ 30/30