Great Work!! I have been watching your videos and they really helped me, Can you please tell me how can I see the data from things board into an android app.
Hi Steve, I have replaced the username with my device access token. I'm getting this error Bad connection Returned code= 5 Can you let me know what can be the possible reason?
Dear sir, I have tried several times to run thingsboard-1 with my private access token as your instruction. But, unfortunately, it's not successful and throwing error "Bad connection Returned code= 5 client disconnected ok". I don't know if something is incorrect or something became obsolete in this tutorial at this moment. Hope to see your reply. Thanks!
Returned code of 5 is an authentication error check that you are using the correct key as the username it should look like this: username="t73aQaiUAtTxq3aUO2aw" #test house 2 password is blank
Hello community, I have a problem, when I run the python code, I have got the message "client disconnected ok" and I didn't see the results at the telemetry zone. Do you know what might be the reason for this non connectivity ?
Hi.. i am new on Thingsboard. i added device as gateway type.this device has relation to another Devices. How to publish telemetry real data on Thingsboard dashboard.i am user of Community Edition. Can you help me share script or coding?
Thank you @steve for this tutorial and I am beginner. My OS Windows 10 and I just follow this instruction but when execute thingsboard-1.py, there is an error: C:\Users\abc\AppData\Local\Programs\Python\Python38>thingsboard-1.py Requested Python version (3.4) is not installed I change #! python3.4 becomes #! python3.8 at first line of thingsboard-1.py, then try again but still error: C:\Users\abc\AppData\Local\Programs\Python\Python38>thingsboard-1.py Traceback (most recent call last): File "C:\Users\hapra\AppData\Local\Programs\Python\Python38\thingsboard-1.py", line 3, in import paho.mqtt.client as mqtt ModuleNotFoundError: No module named 'paho' So how can I solve it ?
Hi You need to install the paho client use pip install paho-mqtt see here for more details www.steves-internet-guide.com/into-mqtt-python-client/ rgds steve
Hi Steve! If I connect my device by MQTT to the thingsboard by using a fixed string for the topic, how can thingsboard then publish my payload to other devices? It seems that there is no normal Mqtt broker activity here anymore publishing payloads to devices with the same interest? Or is that possible? Thx.
@@stevecope So they just use the MQTT protocol to connect to their server :-) but not use the MQTT general idea that makes it so interesting and unique...that is disappointing. Thx
Thank you @steve. Can you please guide me how I can add an alert on my dashboard when one of the value is beyond a range or not received from publisher for a long duration (like an hour)?
I did it with paho mqtt c and c++ libraries. You just need to use correct username, client id and topic while connecting. The libraries can be downloaded from github. Thanks..
Hi - please enlighten me - so I'm following the whole thing including the strange use of MQTT and using the same topic - but the login for MQTT using a token and no password - I'm not following AT ALL. I have Mosquitto in all my setups - with username and password.... if you elect to use a username and password - you can't get in without a password.. If you chose not to require username and password... well, the username is pointless. Clearly I'm missing something here. Care to elaborate please. I'd rather host this on a RPI3 than use the online version but I'm conceptually stuck at the MQTT stage.
Peter If you take a look at my article here www.steves-internet-guide.com/mqtt-username-password-example/ it covers passwords and usernames on Mosquitto The client can send a username/password even though the broker doesn't require authentication (broker setting) . Usernames are also used for topic restrictions and don't require a password. www.steves-internet-guide.com/topic-restriction-mosquitto-configuration/ I don't know what thingsboard use as a broker, but how it uses the username is a broker setting not a client setting. The client just needs to comply with what the broker requires. I agree that the way they use the username as effectively a device ID is different as to what most setups with MQTT look like. They also only use a single topic which again is different, but makes it very easy to setup. I also did an article on multiple topics vs single topic and JSON data and I think single topic with combined sensor data will be the way most people go. www.steves-internet-guide.com/mqtt-sensors-traffic-observations/
ThingsBoard provides two authentication methods - Access Token, which is username-only and X.509 certificates. Access Token authentication is very basic and it is intended to be used for testing and demo purposes only. For production use two-way ssl authentication using X.509 certificates is recommended.
I think the dashboard will be formed in the same way but the problem will be at PLC side. You will need an MQTT library to be installed in your PLC based device, which is generally not available. If you can somehow install mqtt libraries and python with PLC then the rest will be the same. I think you need to work with a microprocessor based device.
Excellent! very helpful!
Hi Steve how do you configure the python script for thingsboard Professional instead of demo? Thank you
Great Work!! I have been watching your videos and they really helped me,
Can you please tell me how can I see the data from things board into an android app.
Hi Steve, I have replaced the username with my device access token. I'm getting this error
Bad connection Returned code= 5
Can you let me know what can be the possible reason?
Good morning Steve, congratulations for the video.
If I install the community version, do I need to remove the LOGO from the things board?
Thanks!
I wouldn't have thought so but that is a question you should ask thingsboard if you are concerned about it.
but how do you put sensors in your dashboard? we must use mqtt from our teacher
Hi.. how to embedding thingsboard with webUI?
Dear sir, I have tried several times to run thingsboard-1 with my private access token as your instruction. But, unfortunately, it's not successful and throwing error "Bad connection Returned code= 5
client disconnected ok". I don't know if something is incorrect or something became obsolete in this tutorial at this moment. Hope to see your reply. Thanks!
Returned code of 5 is an authentication error check that you are using the correct key as the username it should look like this:
username="t73aQaiUAtTxq3aUO2aw" #test house 2
password is blank
Nice Explanation and demo..But what is need to be done if i want same thing local host..installed Thingsboard on my laptop..
Haven't done that yet but will give it a try
Hello community, I have a problem, when I run the python code, I have got the message "client disconnected ok" and I didn't see the results at the telemetry zone. Do you know what might be the reason for this non connectivity ?
Check that you are using the correct device code in the username field.
Rgds Steve
Hello, is there any way we can read the Telemetry data and store it in a local database?
Yes you can store it in sqlite
ruclips.net/video/d8eeNROMTv0/видео.html
rgds
Steve
Hi Steve, did you manage to send a message from Thingsboard to a device like ESP or to a solution like Node Red by MQTT?
Yes I did I will dig it out and get back to you. Contact me on the website using the ask steve page.
www.steves-internet-guide.com/ask-steve/
@@stevecope are you going to post a video about this?
Hi.. i am new on Thingsboard. i added device as gateway type.this device has relation to another Devices. How to publish telemetry real data on Thingsboard dashboard.i am user of Community Edition. Can you help me share script or coding?
Hi
The scripts I used in the video are at the bottom of this page
www.steves-internet-guide.com/thingsboard-mqtt-dashboard/
Thank you @steve for this tutorial and I am beginner.
My OS Windows 10 and I just follow this instruction but when execute thingsboard-1.py, there is an error:
C:\Users\abc\AppData\Local\Programs\Python\Python38>thingsboard-1.py
Requested Python version (3.4) is not installed
I change #! python3.4 becomes #! python3.8 at first line of thingsboard-1.py, then try again but still error:
C:\Users\abc\AppData\Local\Programs\Python\Python38>thingsboard-1.py
Traceback (most recent call last):
File "C:\Users\hapra\AppData\Local\Programs\Python\Python38\thingsboard-1.py", line 3, in
import paho.mqtt.client as mqtt
ModuleNotFoundError: No module named 'paho'
So how can I solve it ?
Hi
You need to install the paho client use
pip install paho-mqtt
see here for more details
www.steves-internet-guide.com/into-mqtt-python-client/
rgds
steve
@@stevecope Okay, done. Thank you for your help.
Hi Steve! If I connect my device by MQTT to the thingsboard by using a fixed string for the topic, how can thingsboard then publish my payload to other devices? It seems that there is no normal Mqtt broker activity here anymore publishing payloads to devices with the same interest? Or is that possible? Thx.
That is my understanding as well. Thingsboard doesn't provide s standard MQTT broker.
Rgds
Steve
@@stevecope So they just use the MQTT protocol to connect to their server :-) but not use the MQTT general idea that makes it so interesting and unique...that is disappointing. Thx
=thank you, i am doing the same but , nothing is displayed in telemetry what can be the issue?
Please make sure the topic name is correctly entered. My mistake was there..
I've searched your downloads but I can't tell which download is the python thingsboard-1.py. Which download archive link contains this?
I finally found which link has the example py scripts.
Creating an MQTT Dashboard Using Thingsboard -download
Here is the link
www.steves-internet-guide.com/wp-content/uploads/thingsboard.7z
Hi, thanks for the video. Can you guide me about how to send the telemetry data from thingsboard to the thingsboard cloud for its storage
Sorry but I haven't used the thingsboard cloud. Maybe try their support.
Rgds
Steve
Okay. Thanks again for the video
Thank you @steve.
Can you please guide me how I can add an alert on my dashboard when one of the value is beyond a range or not received from publisher for a long duration (like an hour)?
Sorry not sure as I've never configured alerts on thingsboard
@@stevecope can you please suggest any other platform where I can check alerts?
do you know how to link thingsboars to google assistant via IFFT
Sorry I don't
Rgds
Steve
Hi, I would like to ask you about could you please show and teach me on how to make a script in C source code. Above is using in python.
ji
Sorry But I haven't written any C code for a long time .
Rgds
Steve
@@stevecope Ok, thanks Steve.
I did it with paho mqtt c and c++ libraries.
You just need to use correct username, client id and topic while connecting.
The libraries can be downloaded from github.
Thanks..
Hi - please enlighten me - so I'm following the whole thing including the strange use of MQTT and using the same topic - but the login for MQTT using a token and no password - I'm not following AT ALL. I have Mosquitto in all my setups - with username and password.... if you elect to use a username and password - you can't get in without a password.. If you chose not to require username and password... well, the username is pointless. Clearly I'm missing something here. Care to elaborate please. I'd rather host this on a RPI3 than use the online version but I'm conceptually stuck at the MQTT stage.
Peter
If you take a look at my article here
www.steves-internet-guide.com/mqtt-username-password-example/
it covers passwords and usernames on Mosquitto
The client can send a username/password even though the broker doesn't require authentication (broker setting) .
Usernames are also used for topic restrictions and don't require a password.
www.steves-internet-guide.com/topic-restriction-mosquitto-configuration/
I don't know what thingsboard use as a broker, but how it uses the username is a broker setting not a client setting. The client just needs to comply with what the broker requires.
I agree that the way they use the username as effectively a device ID is different as to what most setups with MQTT look like.
They also only use a single topic which again is different, but makes it very easy to setup. I also did an article on multiple topics vs single topic and JSON data and I think single topic with combined sensor data will be the way most people go.
www.steves-internet-guide.com/mqtt-sensors-traffic-observations/
ThingsBoard provides two authentication methods - Access Token, which is username-only and X.509 certificates. Access Token authentication is very basic and it is intended to be used for testing and demo purposes only. For production use two-way ssl authentication using X.509 certificates is recommended.
Hi, can Thingsboard work with Xbee?
Thingboard is a platform that supports http and MQTT so if the device uses those protocols then yes.
Hi, how can we create a new widget in thingsboard?
Open a dashboard. Click in the pencil icon (bottom right) and click the + icon to add a new widget
Okay thank you!
how to make dashborad for LAN Connected PLC?
I think the dashboard will be formed in the same way but the problem will be at PLC side.
You will need an MQTT library to be installed in your PLC based device, which is generally not available.
If you can somehow install mqtt libraries and python with PLC then the rest will be the same.
I think you need to work with a microprocessor based device.
Grafana ruclips.net/video/mCqbzVYJyVs/видео.html and zero touch updates running on locally or in any cloud provider of your choice, sweet!