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.

    MMM-PIR doesn´t turn off monitor since update MM 2.7

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    25 Posts 9 Posters 12.3k Views 9 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
      last edited by sdetweil

      i believe that you will have to force recompile in the MMM-PIR folder… as the dependent epoll module doesn’t supply a version for this version of electron

      from MMM-PIR folder do

      npm install electron-rebuild
      

      then

      ./node_modules/.bin/electron-rebuild
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S F 2 Replies Last reply Reply Quote 1
      • S Offline
        shgmongohh @sdetweil
        last edited by

        @sdetweil

        Thanks for your help, but i get the follwing errer, wenn i type in

        pi@raspberrypi:~/MagicMirror/modules/MMM-PIR-Sensor $  ./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@3.8.0
        gyp info using node@10.15.3 | linux | arm
        gyp http GET https://atom.io/download/electron/v3.0.13/iojs-v3.0.13-headers.tar.gz
        gyp http 200 https://atom.io/download/electron/v3.0.13/iojs-v3.0.13-headers.tar.gz
        gyp http GET https://atom.io/download/electron/v3.0.13/SHASUMS256.txt
        gyp http 200 https://atom.io/download/electron/v3.0.13/SHASUMS256.txt
        gyp info spawn /usr/bin/python2
        gyp info spawn args [ '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/gyp/gyp_main.py',
        gyp info spawn args   'binding.gyp',
        gyp info spawn args   '-f',
        gyp info spawn args   'make',
        gyp info spawn args   '-I',
        gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi/build/config.gypi',
        gyp info spawn args   '-I',
        gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/addon.gypi',
        gyp info spawn args   '-I',
        gyp info spawn args   '/root/.electron-gyp/iojs-3.0.13/common.gypi',
        gyp info spawn args   '-Dlibrary=shared_library',
        gyp info spawn args   '-Dvisibility=default',
        gyp info spawn args   '-Dnode_root_dir=/root/.electron-gyp/iojs-3.0.13',
        gyp info spawn args   '-Dnode_gyp_dir=/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp',
        gyp info spawn args   '-Dnode_lib_file=/root/.electron-gyp/iojs-3.0.13/<(target_arch)/iojs.lib',
        gyp info spawn args   '-Dmodule_root_dir=/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi',
        gyp info spawn args   '-Dnode_engine=v8',
        gyp info spawn args   '--depth=.',
        gyp info spawn args   '--no-parallel',
        gyp info spawn args   '--generator-output',
        gyp info spawn args   'build',
        gyp info spawn args   '-Goutput_dir=.' ]
        gyp info spawn make
        gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
        make: Entering directory '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi/build'
          CXX(target) Release/obj.target/wiringPi/src/addon.o
          CXX(target) Release/obj.target/wiringPi/src/wiringPi.o
        ../src/wiringPi.cc: In function 'void nodemodule::setup(const v8::FunctionCallbackInfo<v8::Value>&)':
        ../src/wiringPi.cc:52:53: warning: 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)' is deprecated (declared at /root/.electron-gyp/iojs-3.0.13/deps/v8/include/v8.h:2819): Use Isolate version [-Wdeprecated-declarations]
             String::Utf8Value mode(GET_ARGUMENT_AS_STRING(0));
                                                             ^
        In file included from ../src/wiringPi.h:4:0,
                         from ../src/wiringPi.cc:1:
        ../src/wiringPi.cc: In function 'void nodemodule::initwiringPi(v8::Isolate*, v8::Handle<v8::Object>)':
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:714:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(WPI_MODE_PINS);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:715:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(WPI_MODE_PHYS);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:716:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(WPI_MODE_GPIO);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:717:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(WPI_MODE_GPIO_SYS);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:718:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(WPI_MODE_PIFACE);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:719:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(WPI_MODE_UNINITIALISED);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:723:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(INPUT);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:724:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(OUTPUT);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:725:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PWM_OUTPUT);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:726:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(GPIO_CLOCK);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:727:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(SOFT_PWM_OUTPUT);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:728:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(SOFT_TONE_OUTPUT);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:731:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PUD_OFF);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:732:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PUD_DOWN);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:733:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PUD_UP);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:736:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(HIGH);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:737:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(LOW);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:740:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PWM_MODE_BAL);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:741:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PWM_MODE_MS);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:744:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_MODEL_UNKNOWN);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:745:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_MODEL_A);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:746:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_MODEL_B);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:747:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_MODEL_BP);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:748:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_MODEL_CM);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:749:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_MODEL_AP);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:750:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_MODEL_2);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:752:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_VERSION_UNKNOWN);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:753:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_VERSION_1);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:754:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_VERSION_1_1);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:755:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_VERSION_1_2);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:756:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_VERSION_2);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:758:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_MAKER_UNKNOWN);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:759:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_MAKER_EGOMAN);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:760:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_MAKER_SONY);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:761:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_MAKER_QISDA);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:762:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PI_MAKER_MBEST);
           ^
        ../src/addon.h:68:17: error: 'class v8::Object' has no member named 'ForceSet'
                 target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                         ^
        ../src/wiringPi.cc:764:3: note: in expansion of macro 'EXPORT_CONSTANT_STRING_ARRAY'
           EXPORT_CONSTANT_STRING_ARRAY(PI_MODEL_NAMES, piModelNames, 7);
           ^
        ../src/addon.h:68:17: error: 'class v8::Object' has no member named 'ForceSet'
                 target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                         ^
        ../src/wiringPi.cc:765:3: note: in expansion of macro 'EXPORT_CONSTANT_STRING_ARRAY'
           EXPORT_CONSTANT_STRING_ARRAY(PI_REVISION_NAMES, piRevisionNames, 5);
           ^
        ../src/addon.h:68:17: error: 'class v8::Object' has no member named 'ForceSet'
                 target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                         ^
        ../src/wiringPi.cc:766:3: note: in expansion of macro 'EXPORT_CONSTANT_STRING_ARRAY'
           EXPORT_CONSTANT_STRING_ARRAY(PI_MAKER_NAMES, piMakerNames, 5);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:769:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(FSEL_INPT);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:770:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(FSEL_OUTP);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:771:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(FSEL_ALT0);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:772:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(FSEL_ALT1);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:773:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(FSEL_ALT2);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:774:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(FSEL_ALT3);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:775:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(FSEL_ALT4);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:776:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(FSEL_ALT5);
           ^
        wiringPi.target.mk:142: recipe for target 'Release/obj.target/wiringPi/src/wiringPi.o' failed
        make: Leaving directory '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi/build'
        make: *** [Release/obj.target/wiringPi/src/wiringPi.o] Error 1
        gyp ERR! build error
        gyp ERR! stack Error: `make` failed with exit code: 2
        gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/lib/build.js:262:23)
        gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
        gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
        gyp ERR! System Linux 4.9.35-v7+
        gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/.bin/node-gyp" "rebuild" "--target=3.0.13" "--arch=arm" "--dist-url=https://atom.io/download/electron" "--build-from-source"
        gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi
        gyp ERR! node -v v10.15.3
        gyp ERR! node-gyp -v v3.8.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@3.8.0
        gyp info using node@10.15.3 | linux | arm
        gyp http GET https://atom.io/download/electron/v3.0.13/iojs-v3.0.13-headers.tar.gz
        gyp http 200 https://atom.io/download/electron/v3.0.13/iojs-v3.0.13-headers.tar.gz
        gyp http GET https://atom.io/download/electron/v3.0.13/SHASUMS256.txt
        gyp http 200 https://atom.io/download/electron/v3.0.13/SHASUMS256.txt
        gyp info spawn /usr/bin/python2
        gyp info spawn args [ '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/gyp/gyp_main.py',
        gyp info spawn args   'binding.gyp',
        gyp info spawn args   '-f',
        gyp info spawn args   'make',
        gyp info spawn args   '-I',
        gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi/build/config.gypi',
        gyp info spawn args   '-I',
        gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/addon.gypi',
        gyp info spawn args   '-I',
        gyp info spawn args   '/root/.electron-gyp/iojs-3.0.13/common.gypi',
        gyp info spawn args   '-Dlibrary=shared_library',
        gyp info spawn args   '-Dvisibility=default',
        gyp info spawn args   '-Dnode_root_dir=/root/.electron-gyp/iojs-3.0.13',
        gyp info spawn args   '-Dnode_gyp_dir=/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp',
        gyp info spawn args   '-Dnode_lib_file=/root/.electron-gyp/iojs-3.0.13/<(target_arch)/iojs.lib',
        gyp info spawn args   '-Dmodule_root_dir=/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi',
        gyp info spawn args   '-Dnode_engine=v8',
        gyp info spawn args   '--depth=.',
        gyp info spawn args   '--no-parallel',
        gyp info spawn args   '--generator-output',
        gyp info spawn args   'build',
        gyp info spawn args   '-Goutput_dir=.' ]
        gyp info spawn make
        gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
        make: Entering directory '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi/build'
          CXX(target) Release/obj.target/wiringPi/src/addon.o
          CXX(target) Release/obj.target/wiringPi/src/wiringPi.o
        ../src/wiringPi.cc: In function 'void nodemodule::setup(const v8::FunctionCallbackInfo<v8::Value>&)':
        ../src/wiringPi.cc:52:53: warning: 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)' is deprecated (declared at /root/.electron-gyp/iojs-3.0.13/deps/v8/include/v8.h:2819): Use Isolate version [-Wdeprecated-declarations]
             String::Utf8Value mode(GET_ARGUMENT_AS_STRING(0));
                                                             ^
        In file included from ../src/wiringPi.h:4:0,
                         from ../src/wiringPi.cc:1:
        ../src/wiringPi.cc: In function 'void nodemodule::initwiringPi(v8::Isolate*, v8::Handle<v8::Object>)':
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:714:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(WPI_MODE_PINS);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:715:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(WPI_MODE_PHYS);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:716:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(WPI_MODE_GPIO);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:717:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(WPI_MODE_GPIO_SYS);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:718:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(WPI_MODE_PIFACE);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:719:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(WPI_MODE_UNINITIALISED);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:723:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(INPUT);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:724:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(OUTPUT);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:725:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(PWM_OUTPUT);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        ../src/wiringPi.cc:726:3: note: in expansion of macro 'EXPORT_CONSTANT_INT'
           EXPORT_CONSTANT_INT(GPIO_CLOCK);
           ^
        ../src/addon.h:45:15: error: 'class v8::Object' has no member named 'ForceSet'
               target->ForceSet(v8::String::NewFromUtf8(isolate, #name, v8::String::kInternalizedString), \
                       ^
        
        
        
        
        thedoorsfanaticT T 2 Replies Last reply Reply Quote 0
        • S Offline
          sdetweil
          last edited by

          well, ain’t that a doozy…

          not sure…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • thedoorsfanaticT Offline
            thedoorsfanatic @shgmongohh
            last edited by

            @shgmongohh
            I use MMM-PIR-Sensor and it works just fine on 2.7.1
            https://github.com/paviro/MMM-PIR-Sensor

            My Smart Mirror YouTube playlist: https://www.youtube.com/playlist?list=PL9Iv_4Mvy6o2tnvdhNBstVWNefgUP9ELp

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              shgmongohh @thedoorsfanatic
              last edited by

              @thedoorsfanatic
              Thanks for the information. I uninstall and install MMM-PIR, but it doesn´t work.

              Regards,

              Sebastian

              1 Reply Last reply Reply Quote 0
              • F Offline
                Fonfon
                last edited by Fonfon

                same problem with MMM-PIR-sensor and 2.7.1
                i do that :
                from the MMM-PIR-Sensor folder

                npm install electron-rebuild

                then run it to force the epoll rebuild

                node_modules/.bin/electron-rebuild

                S 1 Reply Last reply Reply Quote 1
                • S Offline
                  shgmongohh @Fonfon
                  last edited by

                  @Fonfon
                  How do you force the epoll rebuild?

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    Fonfon
                    last edited by Fonfon

                    @sdetweil said in MMM-PIR doesn´t turn off monitor since update MM 2.7:

                    ./node_modules/.bin/electron-rebuild

                    ./node_modules/.bin/electron-rebuild
                    @sdetweil give the solution

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

                      @Fonfon did give the solution?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        Fonfon @sdetweil
                        last edited by

                        @sdetweil said in MMM-PIR doesn´t turn off monitor since update MM 2.7:

                        i believe that you will have to force recompile in the MMM-PIR folder… as the dependent epoll module doesn’t supply a version for this version of electron

                        from MMM-PIR folder do

                        npm install electron-rebuild
                        

                        then

                        ./node_modules/.bin/electron-rebuild
                        

                        i do that but not in my MMM-PIR folder but in my MMM-PIR-Sensor folder

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

                          @Fonfon and all is good?

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          F 1 Reply Last reply Reply Quote 0
                          • F Offline
                            Fonfon @sdetweil
                            last edited by

                            @sdetweil for me yes

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              toucherts @shgmongohh
                              last edited by toucherts

                              @shgmongohh did you fix it ? TutuApp Adam4adam AppValley

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

                                I get a failure message and I don´t know, how to fix it. npm audit fix doesnt work.

                                pi@raspberrypi:~/MagicMirror/modules/MMM-PIR-Sensor $ npm install electron-rebuild
                                + electron-rebuild@1.8.4
                                updated 1 package and audited 301 packages in 17.922s
                                found 1 high severity vulnerability
                                  run `npm audit fix` to fix them, or `npm audit` for details
                                
                                
                                pi@raspberrypi:~/MagicMirror/modules/MMM-PIR-Sensor $ npm audit
                                
                                                       === npm audit security report ===
                                
                                
                                                                 Manual Review
                                             Some vulnerabilities require your attention to resolve
                                
                                          Visit https://go.npm.me/audit-guide for additional guidance
                                
                                
                                  High            Arbitrary File Overwrite
                                
                                  Package         tar
                                
                                  Patched in      >=4.4.2
                                
                                  Dependency of   electron-rebuild [dev]
                                
                                  Path            electron-rebuild > node-gyp > tar
                                
                                  More info       https://nodesecurity.io/advisories/803
                                
                                found 1 high severity vulnerability in 301 scanned packages
                                  1 vulnerability requires manual review. See the full report for details.
                                
                                
                                S 1 Reply Last reply Reply Quote 0
                                • D Offline
                                  djay07
                                  last edited by djay07

                                  I did the recommended above, but it’s still just nothing happening. Any further ideas?

                                  I have a RCWL-0516 connected right now and a small python script which shows me it’s activity. but the module won’t shutdown the screen after minutes without motion (delay set to 10 secs).

                                  Edit:
                                  Maybe i should add:
                                  I tried this with MMM-PIR -> interface not starting, error:

                                  WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: ReferenceError: NodeHelper is not defined
                                      at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR/node_helper.js:11:18)
                                      at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR/node_helper.js:67:3)
                                      at Module._compile (internal/modules/cjs/loader.js:711:30)
                                      at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
                                      at Module.load (internal/modules/cjs/loader.js:620:32)
                                      at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
                                      at Function.Module._load (internal/modules/cjs/loader.js:551:3)
                                      at Module.require (internal/modules/cjs/loader.js:658:17)
                                      at require (internal/modules/cjs/helpers.js:20:18)
                                      at loadModule (/home/pi/MagicMirror/js/app.js:127:17)
                                  App threw an error during load
                                  ReferenceError: NodeHelper is not defined
                                      at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR/node_helper.js:11:18)
                                      at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR/node_helper.js:67:3)
                                      at Module._compile (internal/modules/cjs/loader.js:711:30)
                                      at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
                                      at Module.load (internal/modules/cjs/loader.js:620:32)
                                      at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
                                      at Function.Module._load (internal/modules/cjs/loader.js:551:3)
                                      at Module.require (internal/modules/cjs/loader.js:658:17)
                                      at require (internal/modules/cjs/helpers.js:20:18)
                                      at loadModule (/home/pi/MagicMirror/js/app.js:127:17)
                                  

                                  And MMM-PIR-Sensor is not reacting at all.

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

                                    @djay07 after you did the git pull update, did you do npm install in the MagicMirror folder
                                    AND every module that has a package.json file???

                                    you must

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    D 1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      djay07 @sdetweil
                                      last edited by

                                      @sdetweil
                                      morning,
                                      well i didn’t do it in every single subfolder where a package.json is placed, since i didn’t expect this to be necessary.

                                      I did:

                                      • git pull
                                      • in the module folder “npm install”
                                      • npm install electron-rebuild
                                      • ./node_modules/.bin/electron-rebuild

                                      the result is the above.
                                      Currently i solved it with external scripts running in system.d, but if you tell me i need to run “npm install” in each folder with a package.json, i would give it a try, just to report back.

                                      S 1 Reply Last reply Reply Quote 0
                                      • L Offline
                                        lxne Project Sponsor
                                        last edited by

                                        @djay07 Hi, have you been able to solve the MMM-PIR problem? I am stuck with the same thing.

                                        F 1 Reply Last reply Reply Quote 0
                                        • F Offline
                                          FruityBebbles @lxne
                                          last edited by

                                          @lxne @djay07 Same…

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

                                            @FruityBebbles sorry, could you tell me more?? same what?

                                            can’t tell how far back u are responding…

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            F 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 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