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. Development
  3. MQTT getting data from database - New Domotic Project

MQTT getting data from database - New Domotic Project

Scheduled Pinned Locked Moved Development
domoticmqttremote nodelowpoweropenhab
4 Posts 2 Posters 1.5k Views 3 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.
  • A Offline
    A Offline
    achumpitazc
    wrote on last edited by
    #1

    Hi guys,

    I´m working on a domotic project, my architecture is as follows:

    0_1496253686677_upload-e226a648-80de-4197-8f3c-26b8dc75797a

    I have already developed the 2.4GHz RF Low Power remote nodes and its receptor. These nodes are fully configurable via Serial Interface (FTDI). You can work with any listed sensor as you can see in this image:

    0_1496253729857_upload-f29959d4-c0bb-4ec1-97e6-74a4439ba8b1

    These nodes work at 1Mhz and are based in Atmega328p and are fed by two AA batteries. I´m still having a hard time trying to measure the current consumption using a shunt resistor but my calculations indicates that the remote modules will work for over a year (depending on the transmitting time). An example of the transmission of data is shown in this image:

    0_1496253767998_upload-c5d3d952-d950-46c1-bb32-fc49fd8019f3

    The next step (where I need your help guys) is to send this data to a Raspberry Pi through 2-wire serial communication and store it in a database. I need this data to be handled with ¿OpenHab? and MQTT protocol. Do you guys know if its possible to extract/write data from a database with MQTT protocol?

    If you are interested in my project we may work together, I still have no experience with these kind of gateways and your experience will be appreciated.

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

      There are some examples of using Node-Red to store MQTT data to different DBs. I think it could be the easiest way without coding too much.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        achumpitazc
        wrote on last edited by
        #3

        Thanks Gohan, but what about getting stored data from a database and use it in MQTT?

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

          I'd say it is the same but it would you will need to do more coding I guess. There is a node-red Google group if you want to ask there also.

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


          5

          Online

          11.7k

          Users

          11.2k

          Topics

          113.0k

          Posts


          Copyright 2019 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