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.

    MagicMirror² v2.12.0 & MMM-DHT-Sensor (temperatur & humidity)

    Scheduled Pinned Locked Moved Troubleshooting
    17 Posts 4 Posters 1.1k 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.
    • S Do not disturb
      sdetweil @Stef
      last edited by sdetweil

      @Stef cause I used sudo, some stuff is now connected to root user
      from the module folder
      do

      sudo chown -R pi *
      sudo chown -R pi *.*
      

      and rerun the electron rebuild
      show us the errors

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        Stef
        last edited by

        @sdetweil
        ok…

        since the post would be to long, you will find it here

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @Stef
          last edited by sdetweil

          @Stef fun

          another try
          from the module folder

          rm -rf node_modules
          rm package-lock.json
          npm install nan
          npm install
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil sorry I couldn’t test it earlier…

            pi@mirrorpi:~/MagicMirror/modules $ rm -rf node_modules
            pi@mirrorpi:~/MagicMirror/modules $ rm package-locj.json
            rm: das Entfernen von 'package-locj.json' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
            pi@mirrorpi:~/MagicMirror/modules $ npm install nan
            + nan@2.14.1
            added 1 package from 8 contributors and audited 1330 packages in 76.427s
            
            92 packages are looking for funding
              run `npm fund` for details
            
            found 1 low severity vulnerability
              run `npm audit fix` to fix them, or `npm audit` for details
            pi@mirrorpi:~/MagicMirror/modules $ npm audit fix
            up to date in 56.381s
            
            92 packages are looking for funding
              run `npm fund` for details
            
            fixed 0 of 1 vulnerability in 1295 scanned packages
              1 vulnerability required manual review and could not be updated
            pi@mirrorpi:~/MagicMirror/modules $ npm install
            
            > magicmirror@2.12.0 install /home/pi/MagicMirror
            > echo "Installing vendor files ...
            " && cd vendor && npm install --loglevel=error
            
            Installing vendor files ...
            
            audited 150 packages in 14.543s
            found 8 vulnerabilities (7 low, 1 high)
              run `npm audit fix` to fix them, or `npm audit` for details
            
            > magicmirror@2.12.0 postinstall /home/pi/MagicMirror
            > npm run install-fonts && echo "MagicMirror installation finished successfully! 
            "
            
            
            > magicmirror@2.12.0 install-fonts /home/pi/MagicMirror
            > echo "Installing fonts ...
            " && cd fonts && npm install --loglevel=error
            
            Installing fonts ...
            
            audited 1 package in 1.136s
            found 0 vulnerabilities
            
            MagicMirror installation finished successfully! 
            
            audited 1330 packages in 87.2s
            
            92 packages are looking for funding
              run `npm fund` for details
            
            found 1 low severity vulnerability
              run `npm audit fix` to fix them, or `npm audit` for details
            pi@mirrorpi:~/MagicMirror/modules $ npm audit fix
            npm ERR! code ENOAUDIT
            npm ERR! audit Your configured registry (https://registry.npmjs.org/) may not support audit requests, or the audit endpoint may be temporarily unavailable.
            npm ERR! audit The server said: <!DOCTYPE html>
            npm ERR! audit <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
            npm ERR! audit <!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
            npm ERR! audit <!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
            npm ERR! audit <!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
            npm ERR! audit <head>
            npm ERR! audit <meta http-equiv="refresh" content="0">
            npm ERR! audit 
            npm ERR! audit <title>prod-frontdoor-lb-west.internal.npmjs.com | 502: Bad gateway</title>
            npm ERR! audit <meta charset="UTF-8" />
            npm ERR! audit <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            npm ERR! audit <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
            npm ERR! audit <meta name="robots" content="noindex, nofollow" />
            npm ERR! audit <meta name="viewport" content="width=device-width,initial-scale=1" />
            npm ERR! audit <link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css" media="screen,projection" />
            npm ERR! audit <!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" type="text/css" media="screen,projection" /><![endif]-->
            npm ERR! audit <style type="text/css">body{margin:0;padding:0}</style>
            npm ERR! audit 
            npm ERR! audit 
            npm ERR! audit 
            npm ERR! audit 
            npm ERR! audit </head>
            npm ERR! audit <body>
            npm ERR! audit <div id="cf-wrapper">
            npm ERR! audit 
            npm ERR! audit     
            npm ERR! audit 
            npm ERR! audit     <div id="cf-error-details" class="cf-error-details-wrapper">
            npm ERR! audit         <div class="cf-wrapper cf-error-overview">
            npm ERR! audit             <h1>
            npm ERR! audit               
            npm ERR! audit               <span class="cf-error-type">Error</span>
            npm ERR! audit               <span class="cf-error-code">502</span>
            npm ERR! audit               <small class="heading-ray-id">Ray ID: 5bebb812163005b7 &bull; 2020-08-06 21:05:59 UTC</small>
            npm ERR! audit             </h1>
            npm ERR! audit             <h2 class="cf-subheadline">Bad gateway</h2>
            npm ERR! audit         </div><!-- /.error-overview -->
            npm ERR! audit         
            npm ERR! audit         <div class="cf-section cf-highlight cf-status-display">
            npm ERR! audit             <div class="cf-wrapper">
            npm ERR! audit                 <div class="cf-columns cols-3">
            npm ERR! audit                   
            npm ERR! audit <div id="cf-browser-status" class="cf-column cf-status-item cf-browser-status ">
            npm ERR! audit   <div class="cf-icon-error-container">
            npm ERR! audit     <i class="cf-icon cf-icon-browser"></i>
            npm ERR! audit     <i class="cf-icon-status cf-icon-ok"></i>
            npm ERR! audit   </div>
            npm ERR! audit   <span class="cf-status-desc">You</span>
            npm ERR! audit   <h3 class="cf-status-name">Browser</h3>
            npm ERR! audit   <span class="cf-status-label">Working</span>
            npm ERR! audit </div>
            npm ERR! audit 
            npm ERR! audit <div id="cf-cloudflare-status" class="cf-column cf-status-item cf-cloudflare-status ">
            npm ERR! audit   <div class="cf-icon-error-container">
            npm ERR! audit     <i class="cf-icon cf-icon-cloud"></i>
            npm ERR! audit     <i class="cf-icon-status cf-icon-ok"></i>
            npm ERR! audit   </div>
            npm ERR! audit   <span class="cf-status-desc">Frankfurt</span>
            npm ERR! audit   <h3 class="cf-status-name">Cloudflare</h3>
            npm ERR! audit   <span class="cf-status-label">Working</span>
            npm ERR! audit </div>
            npm ERR! audit 
            npm ERR! audit <div id="cf-host-status" class="cf-column cf-status-item cf-host-status cf-error-source">
            npm ERR! audit   <div class="cf-icon-error-container">
            npm ERR! audit     <i class="cf-icon cf-icon-server"></i>
            npm ERR! audit     <i class="cf-icon-status cf-icon-error"></i>
            npm ERR! audit   </div>
            npm ERR! audit   <span class="cf-status-desc">prod-frontdoor-lb-west.internal.npmjs.com</span>
            npm ERR! audit   <h3 class="cf-status-name">Host</h3>
            npm ERR! audit   <span class="cf-status-label">Error</span>
            npm ERR! audit </div>
            npm ERR! audit 
            npm ERR! audit                 </div>
            npm ERR! audit               
            npm ERR! audit             </div>
            npm ERR! audit         </div><!-- /.status-display -->
            npm ERR! audit 
            npm ERR! audit         <div class="cf-section cf-wrapper">
            npm ERR! audit             <div class="cf-columns two">
            npm ERR! audit                 <div class="cf-column">
            npm ERR! audit                     <h2>What happened?</h2>
            npm ERR! audit                     <p>The web server reported a bad gateway error.</p>
            npm ERR! audit                 </div>
            npm ERR! audit               
            npm ERR! audit                 <div class="cf-column">
            npm ERR! audit                     <h2>What can I do?</h2>
            npm ERR! audit                     <p>Please try again in a few minutes.</p>
            npm ERR! audit                 </div>
            npm ERR! audit             </div>
            npm ERR! audit               
            npm ERR! audit         </div><!-- /.section -->
            npm ERR! audit 
            npm ERR! audit         <div class="cf-error-footer cf-wrapper">
            npm ERR! audit   <p>
            npm ERR! audit     <span class="cf-footer-item">Cloudflare Ray ID: <strong>5bebb812163005b7</strong></span>
            npm ERR! audit     <span class="cf-footer-separator">&bull;</span>
            npm ERR! audit     <span class="cf-footer-item"><span>Your IP</span>: 95.223.72.58</span>
            npm ERR! audit     <span class="cf-footer-separator">&bull;</span>
            npm ERR! audit     <span class="cf-footer-item"><span>Performance &amp; security by</span> <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=error_footer" id="brand_link" target="_blank">Cloudflare</a></span>
            npm ERR! audit     
            npm ERR! audit   </p>
            npm ERR! audit </div><!-- /.error-footer -->
            npm ERR! audit 
            npm ERR! audit 
            npm ERR! audit     </div><!-- /#cf-error-details -->
            npm ERR! audit </div><!-- /#cf-wrapper -->
            npm ERR! audit </body>
            npm ERR! audit </html>
            npm ERR! audit 
            npm ERR! audit 
            
            npm ERR! A complete log of this run can be found in:
            npm ERR!     /home/pi/.npm/_logs/2020-08-06T21_05_59_816Z-debug.log
            pi@mirrorpi:~/MagicMirror/modules $ 
            
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              Stef @Stef
              last edited by

              @Stef oh and it won’t start… 😕

              Again, thank you for your help!

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Stef
                last edited by sdetweil

                @Stef yeh, my screwup. u did this for the modules folder
                not the dht module folder
                and u did the audit fix… ouch

                and I had a misspelling, supposed to be package-lock.json

                ok, tough restart

                cd ~/MagicMirror
                rm -rf node_modules
                rm package-lock.json
                npm install
                

                repeat the last 3 steps in each module folder that contains a package.json file

                in the dht sensor folder, ONLY, do

                rm -rf node_modules
                rm package-lock.json
                npm install nan -- save
                npm install
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Offline
                  Stef
                  last edited by

                  YES! FINALLY!

                  Thank you so very much @sdetweil !!!
                  That did the trick! :D

                  S 1 Reply Last reply Reply Quote 1
                  • S Do not disturb
                    sdetweil @Stef
                    last edited by

                    @Stef woohoo! thanks for the feedback

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 1
                    • BKeyportB Offline
                      BKeyport Module Developer
                      last edited by

                      hey, @Stef

                      Do you have any trouble with the module getting stuck? I’m having a heck of a time getting it to update if my mirror is up more than 30-40 minutes. :(

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

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        Stef @BKeyport
                        last edited by

                        @BKeyport Nope i did not experienced that…

                        1 Reply Last reply Reply Quote 0
                        • 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