How to build your own custom MQTT dashboard?

Поділитися
Вставка
  • Опубліковано 19 січ 2023
  • This post will show you how to build your own custom MQTT dashboard that will display MQTT messages using Node.js, HTML, CSS, and Javascript
    We are using mqtt.js to communicate with our Mosquitto MQTT broker and use Plotly.js to draw our graphical charts.
    WriteUp:
    www.donskytech.com/how-to-bui...
    Publish and Subscribe to MQTT messages over WebSocket:
    • Publish and Subscribe ...
    Code:
    github.com/donskytech/mqtt-cu...
    Responsive Dashboard:
    • Responsive Admin Dashb...
    If you like my post or videos then please consider subscribing to my channels and sharing them with your friends:
    Website: www.donskytech.com
    UA-cam: / donskytech
    Facebook: / donskytech
    Twitter: / donskytech
    If you are generous and think I have helped you, please consider buying me a coffee. 🙂
    Buy Me a Coffee:
    buymeacoffee.com/donskytech
    #mqtt
    #mosquitto
    #node
    #express
    #mqtt.js
  • Наука та технологія

КОМЕНТАРІ • 30

  • @memet9313
    @memet9313 Рік тому

    great project and video, I'm appreciated..... your work is awesome,

    • @DonskyTech
      @DonskyTech  Рік тому

      Hey, thanks for the kind words! Kindly subscribe to my channel if you have not done so. I have lots of unique contents to share in the future.

  • @ariel18012
    @ariel18012 Рік тому +2

    Excelente video, muy bueno, ojala puedas migrarlo a react con firebase, y dandole
    un giro muy bueno. Sigue asi!!!

    • @DonskyTech
      @DonskyTech  Рік тому +1

      Thanks! If I have time, I would try it later. Please consider subscribing to my channel if you have not done so.

  • @e_xtazzy
    @e_xtazzy 8 місяців тому

    This looks really good!

    • @DonskyTech
      @DonskyTech  8 місяців тому

      Hey, thank you!

    • @e_xtazzy
      @e_xtazzy 7 місяців тому

      Where I can contact you, I need some help on connecting it to a broker with username and password@@DonskyTech

  • @Kanze_89
    @Kanze_89 2 місяці тому

    Great project nice man. Btw how to show up AWS data on that dashboard?

  • @nickljr
    @nickljr 18 днів тому

    Hey! Great work! I would like to discuss something with you, what’s the best way to reach out?

  • @chebron5258
    @chebron5258 11 місяців тому +1

    Hello, great example. Mine is running well with Web Socket. How to use TCP instead of Web Socket?

    • @DonskyTech
      @DonskyTech  11 місяців тому

      Hey, I have not look into that but that is a great idea as well. I will list that up into the projects that I would write in the future. For the meantime, please subscribe to my channel. Thank you.

  • @David-iq1kd
    @David-iq1kd 9 місяців тому +1

    Are there any reasons you would not want to use MQTT.js directly in the client side js, instead of needing a node.js back end?

    • @DonskyTech
      @DonskyTech  9 місяців тому +1

      Hey, there's no specific reason. I have used this library in both server-side Node.js modules and on the client side. I have used it on the server side for this project, but for the other videos, I am using the client side.

  • @mofanc3710
    @mofanc3710 8 місяців тому

    First of all, I would like to say thank you very much, the video you made was extraordinary
    Sir, I would like to ask, if I want to not only display data in real-time but also store the data sent by the microcontroller in some database (to store and view data history later), is this scenario possible for a communication scheme with mqtt-websocket
    Thanks

    • @DonskyTech
      @DonskyTech  8 місяців тому

      Hey, yes.. very much possible. I will think about writing a content about this topic in the future. For the meantime, please subscribe to my channel.

  • @Killerpants1125channel
    @Killerpants1125channel 9 місяців тому +1

    hi again! im running mqtt from my raspberry pi, is it a need to use websocket or can i just use mqtt itself?

    • @DonskyTech
      @DonskyTech  9 місяців тому

      Hey, you can use MQTT or WebSocket. It really depends on what you want to do. If you want to save your data in a database using MQTT at the server then you can do that.

  • @tronauts1699
    @tronauts1699 2 місяці тому

    I have adjusted mqtt_broker and mqtt_topic in VSC with MQTTX and can also publish and subscribe... but at the end of the experiment, the dashboard says Connection Status: Disconnect/Closed. Why did it happen?

  • @inhlong7946
    @inhlong7946 10 місяців тому +1

    I changed brokerUrl but
    Why can't I publish data from MQTTX?

    • @DonskyTech
      @DonskyTech  10 місяців тому

      Hey, Maybe try directly with MQTTX with your broker first. See if you could receive MQTT messages.

  • @edinetgrunhed6000
    @edinetgrunhed6000 Рік тому +1

    did you try external ip address other than localhost?

    • @DonskyTech
      @DonskyTech  Рік тому

      I have been testing locally on the same laptop but looking at the documentation from here mosquitto.org/man/mosquitto-conf-5.html, you can set the bind address from the listener settings.

    • @sridhars3467
      @sridhars3467 Рік тому

      Great Vid... Subscribing you right away.

  • @Fans_CristianoRonaldo7
    @Fans_CristianoRonaldo7 11 місяців тому

    how to run this web dashboard..?

    • @DonskyTech
      @DonskyTech  11 місяців тому

      Hey, check the Github page or instructions

  • @fogus3985
    @fogus3985 11 місяців тому

    Web dashboard is disconnected, what should I do?

    • @DonskyTech
      @DonskyTech  11 місяців тому

      Hey, Sorry what do you mean by disconnected?

  • @muhammadrifqy24
    @muhammadrifqy24 7 місяців тому

    i got issue
    ErrorWithReasonCode: Connection refused: Not authorized

    • @DonskyTech
      @DonskyTech  7 місяців тому

      Your MQTT might be configured with password.. You probably need to send your credentials.

    • @muhammadrifqy24
      @muhammadrifqy24 7 місяців тому +1

      @@DonskyTech can you tell me how do i send the credentials?