@dubalda Seems to be ok now! False alarm!

@dubalda Seems to be ok now! False alarm!

Hello, I was hoping someone can help me. I’ve never had an issue with the MMM-WeatherOrNot module. But this morning I’m getting an error saying “500 Internal Server Error”. Is anyone having his error with this module? Here’s a screenshot? Any suggestions on how to fix this? Thanks in advance!

Here’s the code:
{
disabled: false,
module: 'MMM-WeatherOrNot',
position: 'top_right',
config: {
location: "xxx", // See instructions
locationCode: "xxx", // See instructions
languages: "en", // See Languages list
tempUnits: "C", // F or C
font: "Tahoma", // See Font list
textColor: "#ffffff", // Hex color codes.
htColor: "#ffffff", // high temp color. Hex color codes.
ltColor: "#00dfff", // low temp color. Hex color codes.
sunColor: "#febc2f", // Hex color codes.
moonColor: "#dfdede", // Hex color codes.
cloudColor: "#dfdede", // Hex color codes.
cloudFill: "#1f567c", // Hex color codes.
rainColor: "#93bffe", // Hex color codes.
snowColor: "#dfdede", // Hex color codes.
height: "115px", // module is responsive to change.
width: "800px", // module is responsive to changes
label: "United Kingdom", // Location seems logical . .
label2: "London", // . . . or anything you like
days: "7", // 3, 5 or 7
theme: "salmon", // See Themes list *** theme overrides bgColor. ***
bgColor: "#000000", // theme overrides bgColor.
icons: "Climacons Animated", // Iconvault, Climacons or Climacons Animated
animationSpeed: 3000,
updateInterval: 10 * 60 * 1000,
}
},
I’ve managed to solve this but the monitor is not turning off. I’ve read further and the module uses tvservice which isn’t support, so I presume that’s the issue.
@raspberrypi:~/MagicMirror $ sudo tvservice -o
tvservice is not supported when using the vc4-kms-v3d driver.
Similar features are available with standard linux tools
such as modetest from libdrm-tests.
Does anyone have any work-arounds to get this working? I don’t recall this being an issue on my old MagicMirror. Sadly I’m not a coder so any advice would be great!
Thanks
Hello, I was hoping someone might be able to help. I had MMM-PIR-Sensor working on a previous magic mirror but have had to rebuild my RaspberryPi (sadly didn’t back up the SD card). I’m getting the following error after installing and have tried varies troubleshooting tips but no joy. Does anyone have any advice? I’ve tried rebuilding the module folder. Thanks in advance.
Here’s the log output:
rajdubal@raspberrypi:~/MagicMirror $ npm start
magicmirror@2.20.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
[19.09.2022 20:39.02.730] [LOG] Starting MagicMirror: v2.20.0
[19.09.2022 20:39.02.737] [LOG] Loading config …
[19.09.2022 20:39.02.742] [LOG] Loading module helpers …
[19.09.2022 20:39.02.745] [LOG] No helper found for module: alert.
[19.09.2022 20:39.02.763] [LOG] Initializing new module helper …
[19.09.2022 20:39.02.765] [LOG] Module helper loaded: updatenotification
[19.09.2022 20:39.02.766] [LOG] No helper found for module: clock.
[19.09.2022 20:39.02.992] [LOG] Initializing new module helper …
[19.09.2022 20:39.02.993] [LOG] Module helper loaded: calendar
[19.09.2022 20:39.03.020] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module ‘/home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 106. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
[19.09.2022 20:39.03.021] [LOG] Loading module helpers …
[19.09.2022 20:39.03.022] [LOG] No helper found for module: alert.
[19.09.2022 20:39.03.023] [LOG] Initializing new module helper …
[19.09.2022 20:39.03.024] [LOG] Module helper loaded: updatenotification
[19.09.2022 20:39.03.026] [LOG] No helper found for module: clock.
[19.09.2022 20:39.03.026] [LOG] Initializing new module helper …
[19.09.2022 20:39.03.028] [LOG] Module helper loaded: calendar
[19.09.2022 20:39.03.038] [ERROR] App threw an error during load
[19.09.2022 20:39.03.039] [ERROR] Error: The module ‘/home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 106. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1812)
at Module._extensions…node (node:internal/modules/cjs/loader:1203:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1812)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at bindings (/home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
at /home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31
[19.09.2022 20:39.03.041] [ERROR] Whoops! There was an uncaught exception…
[19.09.2022 20:39.03.046] [ERROR] Error: The module ‘/home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 106. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1812)
at Module._extensions…node (node:internal/modules/cjs/loader:1203:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1812)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at bindings (/home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
at /home/rajdubal/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31 {
code: ‘ERR_DLOPEN_FAILED’
}
[19.09.2022 20:39.03.048] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[19.09.2022 20:39.03.048] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[19.09.2022 20:39.03.305] [LOG] Launching application.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
^C/home/rajdubal/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
@sdetweil I think the issue was due to the api having to be paid for. In the end I changed to MMM-COVID19-SPARKLINE which working fine. Thanks for your help!
I’ve tried…
curl -H “x-rapidapi-host: coronavirus-monitor-v2.p.rapidapi.com” -H “x-rapidapi-key: xxx” ‘https://coronavirus-monitor-v2.p.rapidapi.com/coronavirus/cases_by_country.php’
And have copied the key (copy/paste) exactly from the website but get the message…
“message”:“You are not subscribed to this API.”
I think I’ll just get the Covid numbers from the news! Thanks for your help @sdetweil !
Sorry to hear you’re in hospital! Hopefully it’s nothing to serious.
I tried…
https://coronavirus-monitor.p.rapidapi.com/coronavirus/united_states_cases.php&api_key=xxx
and received.
{“message”:“Invalid API key. Go to https://docs.rapidapi.com/docs/keys for more info.”}
RapidAPI does see it’s free service. I’ve amened the entries in node_helper.js back to the their defaults but still no joy there. Very strange.
Hi Sam,
I just get "{“message”:“Invalid API key. Go to https://docs.rapidapi.com/docs/keys for more info.”}
Sorry, perhaps I missing something here…are you refering this URL
https://coronavirus-monitor-V2.p.rapidapi.com/coronavirus/cases_by_country.php
Thx
Hi guys,
I’m not getting much luck getting this to work. I just get the header and no errors in the log.
{
module: “MMM-COVID19”,
position: “top_left”,
config: {
updateInterval: 300000,
worldStats: true,
delta: true,
lastUpdateInfo: true,
countries: [ “Argentina”, “China”, “Italy”, “Spain” ],
headerRowClass: “small”,
rapidapiKey : “xxx”
}
},
I’ve also amended the node_helper.js for the module to include the new rapidhost URLs
var byCountryUrl = ‘https://coronavirus-monitor-V2.p.rapidapi.com/coronavirus/cases_by_country.php’
getGlobalStats: function(key) {
var self = this
var options = {
method: ‘GET’,
url: worldStatsUrl,
headers: {
//‘x-rapidapi-host’: ‘coronavirus-monitor.p.rapidapi.com’,
‘x-rapidapi-host’: ‘coronavirus-monitor-v2.p.rapidapi.com’,
‘x-rapidapi-key’: key
}
}
getStatsByCoutry: function(key) {
var self = this
var options = {
method: ‘GET’,
url: byCountryUrl,
headers: {
//‘x-rapidapi-host’: ‘coronavirus-monitor.p.rapidapi.com’,
‘x-rapidapi-host’: ‘coronavirus-monitor-v2.p.rapidapi.com’,
‘x-rapidapi-key’: key
}
}
Any help would be great!
Thanks
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?
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.
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
@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.
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



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.
@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%)
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
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!