@sdetweil I used the upgrade script. Nothing broke…except the Calendar. I went back and did npm install.
Now nothing works–I get a blank screen, which may have to do with the MMM-PIR-Sensor module which breaks every time I do an upgrade.
@sdetweil I used the upgrade script. Nothing broke…except the Calendar. I went back and did npm install.
Now nothing works–I get a blank screen, which may have to do with the MMM-PIR-Sensor module which breaks every time I do an upgrade.
Greetings…I updated, and everything worked great using the update script, except the calendar. If I don’t comment out the calendar section in my config, I just get a blank screen. When I do comment it out, everything else works as expected. Has there been a change or do I have something wrong? I’ve searched the documentation and the forum and I can’t find anything.
{
module: "calendar",
header: "Upcoming Events",
position: "top_left",
config: {
timeFormat: "absolute",
getRelative: 0,
urgency: 0,
showEnd: false,
maximumEntries: 10,
calendars: [
{
symbol: "calendar-check-o ",
url: "webcal://p62-caldav.icloud.com/[removed]"
}
]
}
},
@sdetweil This does not work for me. I run npm install, and I get:
> 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/epoll/build'
CXX(target) Release/obj.target/epoll/src/epoll.o
../src/epoll.cc: In static member function ‘static void Epoll::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
../src/epoll.cc:163:39: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
constructor.Reset(ctor->GetFunction());
^
In file included from ../src/epoll.cc:11:0:
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^~~~~~~~~~~
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note: candidate expects 1 argument, 0 provided
../src/epoll.cc:165:23: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
ctor->GetFunction());
^
In file included from ../src/epoll.cc:11:0:
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^~~~~~~~~~~
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note: candidate expects 1 argument, 0 provided
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-cast-function-type’
epoll.target.mk:109: recipe for target 'Release/obj.target/epoll/src/epoll.o' failed
make: Leaving directory '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build'
make: *** [Release/obj.target/epoll/src/epoll.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: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.66-v7+
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/epoll
gyp ERR! node -v v10.18.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/epoll/build'
CXX(target) Release/obj.target/epoll/src/epoll.o
../src/epoll.cc: In static member function ‘static void Epoll::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
../src/epoll.cc:163:39: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
constructor.Reset(ctor->GetFunction());
^
In file included from ../src/epoll.cc:11:0:
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^~~~~~~~~~~
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note: candidate expects 1 argument, 0 provided
../src/epoll.cc:165:23: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
ctor->GetFunction());
^
In file included from ../src/epoll.cc:11:0:
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^~~~~~~~~~~
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note: candidate expects 1 argument, 0 provided
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-cast-function-type’
epoll.target.mk:109: recipe for target 'Release/obj.target/epoll/src/epoll.o' failed
make: Leaving directory '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build'
make: *** [Release/obj.target/epoll/src/epoll.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: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.66-v7+
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/epoll
gyp ERR! node -v v10.18.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-04-12T03_38_34_229Z-debug.log
Obviously rebuild does the same. I’ve deleted the module and reinstalled it. Any ideas?
@evroom my apologies…I DID use both. After rebooting again, I now get “line 66: electron not found.”
@bdream said in Update troubles. Again.:
link text
This seems like a great feature that would prevent a lot of issues. I don’t think it will help me in my current predicament, though, since I already updated according to the readme.
Was the update intended to work with Raspbian updates, too? Could the MagicMirror update have a breaking change if Raspbian hasn’t been updated?
Ssh to the device
git pull (as mentioned in the readme)
reboot
Every time I update, it seems to break something. This is getting frustrating, because I can’t diagnose the problem. This time, it shows MM is running in PM2, but all I see is my Pi desktop. I don’t even know where to begin to fix the issue, because it seems like everything should be working.
I updated my MagicMirror, and apparently there was a breaking change in the calendar configuration for some reason, because when I remove it from my config, the mirror works. Here’s what I have:
{
module: "calendar",
header: "Upcoming Events",
position: "top_left",
config: {
timeFormat: "absolute",
getRelative: 0,
urgency: 0,
showEnd: false,
maximumEntries: 10,
calendars: [
{
symbol: "calendar-check-o ",
url: "webcal://p62-calendars.icloud.com/published/2/hkgslOqBKyBGC-S....
}
]
}
},
Can someone tell me where I’ve gone wrong?
I got it working by removing MMM-PIR-Sensor and reinstalling it. Simply updating it did not work.
UPDATE: It’s the PIR-Sensor Module which isn’t working. When I delete it from the config file, everything works great. When I add it back, the screen is completely blank. It’s the same config that was working before the update.
I just updated my MagicMirror, and I now get a blank screen. There is only one instance running, and when I stop and start the process through pm2, I get the desktop and the blank screen again, respectively.
I used:
git pull
and received a message about package-lock.json needing to be stashed. I backed it up, then used:
git reset --hard
git pull
npm install
Immediately upon reboot, I received a blank screen. I also copied package-lock.bak to package-lock.json, and I still get the blank screen. I’m running both pihole and MagicMirror. Any assistance would be greatly appreciated.
@bhepler Thanks! I got the bend mostly fixed by adding supports that ran the length and width of the frame. It’s still nowhere near as perfect as glass would be. This was mainly a proof of concept, so I know what tweaks to make when it comes time to build another.
@mykle1 I’m not sure that fully hiding the power cord in this instance is going to be possible. Location and the layout of what’s on the other side of the wall has kind of dictated the power cord dangling as it is, although we will use a plant stand and plant of some kind to at least make it less noticeable.
After working for some time, I finally eliminated the random PIR triggering by using doorbell wire wrapped in aluminum foil to extend the distance between the PIR and the Pi itself. I’m happy with the build. and would only change a couple of things. Next time, I will probably get the microwave motion sensors, and I’ll definitely use a real glass mirror as the acrylic mirror already has some minor scratches.
I’ve installed and configured MagicMirror, and I’m using the MMM-PIR-Sensor module. I bought several PIR sensors in a lot from Amazon (https://www.amazon.com/gp/product/B012ZZ4LPM/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1), and I’ve tried each one of them to make sure my issue isn’t related to the sensor itself. I’m still not 100% convinced.
The monitor turns off as expected after ~63 seconds (3 second delay on the PIR and 60 seconds in the config). Immediately upon turning off, a high signal is received by the Raspberry Pi. I’m constantly checking with “gpio read 3” and it reports 0 until the monitor is turned off, then immediately reports 1 for ~3 seconds.
Is there some kind of interference going on, and if so, how can I stop it? I ask this because I have the PIR inside a box so it isn’t detecting motion/heat.
Thanks for the help.