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.

    Mi Temperature2 with xiaomi hygromether

    Scheduled Pinned Locked Moved Requests
    17 Posts 6 Posters 3.3k Views 5 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.
    • S Offline
      sdetweil @rubinho101
      last edited by sdetweil

      @rubinho101 followup to @Bugsounet’s recommendation,

      npm init
      Will prompt u thru creating the package.json
      npm install ??? -save will add the library ?? to the package.json dependencies, so npm install will do the work.

      For non-node libraries, u can use the postinstall script to do the work for your pip libraries.

      And u could use sed to change the code u need to fix…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 1 Reply Last reply Reply Quote 0
      • rubenixR Offline
        rubenix
        last edited by

        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:

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          rubinho101 @sdetweil
          last edited by

          @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

          S 1 Reply Last reply Reply Quote 0
          • R Offline
            rubinho101 @rubenix
            last edited by

            @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.

            rubenixR 1 Reply Last reply Reply Quote 0
            • rubenixR Offline
              rubenix @rubinho101
              last edited by

              @rubinho101 said in 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.

              yeah thats it, thats the link I posted on the 1st post actually, and it works with that indeed (read first post)

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @rubinho101
                last edited by

                @rubinho101 u need to.mark the postinstall script executable.

                chmod +x filename 
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • R Offline
                  rubinho101
                  last edited by

                  @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.

                  1 Reply Last reply Reply Quote 1
                  • 1
                  • 2
                  • 2 / 2
                  • First post
                    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