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

    Posts

    Recent Best Controversial
    • RE: MMM-awesome-alexa snowboy issue

      @mattsharp I`m kind of reluctant to update to 2.6.0 so I do not mess anything. I have modified quite a lot of config files and custom css. This is my college project and I have to present in a few months. The google assistant is working decently, although I was hoping for better, I will have to stick with it until this issue with electron is fixed.

      posted in Troubleshooting
      R
      Radu_Stancu
    • RE: MMM-awesome-alexa snowboy issue

      @mattsharp Thanks for trying, I will try soon enough, I have tried the google assistant module, but I`ll probably return to alexa soon.

      posted in Troubleshooting
      R
      Radu_Stancu
    • MMM-awesome-alexa snowboy issue

      Hi, I`m trying to install awesome-alexa but when I try to run the electron rebuild I get a huge error list…

      I updated electron, node-abi, every single thing that could be updated, ran npm audit-fix and still nothing.

      Here is the output:

      An unhandled error occurred inside electron-rebuild
      make: Entering directory ‘/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/build’
      CXX(target) Release/obj.target/snowboy/swig/Node/snowboy.o
      In file included from …/…/nan/nan.h:192:0,
      from …/swig/Node/snowboy.cc:1:
      …/…/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’:
      …/…/nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
      return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
      ^~~~~~~~
      In file included from …/swig/Node/snowboy.cc:1:0:
      …/…/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’:
      …/…/nan/nan.h:835:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
      , v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(…, async_context) [-Wdeprecated-declarations]
      v8::Isolate::GetCurrent(), target, func, argc, argv);
      ^
      In file included from /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:53:0,
      from …/…/nan/nan.h:49,
      from …/swig/Node/snowboy.cc:1:
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:94:50: note: declared here
      NODE_EXTERN v8::Localv8::Value MakeCallback(
      ^
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/core.h:35:42: note: in definition of macro ‘NODE_DEPRECATED’
      attribute((deprecated(message))) declarator
      ^~~~~~~~~~
      In file included from …/swig/Node/snowboy.cc:1:0:
      …/…/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value
      )’:
      …/…/nan/nan.h:850:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(…, async_context) [-Wdeprecated-declarations]
      v8::Isolate::GetCurrent(), target, symbol, argc, argv);
      ^
      In file included from /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:53:0,
      from …/…/nan/nan.h:49,
      from …/swig/Node/snowboy.cc:1:
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:87:50: note: declared here
      NODE_EXTERN v8::Localv8::Value MakeCallback(
      ^
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/core.h:35:42: note: in definition of macro ‘NODE_DEPRECATED’
      attribute((deprecated(message))) declarator
      ^~~~~~~~~~
      In file included from …/swig/Node/snowboy.cc:1:0:
      …/…/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char
      , int, v8::Localv8::Value)’:
      …/…/nan/nan.h:865:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
      , v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(…, async_context) [-Wdeprecated-declarations]
      v8::Isolate::GetCurrent(), target, method, argc, argv);
      ^
      In file included from /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:53:0,
      from …/…/nan/nan.h:49,
      from …/swig/Node/snowboy.cc:1:
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:80:50: note: declared here
      NODE_EXTERN v8::Localv8::Value MakeCallback(
      ^
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/core.h:35:42: note: in definition of macro ‘NODE_DEPRECATED’
      attribute((deprecated(message))) declarator
      ^~~~~~~~~~
      In file included from …/swig/Node/snowboy.cc:1:0:
      …/…/nan/nan.h: In member function ‘v8::Localv8::Value Nan::Callback::Call_(v8::Isolate
      , v8::Localv8::Object, int, v8::Localv8::Value) const’:
      …/…/nan/nan.h:1479:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
      , v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated: Use MakeCallback(…, async_context) [-Wdeprecated-declarations]
      ));
      ^
      In file included from /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:53:0,
      from …/…/nan/nan.h:49,
      from …/swig/Node/snowboy.cc:1:
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:94:50: note: declared here
      NODE_EXTERN v8::Localv8::Value MakeCallback(
      ^
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/core.h:35:42: note: in definition of macro ‘NODE_DEPRECATED’
      attribute((deprecated(message))) declarator
      ^~~~~~~~~~
      snowboy.target.mk:107: recipe for target ‘Release/obj.target/snowboy/swig/Node/snowboy.o’ failed
      make: Leaving directory ‘/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/build’
      make: *** [Release/obj.target/snowboy/swig/Node/snowboy.o] Error 1
      gyp ERR! build error
      gyp ERR! stack Error: make failed with exit code: 2
      gyp ERR! stack at ChildProcess.onExit (/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/node-gyp/lib/build.js:262:23)
      gyp ERR! stack at ChildProcess.emit (events.js:180:13)
      gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
      gyp ERR! System Linux 4.4.132+
      gyp ERR! command “/usr/bin/node” “/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/.bin/node-gyp” “rebuild” “–target=3.0.11” “–arch=arm” “–dist-url=https://atom.io/download/electron” “–build-from-source” “–module_name=snowboy” “–module_path=/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/electron-v3.0-linux-arm” “–remote_path=./snowboy/v1.2.0/Release/” “–package_name=snowboy-v1.2.0-electron-v3.0-linux-arm.tar.gz” “–host=https://snowboy-release-node.s3-us-west-2.amazonaws.com”
      gyp ERR! cwd /home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy
      gyp ERR! node -v v9.11.2
      gyp ERR! node-gyp -v v3.8.0
      gyp ERR! not ok

      Failed with exit code: 1

      Error: make: Entering directory ‘/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/build’
      CXX(target) Release/obj.target/snowboy/swig/Node/snowboy.o
      In file included from …/…/nan/nan.h:192:0,
      from …/swig/Node/snowboy.cc:1:
      …/…/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’:
      …/…/nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
      return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
      ^~~~~~~~
      In file included from …/swig/Node/snowboy.cc:1:0:
      …/…/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’:
      …/…/nan/nan.h:835:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
      , v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(…, async_context) [-Wdeprecated-declarations]
      v8::Isolate::GetCurrent(), target, func, argc, argv);
      ^
      In file included from /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:53:0,
      from …/…/nan/nan.h:49,
      from …/swig/Node/snowboy.cc:1:
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:94:50: note: declared here
      NODE_EXTERN v8::Localv8::Value MakeCallback(
      ^
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/core.h:35:42: note: in definition of macro ‘NODE_DEPRECATED’
      attribute((deprecated(message))) declarator
      ^~~~~~~~~~
      In file included from …/swig/Node/snowboy.cc:1:0:
      …/…/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value
      )’:
      …/…/nan/nan.h:850:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(…, async_context) [-Wdeprecated-declarations]
      v8::Isolate::GetCurrent(), target, symbol, argc, argv);
      ^
      In file included from /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:53:0,
      from …/…/nan/nan.h:49,
      from …/swig/Node/snowboy.cc:1:
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:87:50: note: declared here
      NODE_EXTERN v8::Localv8::Value MakeCallback(
      ^
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/core.h:35:42: note: in definition of macro ‘NODE_DEPRECATED’
      attribute((deprecated(message))) declarator
      ^~~~~~~~~~
      In file included from …/swig/Node/snowboy.cc:1:0:
      …/…/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char
      , int, v8::Localv8::Value)’:
      …/…/nan/nan.h:865:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
      , v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(…, async_context) [-Wdeprecated-declarations]
      v8::Isolate::GetCurrent(), target, method, argc, argv);
      ^
      In file included from /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:53:0,
      from …/…/nan/nan.h:49,
      from …/swig/Node/snowboy.cc:1:
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:80:50: note: declared here
      NODE_EXTERN v8::Localv8::Value MakeCallback(
      ^
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/core.h:35:42: note: in definition of macro ‘NODE_DEPRECATED’
      attribute((deprecated(message))) declarator
      ^~~~~~~~~~
      In file included from …/swig/Node/snowboy.cc:1:0:
      …/…/nan/nan.h: In member function ‘v8::Localv8::Value Nan::Callback::Call_(v8::Isolate
      , v8::Localv8::Object, int, v8::Localv8::Value) const’:
      …/…/nan/nan.h:1479:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
      , v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’ is deprecated: Use MakeCallback(…, async_context) [-Wdeprecated-declarations]
      ));
      ^
      In file included from /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:53:0,
      from …/…/nan/nan.h:49,
      from …/swig/Node/snowboy.cc:1:
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/node.h:94:50: note: declared here
      NODE_EXTERN v8::Localv8::Value MakeCallback(
      ^
      /home/linaro/.electron-gyp/.node-gyp/iojs-3.0.11/src/core.h:35:42: note: in definition of macro ‘NODE_DEPRECATED’
      attribute((deprecated(message))) declarator
      ^~~~~~~~~~
      snowboy.target.mk:107: recipe for target ‘Release/obj.target/snowboy/swig/Node/snowboy.o’ failed
      make: Leaving directory ‘/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/build’
      make: *** [Release/obj.target/snowboy/swig/Node/snowboy.o] Error 1
      gyp ERR! build error
      gyp ERR! stack Error: make failed with exit code: 2
      gyp ERR! stack at ChildProcess.onExit (/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/node-gyp/lib/build.js:262:23)
      gyp ERR! stack at ChildProcess.emit (events.js:180:13)
      gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
      gyp ERR! System Linux 4.4.132+
      gyp ERR! command “/usr/bin/node” “/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/.bin/node-gyp” “rebuild” “–target=3.0.11” “–arch=arm” “–dist-url=https://atom.io/download/electron” “–build-from-source” “–module_name=snowboy” “–module_path=/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/electron-v3.0-linux-arm” “–remote_path=./snowboy/v1.2.0/Release/” “–package_name=snowboy-v1.2.0-electron-v3.0-linux-arm.tar.gz” “–host=https://snowboy-release-node.s3-us-west-2.amazonaws.com”
      gyp ERR! cwd /home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy
      gyp ERR! node -v v9.11.2
      gyp ERR! node-gyp -v v3.8.0
      gyp ERR! not ok

      Failed with exit code: 1
      at SafeSubscriber._error (/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/spawn-rx/lib/src/index.js:277:84)
      at SafeSubscriber.__tryOrUnsub (/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/rxjs/Subscriber.js:238:16)
      at SafeSubscriber.error (/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/rxjs/Subscriber.js:197:26)
      at Subscriber._error (/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/rxjs/Subscriber.js:128:26)
      at Subscriber.error (/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/rxjs/Subscriber.js:102:18)
      at MapSubscriber.Subscriber._error (/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/rxjs/Subscriber.js:128:26)
      at MapSubscriber.Subscriber.error (/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/rxjs/Subscriber.js:102:18)
      at SafeSubscriber._next (/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/spawn-rx/lib/src/index.js:251:65)
      at SafeSubscriber.__tryOrSetError (/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/rxjs/Subscriber.js:247:16)
      at SafeSubscriber.next (/home/linaro/MagicMirror/modules/MMM-awesome-alexa/node_modules/rxjs/Subscriber.js:187:27)
      npm ERR! code ELIFECYCLE
      npm ERR! errno 255
      npm ERR! mmm-awesome-alexa@1.0.0 electron-rebuild: electron-rebuild --pre-gyp-fix
      npm ERR! Exit status 255
      npm ERR!
      npm ERR! Failed at the mmm-awesome-alexa@1.0.0 electron-rebuild script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

      npm ERR! A complete log of this run can be found in:
      npm ERR! /home/linaro/.npm/_logs/2018-12-13T13_18_01_671Z-debug.log

      If anybody else has encountered this and knows what to do, please help.

      Thanks.

      posted in Troubleshooting
      R
      Radu_Stancu
    • RE: MMM-MovieListings

      @mykle1 Thanks, it`s getting closer to what I want. I will check the module you are mentioning. I am not that familiar with js so I did not recognize the things I need to change to accomplish what I was looking for. I will try again and see if I can make the image a bit bigger and the title white. Thanks a lot for your patience.

      posted in Entertainment
      R
      Radu_Stancu
    • RE: MMM-MovieListings

      Hi, I have tried the code you provided, and it partially does what I want.

      It changes the font size and color of the actors but not of the description.

      I want to enlarge the module as a whole, image, description and any text while also making them white, as my mirror is a bit darker than I was expecting.

      Any further help is greatly appreciated.

      posted in Entertainment
      R
      Radu_Stancu
    • RE: Syntax error in python-shell

      Solved. It was actually the GPIO library for the ASUS tinker board, its RPi.GPIO implementation actually. It had a useless printf that sent that annoying message that messed up the json message. I removed that line and rebuilt from source and now it`s working flawlessly. Thanks.

      posted in Troubleshooting
      R
      Radu_Stancu
    • RE: Syntax error in python-shell

      https://forum.magicmirror.builders/topic/8907/flick-large-gesture-control

      Here is the code I`ve written and adapted to work as MMM module.

      posted in Troubleshooting
      R
      Radu_Stancu
    • RE: Syntax error in python-shell

      Yea, I kind of found out what is triggering it, however I`m not sure how to stop it. The flick Large module is sending direction == OUTPUT messages continuously for some reason. Any idea what this is or how to make a filter to stop it?

      posted in Troubleshooting
      R
      Radu_Stancu
    • Syntax error in python-shell

      Hi,

      I keep getting this error:

      SyntaxError: Unexpected token d in JSON at position 0
      at JSON.parse ()
      at PythonShell.asJson (/home/linaro/node_modules/python-shell/index.js:350:21)
      at /home/linaro/node_modules/python-shell/index.js:300:42
      at Array.forEach ()
      at PythonShell.recieveInternal (/home/linaro/node_modules/python-shell/index.js:298:15)
      at PythonShell.receive (/home/linaro/node_modules/python-shell/index.js:272:21)
      at Socket.emit (events.js:182:13)
      at addChunk (_stream_readable.js:279:12)
      at readableAddChunk (_stream_readable.js:260:13)
      at Socket.Readable.push (_stream_readable.js:219:10)

      I`m not entirely sure what causes it and how to fix it… the mirror seems to be working fine.

      Any help would be apreciated.

      Thanks.

      posted in Troubleshooting
      R
      Radu_Stancu
    • RE: Flick Large gesture control

      Updated the code, and also support for the Asus Tinker Board.

      posted in Hardware
      R
      Radu_Stancu
    • 1
    • 2
    • 3
    • 4
    • 3 / 4