• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Examples of physical sensor data

Scheduled Pinned Locked Moved Unsolved Requests
5 Posts 4 Posters 641 Views 4 Watching
Loading More Posts
  • 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
    ankonaskiff17
    last edited by Aug 1, 2023, 11:11 PM

    I’m just looking for any example modules out in MM land that pull in and present data from weather sensors inside a MM module. Just want to look at them for now.
    Have multiple weather oriented sensors such as wind speed, wind direction and total rainfall that have been sitting idle and want to see how that works

    S B C 3 Replies Last reply Aug 1, 2023, 11:37 PM Reply Quote 0
    • S Offline
      sdetweil @ankonaskiff17
      last edited by Aug 1, 2023, 11:37 PM

      @ankonaskiff17 usually the sensors provide some API. return a json string

      name:value ( all things in double quotes as it’s json)

      some return csv type format, text

      number. number, number
      the header row defines what each column means.

      then u call the API, get the data and parse it into usable variables and use those to create the web content for the module output.

      I replaced the windows in my house. I wanted to see what kind of difference there was. so I built a bunch of dht22 temp/humidity sensors attached to esp32 processors, with a little web server running inside… the API I built sends back the current temp/humidity. my module calls the API on each device(list of addresses) to get the data.

      maybe could have used mqtt to have the
      processors push their data instead.

      the code in the processor reads the sendsor on demand. the module controls the cycle time. the data is json format.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • B Offline
        BKeyport Module Developer @ankonaskiff17
        last edited by Aug 2, 2023, 5:29 PM

        @ankonaskiff17 take a look at the https://github.com/Tom-Hirschberger/MMM-CommandToNotification module, along with it’s co-module https://github.com/Tom-Hirschberger/MMM-ValuesByNotification

        I use these to convert two physical sensor’s API calls to MagicMirror, as well as a JSON format web based outdoor sensor.

        The "E" in "Javascript" stands for "Easy"

        1 Reply Last reply Reply Quote 1
        • C Offline
          cyberdie @ankonaskiff17
          last edited by Aug 6, 2023, 8:55 AM

          @ankonaskiff17 sorry for the Off Topic but, what are you using for wind speed metering?

          A 1 Reply Last reply Aug 7, 2023, 1:32 AM Reply Quote 0
          • A Offline
            ankonaskiff17 @cyberdie
            last edited by Aug 7, 2023, 1:32 AM

            @cyberdie This unit. I pulled picture from Sparkfun although I did not buy it from Sparkfun. They are all over the web.
            Screenshot 2023-08-06 211907.png

            I bought mine from Argent Data Systems
            It has wind speed wind direction and a tipping bucket style rain gage.

            I also bought a this hat from BC Robotics
            Weather Hat.jpg

            Poke around on BC Robotics and they have same device for wind speed, direction, etc. Make notice of price on Argent and BC Robotics.

            Hat is nice because it has room for other sensors to solder to board.

            BC Robotics also have a n EXCELLENT tutorial for how to set it up and program everything to spit the data out in a readable format.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              2/5
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy