Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Solved EXT-Pir doesn't work on 2.19

    EXT-Pir
    4
    16
    93
    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
      Selyjohns last edited by

      Hi @bugsounet and @all
      Because MMM-PIR-Sensor isn’t maintened anymore, I want to switch on EXT-Screen and EXT-Pir to power on my screen only on move detection of my PIR Sensor.

      EXT-Screen seem functionnal, my screen is on during the delay, and next it switch off.

      First problem :
      When i was using MMM-Pir-Sensor, the screen was displaying “Please verify VGA” and turn off after few second only.
      With Ext-Screen, the same message is displayed during 1 minute (or more), then switch off…Do you know why they are now this important delay before really switch off ?

      Second problem :
      EXT-Pir doesn’t wake up the screen…The GPIO is correct, but my screen doesn’t power on.

      Maybe an important detail : During the installation of the two module, an error is displayed. Please see attach log.
      It’s because 2.19, or maybe the version of node or npm ?

      here’s my config :

      pi@MagicMirror:~/MagicMirror $ cat package.json | grep version
      "version": "2.19.0",
      pi@MagicMirror:~/MagicMirror/config $ npm --version
      8.1.4
      pi@MagicMirror:~/MagicMirror/config $ node --version
      v16.13.0
      

      My config.js

                      {
                      module: 'EXT-Screen',
                      position: 'top_left',
                      config: {
                              delay: 30000,
                              animateBody: false,
                              ecoMode: false,
                              mode: 1
                              }
                      },
                      {
                      module: 'EXT-Pir',
                      config: {
                              debug: yes,
                              gpio: 21,
                              reverseValue: false
                              }
                      },
      

      The error during the installation of EXT-Screen

      pi@MagicMirror:~/MagicMirror/modules/EXT-Screen $ npm install
      
      > EXT-Screen@1.1.0 preinstall
      > installer/preinstall.sh
      
      Welcome to EXT-Screen v1.1.0
      
      No root checking...
      Checking EXT-Screen: pi/pi
      Checking MagicMirror: pi/root
      npm ERR! code 255
      npm ERR! path /home/pi/MagicMirror/modules/EXT-Screen
      npm ERR! command failed
      npm ERR! command sh -c installer/preinstall.sh
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2022-04-03T15_11_08_697Z-debug.log
      

      and associated logs

      pi@MagicMirror:~/MagicMirror/modules/EXT-Screen $ cat /home/pi/.npm/_logs/2022-04-03T15_11_08_697Z-debug.log
      0 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ]
      1 info using npm@8.1.4
      2 info using node@v16.13.0
      3 timing npm:load:whichnode Completed in 0ms
      4 timing config:load:defaults Completed in 9ms
      5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 3ms
      6 timing config:load:builtin Completed in 4ms
      7 timing config:load:cli Completed in 8ms
      8 timing config:load:env Completed in 2ms
      9 timing config:load:file:/home/pi/MagicMirror/modules/EXT-Screen/.npmrc Completed in 1ms
      10 timing config:load:project Completed in 9ms
      11 timing config:load:file:/home/pi/.npmrc Completed in 0ms
      12 timing config:load:user Completed in 1ms
      13 timing config:load:file:/usr/etc/npmrc Completed in 0ms
      14 timing config:load:global Completed in 1ms
      15 timing config:load:validate Completed in 0ms
      16 timing config:load:credentials Completed in 6ms
      17 timing config:load:setEnvs Completed in 4ms
      18 timing config:load Completed in 49ms
      19 timing npm:load:configload Completed in 49ms
      20 timing npm:load:setTitle Completed in 0ms
      21 timing npm:load:setupLog Completed in 1ms
      22 timing config:load:flatten Completed in 16ms
      23 timing npm:load:cleanupLog Completed in 10ms
      24 timing npm:load:configScope Completed in 0ms
      25 timing npm:load:projectScope Completed in 2ms
      26 timing npm:load Completed in 90ms
      27 timing arborist:ctor Completed in 4ms
      28 timing idealTree:init Completed in 109ms
      29 timing idealTree:userRequests Completed in 1ms
      30 silly idealTree buildDeps
      31 timing idealTree:#root Completed in 1ms
      32 timing idealTree:buildDeps Completed in 6ms
      33 timing idealTree:fixDepFlags Completed in 0ms
      34 timing idealTree Completed in 124ms
      35 timing arborist:ctor Completed in 1ms
      36 timing reify:loadTrees Completed in 182ms
      37 timing reify:diffTrees Completed in 9ms
      38 silly reify moves {}
      39 timing reify:retireShallow Completed in 1ms
      40 timing reify:createSparse Completed in 0ms
      41 timing reify:loadBundles Completed in 0ms
      42 silly audit bulk request {
      42 silly audit   '@bugsounet/screen': [ '1.1.9' ],
      42 silly audit   child_process: [ '1.0.2' ],
      42 silly audit   moment: [ '2.29.2' ],
      42 silly audit   process: [ '0.11.10' ]
      42 silly audit }
      43 timing reify:unpack Completed in 17ms
      44 timing reify:unretire Completed in 0ms
      45 timing build:queue Completed in 0ms
      46 timing build:deps Completed in 2ms
      47 timing build Completed in 3ms
      48 timing reify:build Completed in 4ms
      49 timing reify:trash Completed in 0ms
      50 timing reify:save Completed in 46ms
      51 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 780ms
      52 timing auditReport:getReport Completed in 789ms
      53 silly audit report {}
      54 timing auditReport:init Completed in 0ms
      55 timing reify:audit Completed in 793ms
      56 timing reify Completed in 1046ms
      57 timing command:install Completed in 1208ms
      58 verbose stack Error: command failed
      58 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
      58 verbose stack     at ChildProcess.emit (node:events:390:28)
      58 verbose stack     at maybeClose (node:internal/child_process:1064:16)
      58 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
      59 verbose pkgid EXT-Screen@1.1.0
      60 verbose cwd /home/pi/MagicMirror/modules/EXT-Screen
      61 verbose Linux 5.10.63-v7+
      62 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
      63 verbose node v16.13.0
      64 verbose npm  v8.1.4
      65 error code 255
      66 error path /home/pi/MagicMirror/modules/EXT-Screen
      67 error command failed
      68 error command sh -c installer/preinstall.sh
      69 verbose exit 255
      

      The error during the installation of EXT-Pir

      pi@MagicMirror:~/MagicMirror/modules/EXT-Pir $ npm install
      
      > EXT-Pir@1.0.1 preinstall
      > installer/preinstall.sh
      
      Welcome to EXT-Pir v1.0.1
      
      No root checking...
      Checking EXT-Pir: pi/pi
      Checking MagicMirror: pi/root
      npm ERR! code 255
      npm ERR! path /home/pi/MagicMirror/modules/EXT-Pir
      npm ERR! command failed
      npm ERR! command sh -c installer/preinstall.sh
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2022-04-03T15_12_07_756Z-debug.log
      

      and associated logs

      pi@MagicMirror:~/MagicMirror/modules/EXT-Pir $ cat /home/pi/.npm/_logs/2022-04-03T15_12_07_756Z-debug.log
      0 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ]
      1 info using npm@8.1.4
      2 info using node@v16.13.0
      3 timing npm:load:whichnode Completed in 1ms
      4 timing config:load:defaults Completed in 12ms
      5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 5ms
      6 timing config:load:builtin Completed in 6ms
      7 timing config:load:cli Completed in 13ms
      8 timing config:load:env Completed in 2ms
      9 timing config:load:file:/home/pi/MagicMirror/modules/EXT-Pir/.npmrc Completed in 1ms
      10 timing config:load:project Completed in 13ms
      11 timing config:load:file:/home/pi/.npmrc Completed in 0ms
      12 timing config:load:user Completed in 2ms
      13 timing config:load:file:/usr/etc/npmrc Completed in 1ms
      14 timing config:load:global Completed in 2ms
      15 timing config:load:validate Completed in 1ms
      16 timing config:load:credentials Completed in 15ms
      17 timing config:load:setEnvs Completed in 10ms
      18 timing config:load Completed in 78ms
      19 timing npm:load:configload Completed in 79ms
      20 timing npm:load:setTitle Completed in 3ms
      21 timing npm:load:setupLog Completed in 4ms
      22 timing config:load:flatten Completed in 16ms
      23 timing npm:load:cleanupLog Completed in 11ms
      24 timing npm:load:configScope Completed in 0ms
      25 timing npm:load:projectScope Completed in 19ms
      26 timing npm:load Completed in 142ms
      27 timing arborist:ctor Completed in 4ms
      28 timing idealTree:init Completed in 1007ms
      29 timing idealTree:userRequests Completed in 1ms
      30 silly idealTree buildDeps
      31 timing idealTree:#root Completed in 2ms
      32 timing idealTree:buildDeps Completed in 9ms
      33 timing idealTree:fixDepFlags Completed in 0ms
      34 timing idealTree Completed in 1044ms
      35 timing arborist:ctor Completed in 1ms
      36 timing reify:loadTrees Completed in 1534ms
      37 timing reify:diffTrees Completed in 37ms
      38 silly reify moves {}
      39 timing reify:retireShallow Completed in 1ms
      40 timing reify:createSparse Completed in 0ms
      41 timing reify:loadBundles Completed in 0ms
      42 silly audit bulk request {
      42 silly audit   '@malept/cross-spawn-promise': [ '1.1.1' ],
      42 silly audit   '@sindresorhus/is': [ '4.6.0' ],
      42 silly audit   '@szmarczak/http-timer': [ '4.0.6' ],
      42 silly audit   '@types/cacheable-request': [ '6.0.2' ],
      42 silly audit   '@types/http-cache-semantics': [ '4.0.1' ],
      42 silly audit   '@types/json-buffer': [ '3.0.0' ],
      42 silly audit   '@types/keyv': [ '3.1.4' ],
      42 silly audit   '@types/node': [ '17.0.23' ],
      42 silly audit   '@types/responselike': [ '1.0.0' ],
      42 silly audit   abbrev: [ '1.1.1' ],
      42 silly audit   ajv: [ '6.12.6' ],
      42 silly audit   'ansi-regex': [ '2.1.1', '5.0.1' ],
      42 silly audit   'ansi-styles': [ '4.3.0' ],
      42 silly audit   aproba: [ '1.2.0' ],
      42 silly audit   'are-we-there-yet': [ '1.1.7' ],
      42 silly audit   asn1: [ '0.2.6' ],
      42 silly audit   'assert-plus': [ '1.0.0' ],
      42 silly audit   asynckit: [ '0.4.0' ],
      42 silly audit   'at-least-node': [ '1.0.0' ],
      42 silly audit   'aws-sign2': [ '0.7.0' ],
      42 silly audit   aws4: [ '1.11.0' ],
      42 silly audit   'balanced-match': [ '1.0.2' ],
      42 silly audit   'base64-js': [ '1.5.1' ],
      42 silly audit   'bcrypt-pbkdf': [ '1.0.2' ],
      42 silly audit   bindings: [ '1.5.0' ],
      42 silly audit   bl: [ '4.1.0' ],
      42 silly audit   'readable-stream': [ '3.6.0', '2.3.7' ],
      42 silly audit   'brace-expansion': [ '1.1.11' ],
      42 silly audit   buffer: [ '5.7.1' ],
      42 silly audit   'cacheable-lookup': [ '5.0.4' ],
      42 silly audit   'cacheable-request': [ '7.0.2' ],
      42 silly audit   caseless: [ '0.12.0' ],
      42 silly audit   chalk: [ '4.1.2' ],
      42 silly audit   chownr: [ '2.0.0' ],
      42 silly audit   'cli-cursor': [ '3.1.0' ],
      42 silly audit   'cli-spinners': [ '2.6.1' ],
      42 silly audit   cliui: [ '7.0.4' ],
      42 silly audit   'is-fullwidth-code-point': [ '3.0.0', '1.0.0' ],
      42 silly audit   'string-width': [ '4.2.3', '1.0.2' ],
      42 silly audit   'strip-ansi': [ '6.0.1', '3.0.1' ],
      42 silly audit   clone: [ '1.0.4' ],
      42 silly audit   'clone-response': [ '1.0.2' ],
      42 silly audit   'code-point-at': [ '1.1.0' ],
      42 silly audit   'color-convert': [ '2.0.1' ],
      42 silly audit   'color-name': [ '1.1.4' ],
      42 silly audit   colors: [ '1.4.0' ],
      42 silly audit   'combined-stream': [ '1.0.8' ],
      42 silly audit   'compress-brotli': [ '1.3.6' ],
      42 silly audit   'concat-map': [ '0.0.1' ],
      42 silly audit   'console-control-strings': [ '1.1.0' ],
      42 silly audit   'core-util-is': [ '1.0.3', '1.0.2' ],
      42 silly audit   'cross-spawn': [ '7.0.3' ],
      42 silly audit   dashdash: [ '1.14.1' ],
      42 silly audit   debug: [ '4.3.3' ],
      42 silly audit   'decompress-response': [ '6.0.0' ],
      42 silly audit   'mimic-response': [ '3.1.0', '1.0.1' ],
      42 silly audit   defaults: [ '1.0.3' ],
      42 silly audit   'defer-to-connect': [ '2.0.1' ],
      42 silly audit   'delayed-stream': [ '1.0.0' ],
      42 silly audit   delegates: [ '1.0.0' ],
      42 silly audit   'detect-libc': [ '1.0.3' ],
      42 silly audit   'ecc-jsbn': [ '0.1.2' ],
      42 silly audit   'emoji-regex': [ '8.0.0' ],
      42 silly audit   'end-of-stream': [ '1.4.4' ],
      42 silly audit   'env-paths': [ '2.2.1' ],
      42 silly audit   epoll: [ '4.0.1' ],
      42 silly audit   escalade: [ '3.1.1' ],
      42 silly audit   extend: [ '3.0.2' ],
      42 silly audit   extsprintf: [ '1.3.0' ],
      42 silly audit   'fast-deep-equal': [ '3.1.3' ],
      42 silly audit   'fast-json-stable-stringify': [ '2.1.0' ],
      42 silly audit   'file-uri-to-path': [ '1.0.0' ],
      42 silly audit   'forever-agent': [ '0.6.1' ],
      42 silly audit   'form-data': [ '2.3.3' ],
      42 silly audit   'fs-extra': [ '9.1.0' ],
      42 silly audit   'fs-minipass': [ '2.1.0' ],
      42 silly audit   'fs.realpath': [ '1.0.0' ],
      42 silly audit   gauge: [ '2.7.4' ],
      42 silly audit   'get-caller-file': [ '2.0.5' ],
      42 silly audit   'get-stream': [ '5.2.0' ],
      42 silly audit   getpass: [ '0.1.7' ],
      42 silly audit   glob: [ '7.2.0' ],
      42 silly audit   got: [ '11.8.3' ],
      42 silly audit   'graceful-fs': [ '4.2.9' ],
      42 silly audit   'har-schema': [ '2.0.0' ],
      42 silly audit   'har-validator': [ '5.1.5' ],
      42 silly audit   'has-flag': [ '4.0.0' ],
      42 silly audit   'has-unicode': [ '2.0.1' ],
      42 silly audit   'http-cache-semantics': [ '4.1.0' ],
      42 silly audit   'http-signature': [ '1.2.0' ],
      42 silly audit   'http2-wrapper': [ '1.0.3' ],
      42 silly audit   ieee754: [ '1.2.1' ],
      42 silly audit   inflight: [ '1.0.6' ],
      42 silly audit   inherits: [ '2.0.4' ],
      42 silly audit   'is-interactive': [ '1.0.0' ],
      42 silly audit   'is-typedarray': [ '1.0.0' ],
      42 silly audit   'is-unicode-supported': [ '0.1.0' ],
      42 silly audit   isarray: [ '1.0.0' ],
      42 silly audit   isexe: [ '2.0.0' ],
      42 silly audit   isstream: [ '0.1.2' ],
      42 silly audit   jsbn: [ '0.1.1' ],
      42 silly audit   'json-buffer': [ '3.0.1' ],
      42 silly audit   'json-schema': [ '0.4.0' ],
      42 silly audit   'json-schema-traverse': [ '0.4.1' ],
      42 silly audit   'json-stringify-safe': [ '5.0.1' ],
      42 silly audit   jsonfile: [ '6.1.0' ],
      42 silly audit   jsprim: [ '1.4.2' ],
      42 silly audit   keyv: [ '4.2.0' ],
      42 silly audit   'lodash.debounce': [ '4.0.8' ],
      42 silly audit   'log-symbols': [ '4.1.0' ],
      42 silly audit   'lowercase-keys': [ '2.0.0' ],
      42 silly audit   'lru-cache': [ '6.0.0' ],
      42 silly audit   'magicmirror-rebuild': [ '1.0.5' ],
      42 silly audit   'mime-db': [ '1.52.0' ],
      42 silly audit   'mime-types': [ '2.1.35' ],
      42 silly audit   'mimic-fn': [ '2.1.0' ],
      42 silly audit   minimatch: [ '3.1.2' ],
      42 silly audit   minipass: [ '3.1.6' ],
      42 silly audit   minizlib: [ '2.1.2' ],
      42 silly audit   mkdirp: [ '1.0.4' ],
      42 silly audit   ms: [ '2.1.2' ],
      42 silly audit   nan: [ '2.15.0' ],
      42 silly audit   'node-abi': [ '3.8.0' ],
      42 silly audit   'node-gyp': [ '7.1.2' ],
      42 silly audit   nopt: [ '5.0.0' ],
      42 silly audit   'normalize-url': [ '6.1.0' ],
      42 silly audit   npmlog: [ '4.1.2' ],
      42 silly audit   'number-is-nan': [ '1.0.1' ],
      42 silly audit   'oauth-sign': [ '0.9.0' ],
      42 silly audit   'object-assign': [ '4.1.1' ],
      42 silly audit   once: [ '1.4.0' ],
      42 silly audit   onetime: [ '5.1.2' ],
      42 silly audit   onoff: [ '6.0.3' ],
      42 silly audit   ora: [ '5.4.1' ],
      42 silly audit   'p-cancelable': [ '2.1.1' ],
      42 silly audit   'path-is-absolute': [ '1.0.1' ],
      42 silly audit   'path-key': [ '3.1.1' ],
      42 silly audit   'performance-now': [ '2.1.0' ],
      42 silly audit   'process-nextick-args': [ '2.0.1' ],
      42 silly audit   psl: [ '1.8.0' ],
      42 silly audit   pump: [ '3.0.0' ],
      42 silly audit   punycode: [ '2.1.1' ],
      42 silly audit   qs: [ '6.5.3' ],
      42 silly audit   'quick-lru': [ '5.1.1' ],
      42 silly audit   request: [ '2.88.2' ],
      42 silly audit   'require-directory': [ '2.1.1' ],
      42 silly audit   'resolve-alpn': [ '1.2.1' ],
      42 silly audit   responselike: [ '2.0.0' ],
      42 silly audit   'restore-cursor': [ '3.1.0' ],
      42 silly audit   rimraf: [ '3.0.2' ],
      42 silly audit   'safe-buffer': [ '5.1.2' ],
      42 silly audit   'safer-buffer': [ '2.1.2' ],
      42 silly audit   semver: [ '7.3.5' ],
      42 silly audit   'set-blocking': [ '2.0.0' ],
      42 silly audit   'shebang-command': [ '2.0.0' ],
      42 silly audit   'shebang-regex': [ '3.0.0' ],
      42 silly audit   'signal-exit': [ '3.0.7' ],
      42 silly audit   sshpk: [ '1.17.0' ],
      42 silly audit   string_decoder: [ '1.1.1' ],
      42 silly audit   'supports-color': [ '7.2.0' ],
      42 silly audit   tar: [ '6.1.11' ],
      42 silly audit   'tough-cookie': [ '2.5.0' ],
      42 silly audit   'tunnel-agent': [ '0.6.0' ],
      42 silly audit   tweetnacl: [ '0.14.5' ],
      42 silly audit   universalify: [ '2.0.0' ],
      42 silly audit   'uri-js': [ '4.4.1' ],
      42 silly audit   'util-deprecate': [ '1.0.2' ],
      42 silly audit   uuid: [ '3.4.0' ],
      42 silly audit   verror: [ '1.10.0' ],
      42 silly audit   wcwidth: [ '1.0.1' ],
      42 silly audit   which: [ '2.0.2' ],
      42 silly audit   'wide-align': [ '1.1.5' ],
      42 silly audit   'wrap-ansi': [ '7.0.0' ],
      42 silly audit   wrappy: [ '1.0.2' ],
      42 silly audit   y18n: [ '5.0.8' ],
      42 silly audit   yallist: [ '4.0.0' ],
      42 silly audit   yargs: [ '16.2.0' ],
      42 silly audit   'yargs-parser': [ '20.2.9' ]
      42 silly audit }
      43 timing reify:unpack Completed in 15ms
      44 timing reify:unretire Completed in 1ms
      45 timing build:queue Completed in 0ms
      46 timing build:deps Completed in 2ms
      47 timing build Completed in 2ms
      48 timing reify:build Completed in 5ms
      49 timing reify:trash Completed in 0ms
      50 timing reify:save Completed in 241ms
      51 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 1100ms
      52 timing auditReport:getReport Completed in 1128ms
      53 silly audit report {}
      54 timing auditReport:init Completed in 0ms
      55 timing reify:audit Completed in 1132ms
      56 timing reify Completed in 2781ms
      57 timing command:install Completed in 2932ms
      58 verbose stack Error: command failed
      58 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
      58 verbose stack     at ChildProcess.emit (node:events:390:28)
      58 verbose stack     at maybeClose (node:internal/child_process:1064:16)
      58 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
      59 verbose pkgid EXT-Pir@1.0.1
      60 verbose cwd /home/pi/MagicMirror/modules/EXT-Pir
      61 verbose Linux 5.10.63-v7+
      62 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
      63 verbose node v16.13.0
      64 verbose npm  v8.1.4
      65 error code 255
      66 error path /home/pi/MagicMirror/modules/EXT-Pir
      67 error command failed
      68 error command sh -c installer/preinstall.sh
      69 verbose exit 255
      

      Thank you in advance for your help.
      Many thanks to @bugsounet for the great work on all modules.

      Have a nice day.

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        Hi, What can i do for you ?

        Checking MagicMirror: pi/root
        why root ? should be pi/pi

        wiki says:
        node v14
        npm v6.14.15

        you use:

        1 info using npm@8.1.4
        2 info using node@v16.13.0
        

        Actually, I just follow MM rules:
        MM needed node v14 and npm v6.14.15 (or v6.14.16) [npm v7 and v8 is bugged on RPI]
        –> it’s writed on wiki 🙂

        that is the question 🙂
        What can i do for you 🙂
        If you don’t follow rules, it will not works 🙂

        I 1 Reply Last reply Reply Quote 0
        • I
          illef @bugsounet last edited by

          @bugsounet I have the same problem. EXT-Pir doesn’t wake up the screen. The gpio should be right, because it works in an other script.
          npm: 6.14.15
          node: 14.18.2
          MM: 2.19.0

          I had reinstall both Modules (EXT-Screen, EXT-Pir).

          My config:

          {
          	module: 'EXT-Screen',
          	position: 'bottom_right',
            	config: {
            	  debug: true,
            	  animateBody: true,
            	  delay: 2 * 60 * 1000,
            	  turnOffDisplay: true,
            	  mode: 1,
            	  ecoMode: false,
            	  displayCounter: true,
            	  displayBar: true,
            	  displayStyle: "Text",
            	  displayLastPresence: true,
            	  lastPresenceTimeFormat: "LL H:mm",
            	  detectorSleeping: false,
            	  autoHide: false,
            	  delayed: 0,
            	}
              },
              {
          	module: 'EXT-Pir',
            	config: {
          	    debug: true,
          	    gpio: 23,
          	    reverseValue: false,
            	}
              },
          
          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by

            any error with EXT-Alert ?

            I 1 Reply Last reply Reply Quote 0
            • I
              illef @bugsounet last edited by

              @bugsounet Yeah Error Detected. Try to solve it with npm run rebuild in EXT-Pir

              pi@raspberrypi:~/MagicMirror/modules/EXT-Pir $ npm run rebuild
              
              > EXT-Pir@1.0.1 rebuild /home/pi/MagicMirror/modules/EXT-Pir
              > installer/rebuild.sh
              
              Welcome to EXT-Pir rebuild script
              This script will erase current build and reinstall it
              Do you want to continue ? [Y/n]
              Your choice: y
              
              Deleting: package-lock.json node_modules
              Done.
              
              Upgrading EXT-Pir...
              HEAD ist jetzt bei e368238 delete pir library
              Bereits aktuell.
              Done.
              Reinstalling EXT-Pir...
              
              > EXT-Pir@1.0.1 preinstall /home/pi/MagicMirror/modules/EXT-Pir
              > installer/preinstall.sh
              
              Welcome to EXT-Pir v1.0.1
              
              No root checking...
              Checking EXT-Pir: pi/pi
              Checking MagicMirror: pi/pi
              
              Checking OS...
              OS Detected: linux-gnueabihf (raspbian 10 armv7l)
              
              Installing all npm libraries...
              npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
              npm WARN deprecated har-validator@5.1.5: this library is no longer supported
              
              > epoll@4.0.1 install /home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll
              > node-gyp rebuild
              
              make: Verzeichnis „/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build“ wird betreten
                CXX(target) Release/obj.target/epoll/src/epoll.o
              pi@raspberrypi:~/MagicMirror/modules/EXT-Pir $ npm run rebuild
              
              > EXT-Pir@1.0.1 rebuild /home/pi/MagicMirror/modules/EXT-Pir
              > installer/rebuild.sh
              
              Welcome to EXT-Pir rebuild script
              This script will erase current build and reinstall it
              Do you want to continue ? [Y/n]
              Your choice: y
              
              Deleting: package-lock.json node_modules
              Done.
              
              Upgrading EXT-Pir...
              HEAD ist jetzt bei e368238 delete pir library
              Bereits aktuell.
              Done.
              Reinstalling EXT-Pir...
              
              > EXT-Pir@1.0.1 preinstall /home/pi/MagicMirror/modules/EXT-Pir
              > installer/preinstall.sh
              
              Welcome to EXT-Pir v1.0.1
              
              No root checking...
              Checking EXT-Pir: pi/pi
              Checking MagicMirror: pi/pi
              
              Checking OS...
              OS Detected: linux-gnueabihf (raspbian 10 armv7l)
              
              Installing all npm libraries...
              npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
              npm WARN deprecated har-validator@5.1.5: this library is no longer supported
              
              > epoll@4.0.1 install /home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll
              > node-gyp rebuild
                SOLINK_MODULE(target) Release/obj.target/epoll.node
                COPY Release/epoll.node
              make: Verzeichnis „/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build“ wird verlassen
              
              > EXT-Pir@1.0.1 postinstall /home/pi/MagicMirror/modules/EXT-Pir
              > installer/postinstall.sh
              
              
              Prepare PIR sensor using
              Done
              
              Rebuilding MagicMirror...
              ⠋ MagicMirror Building module: epoll, Completed: 0make: Verzeichnis „/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build“ wird betreten
                CXX(target) Release/obj.target/epoll/src/epoll.o
              ⠼ MagicMirror Building module: epoll, Completed: 0  SOLINK_MODULE(target) Release/obj.target/epoll.node
              ⠋ MagicMirror Building module: epoll, Completed: 0  COPY Release/epoll.node
              make: Verzeichnis „/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build“ wird verlassen
              ✔ MagicMirror Rebuild Complete
              
              Support is now moved in a dedicated Server: https://forum.bugsounet.fr
              @bugsounet
              
              EXT-Pir is now installed !
              npm notice created a lockfile as package-lock.json. You should commit this file.
              added 195 packages from 173 contributors and audited 195 packages in 75.783s
              
              22 packages are looking for funding
                run `npm fund` for details
              
              found 0 vulnerabilities
              
              
              1 Reply Last reply Reply Quote 0
              • The Dev3l
                The Dev3l last edited by

                Exactly the same error.

                1 Reply Last reply Reply Quote 0
                • S
                  Selyjohns last edited by

                  I had planned to downgrade npm and node.js, but I’m not sure that will fix the problem.

                  @bugsounet , tell us if you want specific logs

                  1 Reply Last reply Reply Quote 0
                  • bugsounet
                    bugsounet Main Coder last edited by

                    @Selyjohns :

                    downgrading node will not solve your problem
                    main problem is this:
                    Checking MagicMirror: pi/root

                    S 1 Reply Last reply Reply Quote 0
                    • The Dev3l
                      The Dev3l last edited by

                      After doing npm run rebuild it’s still the same.

                      1 Reply Last reply Reply Quote 0
                      • S
                        Selyjohns @bugsounet last edited by

                        @bugsounet yes i think too, but i don’t know why I have it. Is it because a bad owner of a specific directory or a bad variable somewhere ? I’m sorry for my bad kwnoledge of linux world 😕

                        1 Reply Last reply Reply Quote 0
                        • bugsounet
                          bugsounet Main Coder last edited by bugsounet

                          @Selyjohns :

                          try this:

                          sudo chgrp -R pi ~/MagicMirror/
                          

                          and retry install

                          cd ~/MagicMirror/modules/EXT-Pir
                          npm install
                          

                          sample:
                          you have:

                          bugsounet@debian:~/MagicMirror/modules$ cd EXT-Pir/
                          bugsounet@debian:~/MagicMirror/modules/EXT-Pir$ npm install
                          
                          > EXT-Pir@1.0.1 preinstall
                          > installer/preinstall.sh
                          
                          Welcome to EXT-Pir v1.0.1
                          
                          No root checking...
                          Checking EXT-Pir: bugsounet/root
                          npm ERR! code 255
                          npm ERR! path /home/bugsounet/MagicMirror/modules/EXT-Pir
                          npm ERR! command failed
                          npm ERR! command sh -c installer/preinstall.sh
                          
                          npm ERR! A complete log of this run can be found in:
                          npm ERR!     /home/bugsounet/.npm/_logs/2022-04-05T20_08_44_214Z-debug-0.log
                          

                          solved with:

                          
                          bugsounet@debian:~/MagicMirror/modules/EXT-Pir$ npm install
                          
                          > EXT-Pir@1.0.1 preinstall
                          > installer/preinstall.sh
                          
                          Welcome to EXT-Pir v1.0.1
                          
                          No root checking...
                          Checking EXT-Pir: bugsounet/bugsounet
                          Checking MagicMirror: bugsounet/bugsounet
                          
                          Checking OS...
                          OS Detected: linux-gnu (debian 11 x86_64)
                          
                          Installing all npm libraries...
                          
                          > EXT-Pir@1.0.1 postinstall
                          > installer/postinstall.sh
                          
                          
                          Prepare PIR sensor using
                          Done
                          
                          Rebuilding MagicMirror...
                          ✔ MagicMirror Rebuild Complete
                          
                          Support is now moved in a dedicated Server: https://forum.bugsounet.fr
                          @bugsounet
                          
                          EXT-Pir is now installed !
                          
                          up to date, audited 196 packages in 1s
                          
                          22 packages are looking for funding
                            run `npm fund` for details
                          
                          found 0 vulnerabilities
                          bugsounet@debian:~/MagicMirror/modules/EXT-Pir$ 
                          

                          Note in my desktop my account is bugsounet in your Raspberry your account is pi
                          so just change bugsounet by pi

                          S 2 Replies Last reply Reply Quote 0
                          • S
                            Selyjohns @bugsounet last edited by

                            @bugsounet I will try it tommorow, thank you for your help 🙂 I’ll keep you informed.

                            1 Reply Last reply Reply Quote 0
                            • The Dev3l
                              The Dev3l last edited by

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • The Dev3l
                                The Dev3l last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • S
                                  Selyjohns @bugsounet last edited by

                                  @bugsounet

                                  Hi,
                                  All works great after the change of directory owner and reinstall both modules.

                                  Many thanks for your help 🙂 !

                                  Not really fan about the display of bar so i hide it, maybe a really thin white line will be more class, than big bar with color ? Just my personnal opinion.

                                  Thank you for your work, have a nice day.

                                  1 Reply Last reply Reply Quote 1
                                  • Topic has been marked as solved  S Selyjohns 
                                  • bugsounet
                                    bugsounet Main Coder last edited by

                                    semi-circle design is better (for me) 🙂

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post
                                    Powered by NodeBB | @bugsounet ©2022