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. Feature Requests
  3. Gateway for Pachube Or Mysql Database

Gateway for Pachube Or Mysql Database

Scheduled Pinned Locked Moved Feature Requests
arduinomysqlpachubeservergateway
6 Posts 4 Posters 4.7k Views 2 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.
  • L Offline
    L Offline
    legeantvert
    wrote on last edited by legeantvert
    #1

    Hello,

    I have started Home automation one year ago and I'm really interested on this project.
    As soon as understood, the gateway are always "server" gateway and are not sending data automatically like a "client" can send information on each reception.

    My idea is to be able to use gateway to send informations from sensors to a storage place in order to be able to make charts and generate actions.

    My first idea is to use the ethernet gateway and make sketch to make a html request to a php server with Post argument as var to be integrated inside a database. like this project: http://www.instructables.com/id/Save-data-of-temperature-and-humidity-on-MySQL-wit/
    I already have make this kind of plateform with lots of sensors on same arduino but the idea to be able to place sensors everywhere with RF transmition is really a good view, missing at home for me!

    The second idea is to make pachube request to store datas. using this kind of sketch => http://arduino.cc/en/Tutorial/PachubeCient )

    I don't know if someone have think about a similar idea?
    What are your opinion about this? Some recommendation?

    Thank you.

    Legeantvert

    -Oregon Scientific meteo sensors 433mhz
    -Vera3 fw:1.5.408fr
    -Zwave 3HSM02 1Duwi5457 2*AD142-6
    -IPX800v3
    -3 X Foscam
    -Synology DS413
    -Domoticz on Raspberry => on progress
    -MySensors Serial Gw + some arduino sensors => on progress

    1 Reply Last reply
    0
    • epierreE Offline
      epierreE Offline
      epierre
      Hero Member
      wrote on last edited by
      #2

      Hello,

      I've taken the rever approach:

      • sensors are received by a gateway and pushed in Domoticz
      • I take all sensor values and I automagically push them every 10mn to pachube.

      cosmodom4

      This way I have best of both world, as long as the middle database correspond to mysensors capacities.

      z-wave - Vera -> Domoticz
      rfx - Domoticz <- MyDomoAtHome <- Imperihome
      mysensors -> mysensors-gw -> Domoticz

      1 Reply Last reply
      0
      • L Offline
        L Offline
        legeantvert
        wrote on last edited by legeantvert
        #3

        Hi, Thank you for your ideas.
        I'm not sure but as I have understand your script, in fact, the script is client and ask to the Mysensor gateway the values which have been send back to the domoticz script and sent to pachube.

        So: perl script => MysensorGW => perl script => Pachube
        the refrech rate is done by the perl script

        The problem of this, if i'm not wrong is to have a high speed in case you would like to see a door opening and manage alarm system for example. The problem is also for me to be able to receive action from external system to send relay action for exemple => so need gateway to be both server and client...

        On the same way, i dont understand how and where are stored the values inside the gateway if not used on each reception, are they stored somewhere to be able to answer them when serial request arrive?
        BR.

        Legeantvert

        -Oregon Scientific meteo sensors 433mhz
        -Vera3 fw:1.5.408fr
        -Zwave 3HSM02 1Duwi5457 2*AD142-6
        -IPX800v3
        -3 X Foscam
        -Synology DS413
        -Domoticz on Raspberry => on progress
        -MySensors Serial Gw + some arduino sensors => on progress

        epierreE 1 Reply Last reply
        0
        • YveauxY Offline
          YveauxY Offline
          Yveaux
          Mod
          wrote on last edited by
          #4

          See my post regarding MQTT here http://forum.mysensors.org/topic/175/open-source-home-automation-software/18

          With MQTT its easy to subscribe to the same sensor twice, once to publish the data to e.g pachube, once from your home automation software.

          http://yveaux.blogspot.nl

          1 Reply Last reply
          0
          • wmylionelW Offline
            wmylionelW Offline
            wmylionel
            wrote on last edited by
            #5

            Here's how I'm charting the data collected,

            http://forum.mysensors.org/topic/61/mysensors-electricimp-xively

            Electric Imp can easily be replaced with arduino with connection to web via ethernet or wifi.

            1 Reply Last reply
            0
            • L legeantvert

              Hi, Thank you for your ideas.
              I'm not sure but as I have understand your script, in fact, the script is client and ask to the Mysensor gateway the values which have been send back to the domoticz script and sent to pachube.

              So: perl script => MysensorGW => perl script => Pachube
              the refrech rate is done by the perl script

              The problem of this, if i'm not wrong is to have a high speed in case you would like to see a door opening and manage alarm system for example. The problem is also for me to be able to receive action from external system to send relay action for exemple => so need gateway to be both server and client...

              On the same way, i dont understand how and where are stored the values inside the gateway if not used on each reception, are they stored somewhere to be able to answer them when serial request arrive?
              BR.

              epierreE Offline
              epierreE Offline
              epierre
              Hero Member
              wrote on last edited by
              #6

              @legeantvert said:

              On the same way, i dont understand how and where are stored the values inside the gateway if not used on each reception, are they stored somewhere to be able to answer them when serial request arrive?

              You could bypass this on some kind of events obviously !

              Actually my perl gateway is acting as the server Vera is for the arduino gateway. So from there I can trigger external URL, store data in a sqlite3 database... and so on !

              z-wave - Vera -> Domoticz
              rfx - Domoticz <- MyDomoAtHome <- Imperihome
              mysensors -> mysensors-gw -> Domoticz

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


              15

              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