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

    Posts

    Recent Best Controversial
    • RE: MMM-PIR-Sensor and mirror not waking up.

      Hi @sdetweil ,

      I finally managed to use PM2 and here what I see in the error log when my mirror crashes.

      [1554:1214/202715.173231:FATAL:memory_linux.cc(42)] Out of memory.

      It’s strange as I never had this issue before and I haven’t been using any new modules. Any suggestions?

      posted in Development
      D
      dubalda
    • RE: MMM-PIR-Sensor and mirror not waking up.

      Thanks Sam, I currently don’t use PM2 to start my mirror. I manually run “npm start”.

      I was hoping there are some log files to see why it freezes.

      posted in Development
      D
      dubalda
    • MMM-PIR-Sensor and mirror not waking up.

      Re: MMM-PIR-Sensor Guide with Edits and Updates

      Hi all,

      Recently my mirror seems to lock in sleep mode even if I’m infront of my PIR sensor. This seems to happen randomly as the PIR sensor has been working fine. The only way to resolve it is to power off my raspberry pi and turn it back on.

      Has anyone else experienced this? And do you know where I can find log files to investigate the issue?

      Thanks

      Dav

      posted in Development
      D
      dubalda
    • RE: UK Lock-down mirror

      @cluelesscarter Sorry for the delayed response, things seem to be hectic at work as people are returning to the office! I’m going to keep hold of the samples as I might need a different glass depending on the size/lighting conditions of my next mirror.

      On a positive note I purchased them from https://www.mirrorsandglass.co.uk/ who will refund the same costs if you purchase your glass afterwards. That’s what I did and the customer service was excellent. I really wouldn’t bother with acrylic. Give mirror and glass a try, the refund policy for samples is really straight forward.

      I hope that helps.

      posted in Show your Mirror
      D
      dubalda
    • UK Lock-down mirror

      Hi all,

      Having started lock-down in the UK working from home and trying to home school my kids, this project has been a welcome distraction. I’ve finally managed to complete my mirror and have spent hours going through the various threads to get things working so I thought I’d share my final product. I was keen to use a PIR sensor to turn off the mirror when no one was there, and I have to admit it’s working perfectly.

      These are the modules that I’m using:

      MMM-PIR-Sensor
      MMM-WeatherOrNot
      currentweather
      weatherforecast
      MMM-MyCalendar - this includes our family Google calendar and UK Bank Holidays
      MMM-Spotify
      MMM-GoogleFit
      MMM-TFL
      MMM-LondonTransitStatus
      newsfeed - BBC News and the Financial Times at the top and M25 (motorway) feed at the bottom
      MMM-Strava

      I did setup MMM-GoogleAssistant and MMM-Assistant2Display which worked well when I was testing the but I couldn’t find a good way to mount a microphone and speakers so decided to exclude them.

      I got the frame built by a local carpenter and added a plug socket behind the unit, I wasn’t keen having a wire hanging down in case my kids yanked it! They’re still only small.

      I received three different samples for the two-way mirror:

      Pilkington MirroView 75/20 Generation Two (glass)
      Pilkington MirroView 50/50 Generation Two (glass)
      A generic acrylic two-way mirror

      As I’m using a 27" monitor I was told an acrylic sheet will have imperfections/distortion with reflections and I definitely found that when I compared the three samples. If I was creating a smaller mirror it would be an option. I spent a long time deliberating between the MirroView 75/20 and 50/50 glass. In the end I went for the 75/20 as it’s more reflective in my hallway (and just a little bit darker). I was keen to get a good reflection even when the monitor is in place as my wife used the previous mirror just before she leaves the house. I didn’t want any complaints from head office!

      Anyway…I hope you like it. Since returning to work I’ve found the MMM-TFL module really useful as it shows you which Underground lines have issues and the Google Fit step count is a good motivator to get up and going.

      Thanks again to everyone who contributes to the forums, I found it extremely useful and would be lost with out it.

      Cheers

      Mirror1.jpg

      Mirror3.jpg

      Mirror2.jpg

      posted in Show your Mirror
      D
      dubalda
    • RE: MMM-PIR-Sensor Guide with Edits and Updates

      Thanks guys, sorry for the late response! It’s the summer holidays so I’ve been doing daddy day care. I’ll try removing the module and reinstalling it. I’ll keep you posted.

      posted in Development
      D
      dubalda
    • RE: MMM-PIR-Sensor Guide with Edits and Updates

      @Fozi thank you for coming back to me. Here are the error messages I’m getting…apologies if it’s quite long! I unfortunately wasn’t able to upload the log file.

      pi@pi:~/MagicMirror/modules/MMM-PIR-Sensor $ git pull
      Updating be81cf0…d4831f2
      Fast-forward
      README.md | 14 ++++++++++++++
      node_helper.js | 46 ++++++++++++++++++++++++++++++++++++++++++++±
      2 files changed, 59 insertions(+), 1 deletion(-)
      pi@pi:~/MagicMirror/modules/MMM-PIR-Sensor $ npm install

      Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall /home/pi/MagicMirror/modules/MMM-PIR-Sensor
      electron-rebuild -e …/…/node_modules/electron

      â Rebuild Failed

      An unhandled error occurred inside electron-rebuild
      make: Entering directory ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi-2019/build’
      CXX(target) Release/obj.target/wiringPi/src/addon.o
      In file included from /home/pi/.electron-gyp/6.1.7/include/node/v8-internal.h:14,
      from /home/pi/.electron-gyp/6.1.7/include/node/v8.h:25,
      from …/src/addon.h:4,
      from …/src/addon.cc:1:
      /home/pi/.electron-gyp/6.1.7/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
      declarator attribute((deprecated(message)))
      ^
      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:8205:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
      V8_DEPRECATE_SOON("Use WithData version.",
      ^~~~~~~~~~~~~~~~~
      /home/pi/.electron-gyp/6.1.7/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
      declarator attribute((deprecated(message)))
      ^
      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:8214:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
      V8_DEPRECATE_SOON("Use WithData version.",
      ^~~~~~~~~~~~~~~~~
      In file included from …/src/addon.cc:1:
      …/src/addon.h:12:28: error: ‘Handle’ is not a member of ‘v8’
      bool HasInstance(v8::Handlev8::Value val);
      ^~~~~~
      …/src/addon.h:12:44: error: expected primary-expression before ‘>’ token
      bool HasInstance(v8::Handlev8::Value val);
      ^
      …/src/addon.h:12:46: error: ‘val’ was not declared in this scope
      bool HasInstance(v8::Handlev8::Value val);
      ^~~
      …/src/addon.h:13:28: error: redefinition of ‘bool node::Buffer::HasInstance’
      bool HasInstance(v8::Handlev8::Object val);
      ^~~~~~
      …/src/addon.h:12:12: note: ‘bool node::Buffer::HasInstance’ previously defined here
      bool HasInstance(v8::Handlev8::Value val);
      ^~~~~~~~~~~
      …/src/addon.h:13:28: error: ‘Handle’ is not a member of ‘v8’
      bool HasInstance(v8::Handlev8::Object val);
      ^~~~~~
      …/src/addon.h:13:45: error: expected primary-expression before ‘>’ token
      bool HasInstance(v8::Handlev8::Object val);
      ^
      …/src/addon.h:13:47: error: ‘val’ was not declared in this scope
      bool HasInstance(v8::Handlev8::Object val);
      ^~~
      …/src/addon.h:14:22: error: ‘Handle’ is not a member of ‘v8’
      char
      Data(v8::Handlev8::Value val);
      ^~~~~~
      …/src/addon.h:14:38: error: expected primary-expression before ‘>’ token
      char
      Data(v8::Handlev8::Value val);
      ^
      …/src/addon.h:14:40: error: ‘val’ was not declared in this scope
      char* Data(v8::Handlev8::Value val);
      ^~~
      …/src/addon.h:15:22: error: redefinition of ‘char* node::Buffer::Data’
      char* Data(v8::Handlev8::Object val);
      ^~~~~~
      …/src/addon.h:14:13: note: ‘char* node::Buffer::Data’ previously defined here
      char* Data(v8::Handlev8::Value val);
      ^~~~
      …/src/addon.h:15:22: error: ‘Handle’ is not a member of ‘v8’
      char* Data(v8::Handlev8::Object val);
      ^~~~~~
      …/src/addon.h:15:39: error: expected primary-expression before ‘>’ token
      char* Data(v8::Handlev8::Object val);
      ^
      …/src/addon.h:15:41: error: ‘val’ was not declared in this scope
      char* Data(v8::Handlev8::Object val);
      ^~~
      …/src/addon.h:16:25: error: ‘Handle’ is not a member of ‘v8’
      size_t Length(v8::Handlev8::Value val);
      ^~~~~~
      …/src/addon.h:16:41: error: expected primary-expression before ‘>’ token
      size_t Length(v8::Handlev8::Value val);
      ^
      …/src/addon.h:16:43: error: ‘val’ was not declared in this scope
      size_t Length(v8::Handlev8::Value val);
      ^~~
      …/src/addon.h:17:25: error: redefinition of ‘size_t node::Buffer::Length’
      size_t Length(v8::Handlev8::Object val);
      ^~~~~~
      …/src/addon.h:16:14: note: ‘size_t node::Buffer::Length’ previously defined here
      size_t Length(v8::Handlev8::Value val);
      ^~~~~~
      …/src/addon.h:17:25: error: ‘Handle’ is not a member of ‘v8’
      size_t Length(v8::Handlev8::Object val);
      ^~~~~~
      …/src/addon.h:17:42: error: expected primary-expression before ‘>’ token
      size_t Length(v8::Handlev8::Object val);
      ^
      …/src/addon.h:17:44: error: ‘val’ was not declared in this scope
      size_t Length(v8::Handlev8::Object val);
      ^~~
      …/src/addon.cc: In function ‘void throw_error(v8::Isolate*, const char*, …)’:
      …/src/addon.cc:35:90: error: no matching function for call to ‘v8::Exception::Error(v8::MaybeLocalv8::String)’
      isolate->ThrowException(v8::Exception::Error(v8::String::NewFromUtf8(isolate, buffer)));
      ^
      In file included from …/src/addon.h:4,
      from …/src/addon.cc:1:
      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:6538:23: note: candidate: ‘static v8::Localv8::Value v8::Exception::Error(v8::Localv8::String)’
      static Local Error(Local message);
      ^~~~~
      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:6538:23: note: no known conversion for argument 1 from ‘v8::MaybeLocalv8::String’ to ‘v8::Localv8::String’
      make: *** [wiringPi.target.mk:147: Release/obj.target/wiringPi/src/addon.o] Error 1
      make: Leaving directory ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi-2019/build’
      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:194:23)
      gyp ERR! stack at ChildProcess.emit (events.js:198:13)
      gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
      gyp ERR! System Linux 4.19.118-v7l+
      gyp ERR! command “/usr/bin/node” “/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/.bin/node-gyp” “rebuild” “–target=6.1.7” “–arch=arm” “–dist-url=https://www.electronjs.org/headers” “–build-from-source”
      gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi-2019
      gyp ERR! node -v v10.21.0
      gyp ERR! node-gyp -v v6.1.0
      gyp ERR! not ok

      Failed with exit code: 1

      Error: make: Entering directory ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi-2019/build’
      CXX(target) Release/obj.target/wiringPi/src/addon.o
      In file included from /home/pi/.electron-gyp/6.1.7/include/node/v8-internal.h:14,
      from /home/pi/.electron-gyp/6.1.7/include/node/v8.h:25,
      from …/src/addon.h:4,
      from …/src/addon.cc:1:
      /home/pi/.electron-gyp/6.1.7/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
      declarator attribute((deprecated(message)))
      ^
      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:8205:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
      V8_DEPRECATE_SOON("Use WithData version.",
      ^~~~~~~~~~~~~~~~~
      /home/pi/.electron-gyp/6.1.7/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
      declarator attribute((deprecated(message)))
      ^
      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:8214:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
      V8_DEPRECATE_SOON("Use WithData version.",
      ^~~~~~~~~~~~~~~~~
      In file included from …/src/addon.cc:1:
      …/src/addon.h:12:28: error: ‘Handle’ is not a member of ‘v8’
      bool HasInstance(v8::Handlev8::Value val);
      ^~~~~~
      …/src/addon.h:12:44: error: expected primary-expression before ‘>’ token
      bool HasInstance(v8::Handlev8::Value val);
      ^
      …/src/addon.h:12:46: error: ‘val’ was not declared in this scope
      bool HasInstance(v8::Handlev8::Value val);
      ^~~
      …/src/addon.h:13:28: error: redefinition of ‘bool node::Buffer::HasInstance’
      bool HasInstance(v8::Handlev8::Object val);
      ^~~~~~
      …/src/addon.h:12:12: note: ‘bool node::Buffer::HasInstance’ previously defined here
      bool HasInstance(v8::Handlev8::Value val);
      ^~~~~~~~~~~
      …/src/addon.h:13:28: error: ‘Handle’ is not a member of ‘v8’
      bool HasInstance(v8::Handlev8::Object val);
      ^~~~~~
      …/src/addon.h:13:45: error: expected primary-expression before ‘>’ token
      bool HasInstance(v8::Handlev8::Object val);
      ^
      …/src/addon.h:13:47: error: ‘val’ was not declared in this scope
      bool HasInstance(v8::Handlev8::Object val);
      ^~~
      …/src/addon.h:14:22: error: ‘Handle’ is not a member of ‘v8’
      char
      Data(v8::Handlev8::Value val);
      ^~~~~~
      …/src/addon.h:14:38: error: expected primary-expression before ‘>’ token
      char
      Data(v8::Handlev8::Value val);
      ^
      …/src/addon.h:14:40: error: ‘val’ was not declared in this scope
      char* Data(v8::Handlev8::Value val);
      ^~~
      …/src/addon.h:15:22: error: redefinition of ‘char* node::Buffer::Data’
      char* Data(v8::Handlev8::Object val);
      ^~~~~~
      …/src/addon.h:14:13: note: ‘char* node::Buffer::Data’ previously defined here
      char* Data(v8::Handlev8::Value val);
      ^~~~
      …/src/addon.h:15:22: error: ‘Handle’ is not a member of ‘v8’
      char* Data(v8::Handlev8::Object val);
      ^~~~~~
      …/src/addon.h:15:39: error: expected primary-expression before ‘>’ token
      char* Data(v8::Handlev8::Object val);
      ^
      …/src/addon.h:15:41: error: ‘val’ was not declared in this scope
      char* Data(v8::Handlev8::Object val);
      ^~~
      …/src/addon.h:16:25: error: ‘Handle’ is not a member of ‘v8’
      size_t Length(v8::Handlev8::Value val);
      ^~~~~~
      …/src/addon.h:16:41: error: expected primary-expression before ‘>’ token
      size_t Length(v8::Handlev8::Value val);
      ^
      …/src/addon.h:16:43: error: ‘val’ was not declared in this scope
      size_t Length(v8::Handlev8::Value val);
      ^~~
      …/src/addon.h:17:25: error: redefinition of ‘size_t node::Buffer::Length’
      size_t Length(v8::Handlev8::Object val);
      ^~~~~~
      …/src/addon.h:16:14: note: ‘size_t node::Buffer::Length’ previously defined here
      size_t Length(v8::Handlev8::Value val);
      ^~~~~~
      …/src/addon.h:17:25: error: ‘Handle’ is not a member of ‘v8’
      size_t Length(v8::Handlev8::Object val);
      ^~~~~~
      …/src/addon.h:17:42: error: expected primary-expression before ‘>’ token
      size_t Length(v8::Handlev8::Object val);
      ^
      …/src/addon.h:17:44: error: ‘val’ was not declared in this scope
      size_t Length(v8::Handlev8::Object val);
      ^~~
      …/src/addon.cc: In function ‘void throw_error(v8::Isolate*, const char*, …)’:
      …/src/addon.cc:35:90: error: no matching function for call to ‘v8::Exception::Error(v8::MaybeLocalv8::String)’
      isolate->ThrowException(v8::Exception::Error(v8::String::NewFromUtf8(isolate, buffer)));
      ^
      In file included from …/src/addon.h:4,
      from …/src/addon.cc:1:
      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:6538:23: note: candidate: ‘static v8::Localv8::Value v8::Exception::Error(v8::Localv8::String)’
      static Local Error(Local message);
      ^~~~~
      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:6538:23: note: no known conversion for argument 1 from ‘v8::MaybeLocalv8::String’ to ‘v8::Localv8::String’
      make: *** [wiringPi.target.mk:147: Release/obj.target/wiringPi/src/addon.o] Error 1
      make: Leaving directory ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi-2019/build’
      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:194:23)
      gyp ERR! stack at ChildProcess.emit (events.js:198:13)
      gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
      gyp ERR! System Linux 4.19.118-v7l+
      gyp ERR! command “/usr/bin/node” “/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/.bin/node-gyp” “rebuild” “–target=6.1.7” “–arch=arm” “–dist-url=https://www.electronjs.org/headers” “–build-from-source”
      gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi-2019
      gyp ERR! node -v v10.21.0
      gyp ERR! node-gyp -v v6.1.0
      gyp ERR! not ok

      Failed with exit code: 1
      at SafeSubscriber._error (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/spawn-rx/lib/src/index.js:267:84)
      at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:205:16)
      at SafeSubscriber.error (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:156:26)
      at Subscriber._error (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:92:26)
      at Subscriber.error (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:72:18)
      at MapSubscriber.Subscriber._error (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:92:26)
      at MapSubscriber.Subscriber.error (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:72:18)
      at SafeSubscriber._next (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/spawn-rx/lib/src/index.js:242:65)
      at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:205:16)
      at SafeSubscriber.next (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:143:22)
      npm ERR! code ELIFECYCLE
      npm ERR! errno 255
      npm ERR! Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall: electron-rebuild -e ../../node_modules/electron
      npm ERR! Exit status 255
      npm ERR!
      npm ERR! Failed at the Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall 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/pi/.npm/_logs/2020-07-16T09_45_07_608Z-debug.log
      [0_1595277021862_PIR-Sensor Error logs.txt](Uploading 100%)

      posted in Development
      D
      dubalda
    • RE: MMM-PIR-Sensor Guide with Edits and Updates

      Hi all, unfortunately I’m not too familiar with coding but had this module failed to update today having followed the steps above which worked fine with the previous version.

      Has anyone else experienced this?

      Thanks

      posted in Development
      D
      dubalda
    • MMM-LondonTransitStatus; Amending background of alerts and size.

      Re: MMM-LondonTransitStatus

      Hello, I new to MagicMirror and was hoping you can help me with your module. Your transit alert screenshots look very night with a black background. When I run this my background is the colour of the line which is having an issue. I’ve added an example of the Hammersmith & City Line where the background in Pink and the text spreads across the whole screen. In your screen shot the background is back which I prefer and seems neater.

      Do you know how I can amend the backgrounds of the alerts? And also resize the alerts?

      Many thanks in advance!Disruption.jpg

      posted in Transport
      D
      dubalda
    • 1 / 1