Read the statement by Michael Teeuw here.
Examples of physical sensor data
-
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 -
@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.
-
@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.
-
@ankonaskiff17 sorry for the Off Topic but, what are you using for wind speed metering?
-
@cyberdie This unit. I pulled picture from Sparkfun although I did not buy it from Sparkfun. They are all over the web.
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
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.