Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. Awesome tutorial on MQTT Node Red

Awesome tutorial on MQTT Node Red

Scheduled Pinned Locked Moved General Discussion
27 Posts 5 Posters 10.7k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • gohanG gohan

    @scalz I am from IT too and I work with databases in the past and I saw you can do many things with a SQL database, you can optimize it for different tasks. Of course the db on its own doesn't have dashboards and reports but you need an external tool for them. I agree that if you have a raspberry you would prefer a lightweight database.

    YveauxY Offline
    YveauxY Offline
    Yveaux
    Mod
    wrote on last edited by
    #16

    @gohan You probably want to graph your data. Especially when combining different datasets, sampled asynchronous at non equidistant intervals you will have a lot of trouble plotting it when it is stored in a standard relational database like MySQL.
    Time series databases are perfectly fit for sensor data from different sources, like your MySensors network.
    Tools like Grafana and Influxdb make the perfect combination for this!

    http://yveaux.blogspot.nl

    1 Reply Last reply
    2
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #17

      As I said before I never used influxdb and grafana, but it is in my to do list so I am just asking some questions as I "grew up" working most of the times on SQL server

      YveauxY 1 Reply Last reply
      0
      • NeverDieN Offline
        NeverDieN Offline
        NeverDie
        Hero Member
        wrote on last edited by NeverDie
        #18

        The above motivated me to put together this upgraded board for nRF52832 and ESP-LINK. This particular fork is not perfected, but it is better than the board I previously posted in that the nRF52832 can be programmed from the top, without having to unplug it from the Wemos:
        0_1513363273522_upgrade1.jpg
        0_1513363320334_upgrade2.jpg

        1 Reply Last reply
        0
        • NeverDieN Offline
          NeverDieN Offline
          NeverDie
          Hero Member
          wrote on last edited by
          #19

          Connection to Mosquitto on the Pi can be configured through a webpage presented by ESP-LINK from the ESP8266 :
          0_1513364912472_esplink_mqtt.png

          1 Reply Last reply
          0
          • gohanG gohan

            As I said before I never used influxdb and grafana, but it is in my to do list so I am just asking some questions as I "grew up" working most of the times on SQL server

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by
            #20

            @gohan said in Awesome tutorial on MQTT Node Red:

            As I said before I never used influxdb and grafana, but it is in my to do list so I am just asking some questions as I "grew up" working most of the times on SQL server

            I understand. I also grew up with relational databases and did my first iot steps with them too. Then I found influxdb and never want to go back!

            Just sharing my enthusiasm and hoping to spare you time by making the switch now ;-)

            http://yveaux.blogspot.nl

            1 Reply Last reply
            4
            • NeverDieN Offline
              NeverDieN Offline
              NeverDie
              Hero Member
              wrote on last edited by
              #21

              Guys,
              How are you getting your data into the influxdb and grafana? Are you using Node Red, Domoticz plug-ins, or some other method?

              1 Reply Last reply
              0
              • scalzS Offline
                scalzS Offline
                scalz
                Hardware Contributor
                wrote on last edited by
                #22

                on my side, I'm injecting data from node-red to influxdb, grafana is connected to influxdb. my controller is also on the same rpi (v3, with ssd). I'm planning to add some grafana graph to my controller dashboard (because I prefer my controller for dashboards).

                NeverDieN 1 Reply Last reply
                1
                • scalzS scalz

                  on my side, I'm injecting data from node-red to influxdb, grafana is connected to influxdb. my controller is also on the same rpi (v3, with ssd). I'm planning to add some grafana graph to my controller dashboard (because I prefer my controller for dashboards).

                  NeverDieN Offline
                  NeverDieN Offline
                  NeverDie
                  Hero Member
                  wrote on last edited by NeverDie
                  #23

                  @scalz said in Awesome tutorial on MQTT Node Red:

                  I prefer my controller for dashboards

                  Why? Also, which controller are you using?

                  1 Reply Last reply
                  0
                  • scalzS Offline
                    scalzS Offline
                    scalz
                    Hardware Contributor
                    wrote on last edited by scalz
                    #24

                    @NeverDie
                    with nodered, you can also do some UI with nodered-contrib-ui. and use grafana for graphing for example. Some people do that. without any additional controller like domoticz. for simplicity I think, nodered as standalone controller.

                    I'm using Jeedom. It's french opensource sw. There is multilanguage but not sure if it's very complete unfortunately.. never tried to change the language.
                    It provides a nice and easy way to design custom designs for nice UI, without code, else it's not very hard to add some piece of html/css too .
                    If I wanted to do the same, with nodered as standalone controller and some external package for ui, or from scratch, I would have to reinvent the wheel to get the same UI (no time).
                    Of course I'm not using an additional controller just for that, but also for plugins :) (again no wheel to reinvent)

                    I should have said UI instead of dashboard. what I meant is I just want to have access to everything from one place (UI) and not struggle between urls.

                    note: you'll need linux socat command. for serial->nodered->domoticz
                    there is a link in the forum, in nodered section I think

                    1 Reply Last reply
                    0
                    • gohanG Offline
                      gohanG Offline
                      gohan
                      Mod
                      wrote on last edited by
                      #25

                      If you have ethernet or mqtt gateway it is easier to connect more controllers at the same time :-)

                      NeverDieN 1 Reply Last reply
                      1
                      • gohanG gohan

                        If you have ethernet or mqtt gateway it is easier to connect more controllers at the same time :-)

                        NeverDieN Offline
                        NeverDieN Offline
                        NeverDie
                        Hero Member
                        wrote on last edited by NeverDie
                        #26

                        @gohan said in Awesome tutorial on MQTT Node Red:

                        If you have ethernet or mqtt gateway it is easier to connect more controllers at the same time :-)

                        Yeah, I'm assuming that if each gateway is connected to the same MQTT broker, and the same with each controller (if there's more than one, that is), then you can mix and match however you want. In theory anyway. I haven't done it yet, so maybe there are gotcha's along the way.

                        1 Reply Last reply
                        0
                        • NeverDieN Offline
                          NeverDieN Offline
                          NeverDie
                          Hero Member
                          wrote on last edited by NeverDie
                          #27

                          Now that @nca78 has brought it up, has anyone here looked into somehow integrating TensorFlow, or something like it, into their home automation? Other than replicating the Nest thermostat, what else might it do that would be useful?
                          https://www.tensorflow.org/

                          1 Reply Last reply
                          1
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          23

                          Online

                          11.7k

                          Users

                          11.2k

                          Topics

                          113.1k

                          Posts


                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • MySensors
                          • OpenHardware.io
                          • Categories
                          • Recent
                          • Tags
                          • Popular