MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. brynnflynn
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 0

    brynnflynn

    @brynnflynn

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    brynnflynn Unfollow Follow

    Latest posts made by brynnflynn

    • RE: Errors installing MMM-FlightTracker

      @sdetweil said in Errors installing MMM-FlightTracker:

      ~/MagicMirror/node_modules/.bin/electron-rebuild

      Thank you for the help. I was able to install electron-rebuild, but running the second command gets me this:

      pi@raspberrypi:~/MagicMirror/modules/MMM-FlightTracker $ ~/MagicMirror/node_modules/.bin/electron-rebuild
      ⠦ Building module: rtl-sdr, Completed: 0make: Entering directory '/home/pi/MagicMirror/modules/MMM-FlightTracker/node_modules/rtl-sdr/build'
        CXX(target) Release/obj.target/rtlsdr/src/binding.o
      ⠋ Building module: rtl-sdr, Completed: 0In file included from /home/pi/.electron-gyp/13.5.1/include/node/node.h:67,
                       from ../../nan/nan.h:54,
                       from ../src/binding.cc:1:
      /home/pi/.electron-gyp/13.5.1/include/node/v8.h:1670:79: warning: ‘ResolveCallback’ is deprecated [-Wdeprecated-declarations]
                                                            ResolveCallback callback);
                                                                                    ^
      
      ⠦ Building module: rtl-sdr, Completed: 0/home/pi/.electron-gyp/13.5.1/include/node/v8.h:8652:51: warning: ‘HostImportModuleDynamicallyCallback’ is deprecated [-Wdeprecated-declarations]
             HostImportModuleDynamicallyCallback callback);
                                                         ^
      ⠏ Building module: rtl-sdr, Completed: 0In file included from ../src/binding.cc:1:
      ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
      ../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
           , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                    ^
      ⠙ Building module: rtl-sdr, Completed: 0In file included from ../../nan/nan.h:2884,
                       from ../src/binding.cc:1:
      ../../nan/nan_typedarray_contents.h: In constructor ‘Nan::TypedArrayContents<T>::TypedArrayContents(v8::Local<v8::Value>)’:
      ../../nan/nan_typedarray_contents.h:34:43: error: ‘class v8::ArrayBuffer’ has no member named ‘GetContents’; did you mean ‘IsContext’?
             data   = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
                                                 ^~~~~~~~~~~
                                                 IsContext
      ⠼ Building module: rtl-sdr, Completed: 0In file included from ../../nan/nan.h:54,
                       from ../src/binding.cc:1:
      ../src/binding.cc: At global scope:
      /home/pi/.electron-gyp/13.5.1/include/node/node.h:770:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
             (node::addon_register_func) (regfunc),                          \
                                                 ^
      /home/pi/.electron-gyp/13.5.1/include/node/node.h:804:3: note: in expansion of macro ‘NODE_MODULE_X’
         NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
         ^~~~~~~~~~~~~
      ../src/binding.cc:319:1: note: in expansion of macro ‘NODE_MODULE’
       NODE_MODULE(rtlsdr, Init)
       ^~~~~~~~~~~
      ⠼ Building module: rtl-sdr, Completed: 0make: *** [rtlsdr.target.mk:111: Release/obj.target/rtlsdr/src/binding.o] Error 1
      make: Leaving directory '/home/pi/MagicMirror/modules/MMM-FlightTracker/node_modules/rtl-sdr/build'
      ✖ Rebuild Failed
      
      An unhandled error occurred inside electron-rebuild
      node-gyp failed to rebuild '/home/pi/MagicMirror/modules/MMM-FlightTracker/node_modules/rtl-sdr'.
      For more information, rerun with the DEBUG environment variable set to "electron-rebuild".
      
      Error: `make` failed with exit code: 2
      
      
      
      Error: node-gyp failed to rebuild '/home/pi/MagicMirror/modules/MMM-FlightTracker/node_modules/rtl-sdr'.
      For more information, rerun with the DEBUG environment variable set to "electron-rebuild".
      
      Error: `make` failed with exit code: 2
      
      
          at NodeGyp.rebuildModule (/home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/module-type/node-gyp.js:109:19)
          at processTicksAndRejections (internal/process/task_queues.js:95:5)
          at async ModuleRebuilder.rebuildNodeGypModule (/home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/module-rebuilder.js:94:9)
          at async Rebuilder.rebuildModuleAt (/home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/rebuild.js:226:9)
          at async Rebuilder.rebuild (/home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/rebuild.js:184:17)
          at async /home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/cli.js:154:9
      
      posted in Troubleshooting
      B
      brynnflynn
    • Errors installing MMM-FlightTracker

      I’d used MMM-FlightTracker on 2.14 and had a grand old time watching planes pop up and go away. However, at some point (I believe when I upgraded to 2.16) I’d get a black screen. Looking on the GitHub for this module it looks like someone else is running into the same problem: https://github.com/tbouron/MMM-FlightTracker/issues/7

      One of the key errors seems to be the following:

      An unhandled error occurred inside electron-rebuild
      Could not detect abi for version 11.4.9 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron
      

      Does anyone have any guidance on how I could solve this independent of the creator making a change? They don’t seem to be maintaining the project any more.

      posted in Troubleshooting
      B
      brynnflynn