@sdetweil I added the postinstaller.sh and I hope it’s easier for newbies to get the module run. In addition, I added an option for the SDS011 PM Air Quality sensor and a correction function based on current humidity.
Read the statement by Michael Teeuw here.
Best posts made by rubinho101
-
RE: Mi Temperature2 with xiaomi hygromether
Latest posts made by rubinho101
-
RE: Mi Temperature2 with xiaomi hygromether
@sdetweil I added the postinstaller.sh and I hope it’s easier for newbies to get the module run. In addition, I added an option for the SDS011 PM Air Quality sensor and a correction function based on current humidity.
-
RE: Mi Temperature2 with xiaomi hygromether
@rubenix said in Mi Temperature2 with xiaomi hygromether:
Thanks @rubinho101 I’ve the LYWSD03MMC version not the LYWSDCGQ so I don’t know if this actually will work…
Instructions are detailed but seems quite confusing for a newbie like me…:confused_face:To my understanding there are some fundamental differences between the LYWSDCGQ and LYWSD03MMC. Whereas the former sends the data in the Advertisement Channels (so basically anyone can read the values), your sensor requires (a more privacy friendly) actual connection. I assume while this connection is established no other BLE devices can be parsed. https://github.com/JsBergbau/MiTemperature2 should work for your sensor. Maybe I find some time to integrate this library as well and a concept for BLE balancing depending on the type and number of sensors.
-
RE: Mi Temperature2 with xiaomi hygromether
@sdetweil thanks for your input. I have setup the package.json and postinstaller.sh. The postinstaller works fine when I run bash postinstaller.sh from the console. But when the package.json invokes the postinstaller I got the following errors:
sh: 1: img/postinstaller.sh: Permission denied npm ERR! code ELIFECYCLE npm ERR! errno 126 npm ERR! mmm-01zm@0.0.5 postinstall: `img/postinstaller.sh` npm ERR! Exit status 126 npm ERR! npm ERR! Failed at the mmm-01zm@0.0.5 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
How can the shell be executed without giving it permissions / running it manually from the console?
Thanks
-
RE: Mi Temperature2 with xiaomi hygromether
@rubenix @Albert2002 I created a module to display the values without the gateway. It works fine for me.
-
MMM-01ZM for Xiaomi BLE Sensors without using the Gateway
Dear community,
I finally had the chance to finish my first module for MagicMirror². I used python libraries to parse Xiaomi LYWSDCGQ 01ZM Temperature and Humidity sensors directly and display them. Hence, you don’t need the Xiaomi Gateway and parse the sensors directly via BLE.
I will add more functions and a neater layout in the future, for now it simply works and displays as many sensors as you got.
You can find the module on Github.
https://github.com/rubinho101/MMM-01ZM -
RE: Mi Temperature2 with xiaomi hygromether
Hi @rubenix , I wanna do the same thing without a gateway. I got a LYWSDCGQ Temp and Humidity sensor. I am able to read the values with mitemp and btlewrap on a Rpi4, but dont know yet how to plot the data to MMM efficiently. Any ideas?