Creating an MQTT (IOT) Dashboard Using Thingsboard

Sdílet
Vložit
  • čas přidán 6. 09. 2024

Komentáře • 58

  • @sinrenxiang
    @sinrenxiang Před 3 lety +2

    Hi Steve how do you configure the python script for thingsboard Professional instead of demo? Thank you

  • @rafaeloliva8930
    @rafaeloliva8930 Před 4 lety +1

    Excellent! very helpful!

  • @AniketManjare
    @AniketManjare Před 3 lety

    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.

  • @abdulhaseeb4980
    @abdulhaseeb4980 Před 2 lety

    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?

  • @jilshah2990
    @jilshah2990 Před 3 lety

    Hi.. how to embedding thingsboard with webUI?

  • @joseroberto-jk9hh
    @joseroberto-jk9hh Před 2 lety

    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!

    • @stevecope
      @stevecope  Před 2 lety

      I wouldn't have thought so but that is a question you should ask thingsboard if you are concerned about it.

  • @dilanlol6046
    @dilanlol6046 Před 4 lety

    but how do you put sensors in your dashboard? we must use mqtt from our teacher

  • @hapra2000
    @hapra2000 Před 4 lety

    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 ?

    • @stevecope
      @stevecope  Před 4 lety +1

      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

    • @hapra2000
      @hapra2000 Před 4 lety

      @@stevecope Okay, done. Thank you for your help.

  • @thaisonvu4306
    @thaisonvu4306 Před 3 lety

    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!

    • @stevecope
      @stevecope  Před 3 lety

      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

  • @sarangworld7602
    @sarangworld7602 Před 4 lety

    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 ?

    • @stevecope
      @stevecope  Před 4 lety

      Check that you are using the correct device code in the username field.
      Rgds Steve

  • @ashmikaballamudi4046
    @ashmikaballamudi4046 Před 2 lety

    Hello, is there any way we can read the Telemetry data and store it in a local database?

    • @stevecope
      @stevecope  Před 2 lety

      Yes you can store it in sqlite
      czcams.com/video/d8eeNROMTv0/video.html
      rgds
      Steve

  • @jilshah2990
    @jilshah2990 Před 3 lety

    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?

    • @stevecope
      @stevecope  Před 3 lety

      Hi
      The scripts I used in the video are at the bottom of this page
      www.steves-internet-guide.com/thingsboard-mqtt-dashboard/

  • @sumitrathod9046
    @sumitrathod9046 Před 6 lety

    Nice Explanation and demo..But what is need to be done if i want same thing local host..installed Thingsboard on my laptop..

    • @stevecope
      @stevecope  Před 6 lety

      Haven't done that yet but will give it a try

  • @wimverlinden4577
    @wimverlinden4577 Před 4 lety

    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?

    • @stevecope
      @stevecope  Před 4 lety

      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/

    • @jrgenster4997
      @jrgenster4997 Před 4 lety

      @@stevecope are you going to post a video about this?

  • @shivamdeshpande1959
    @shivamdeshpande1959 Před 4 lety

    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

    • @stevecope
      @stevecope  Před 4 lety

      Sorry but I haven't used the thingsboard cloud. Maybe try their support.
      Rgds
      Steve

    • @shivamdeshpande1959
      @shivamdeshpande1959 Před 4 lety

      Okay. Thanks again for the video

  • @norazuraz
    @norazuraz Před 4 lety

    do you know how to link thingsboars to google assistant via IFFT

  • @habiyaremyejoseph7216
    @habiyaremyejoseph7216 Před 5 lety

    =thank you, i am doing the same but , nothing is displayed in telemetry what can be the issue?

    • @kevalthakker9928
      @kevalthakker9928 Před 4 lety

      Please make sure the topic name is correctly entered. My mistake was there..

  • @mondmask6185
    @mondmask6185 Před 4 lety

    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
      @stevecope  Před 4 lety

      That is my understanding as well. Thingsboard doesn't provide s standard MQTT broker.
      Rgds
      Steve

    • @mondmask6185
      @mondmask6185 Před 4 lety

      @@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

  • @saiyidahidris7937
    @saiyidahidris7937 Před 5 lety

    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.

    • @stevecope
      @stevecope  Před 5 lety +1

      ji
      Sorry But I haven't written any C code for a long time .
      Rgds
      Steve

    • @saiyidahidris7937
      @saiyidahidris7937 Před 5 lety

      @@stevecope Ok, thanks Steve.

    • @kevalthakker9928
      @kevalthakker9928 Před 4 lety

      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..

  • @kevalthakker9928
    @kevalthakker9928 Před 4 lety

    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)?

    • @stevecope
      @stevecope  Před 4 lety

      Sorry not sure as I've never configured alerts on thingsboard

    • @kevalthakker9928
      @kevalthakker9928 Před 4 lety

      @@stevecope can you please suggest any other platform where I can check alerts?

  • @dcarl661
    @dcarl661 Před 6 lety

    I've searched your downloads but I can't tell which download is the python thingsboard-1.py. Which download archive link contains this?

    • @dcarl661
      @dcarl661 Před 6 lety

      I finally found which link has the example py scripts.
      Creating an MQTT Dashboard Using Thingsboard -download

    • @stevecope
      @stevecope  Před 6 lety +1

      Here is the link
      www.steves-internet-guide.com/wp-content/uploads/thingsboard.7z

  • @PeterScargill
    @PeterScargill Před 6 lety

    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.

    • @stevecope
      @stevecope  Před 6 lety

      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/

    • @valeriisosliuk
      @valeriisosliuk Před 6 lety

      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.

  • @mitkosokolov9382
    @mitkosokolov9382 Před 4 lety

    Hi, can Thingsboard work with Xbee?

    • @stevecope
      @stevecope  Před 4 lety

      Thingboard is a platform that supports http and MQTT so if the device uses those protocols then yes.

  • @ishachaudhari7534
    @ishachaudhari7534 Před 6 lety

    Hi, how can we create a new widget in thingsboard?

    • @stevecope
      @stevecope  Před 6 lety

      Open a dashboard. Click in the pencil icon (bottom right) and click the + icon to add a new widget

    • @ishachaudhari7534
      @ishachaudhari7534 Před 6 lety

      Okay thank you!

  • @ti1001ra
    @ti1001ra Před 2 lety

    Grafana czcams.com/video/mCqbzVYJyVs/video.html and zero touch updates running on locally or in any cloud provider of your choice, sweet!

  • @Asifiqbal138
    @Asifiqbal138 Před 5 lety

    how to make dashborad for LAN Connected PLC?

    • @kevalthakker9928
      @kevalthakker9928 Před 4 lety

      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.