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 Offline
      Stef @sdetweil
      last edited by

      @sdetweil
      Remembered that
      Did that
      Did not work
      Still the same error message…

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

        @Stef asked friend to look at this too. we have been discussing right way to fix. so hang on

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @Stef ok, let’s try this

          cd~/MagicMirror/modules
          cd MMM-DHT-Sensor
          npm i electron-rebuild
          node node_modules/.bin/electron-rebuild
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by

            note:
            Don’t do npm fix npm audit fix npm rebuild or other command like @sdetweil says
            otherwise you will have the same error !

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

              @sdetweil thanks a million for your effort… unfortunatley, the last command gives me back a bunch of errors… even with sudo…

              i ran it for a third time and got this:

              pi@mirrorpi:~/MagicMirror/modules/MMM-DHT-Sensor $ node node_modules/.bin/electron-rebuild
              ✖ Rebuild Failed
              
              An unhandled error occurred inside electron-rebuild
              gyp info it worked if it ends with ok
              gyp info using node-gyp@6.1.0
              gyp info using node@12.14.0 | linux | arm
              gyp ERR! clean error 
              gyp ERR! stack Error: EACCES: permission denied, unlink 'build/Makefile'
              gyp ERR! System Linux 4.19.66-v7+
              gyp ERR! command "/usr/local/bin/node" "/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/.bin/node-gyp" "rebuild" "--target=6.1.7" "--arch=arm" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
              gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/node-dht-sensor
              gyp ERR! node -v v12.14.0
              gyp ERR! node-gyp -v v6.1.0
              gyp ERR! not ok 
              
              Failed with exit code: 1
              
              Error: gyp info it worked if it ends with ok
              gyp info using node-gyp@6.1.0
              gyp info using node@12.14.0 | linux | arm
              gyp ERR! clean error 
              gyp ERR! stack Error: EACCES: permission denied, unlink 'build/Makefile'
              gyp ERR! System Linux 4.19.66-v7+
              gyp ERR! command "/usr/local/bin/node" "/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/.bin/node-gyp" "rebuild" "--target=6.1.7" "--arch=arm" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
              gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/node-dht-sensor
              gyp ERR! node -v v12.14.0
              gyp ERR! node-gyp -v v6.1.0
              gyp ERR! not ok 
              
              Failed with exit code: 1
                  at SafeSubscriber._error (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/spawn-rx/lib/src/index.js:267:84)
                  at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:205:16)
                  at SafeSubscriber.error (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:156:26)
                  at Subscriber._error (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:92:26)
                  at Subscriber.error (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:72:18)
                  at MapSubscriber.Subscriber._error (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:92:26)
                  at MapSubscriber.Subscriber.error (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:72:18)
                  at SafeSubscriber._next (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/spawn-rx/lib/src/index.js:242:65)
                  at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:205:16)
                  at SafeSubscriber.next (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:143:22)
              
              

              @Bugsounet which command should i run?

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