@strawberry-3-141 I’ve tried this before, but did not work for me. I’ve also made a reboot.
Will i need to have a downgrade?
@strawberry-3-141 I’ve tried this before, but did not work for me. I’ve also made a reboot.
Will i need to have a downgrade?
@strawberry-3-141 thank you! that worked for me.
But now i’ve got this error:
mm-0 App threw an error during load
mm-0 Error: Module version mismatch. Expected 49, got 48.
mm-0 at Error (native)
mm-0 at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20)
mm-0 at Object.Module._extensions..node (module.js:568:18)
mm-0 at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:167:20)
mm-0 at Module.load (module.js:458:32)
mm-0 at tryModuleLoad (module.js:417:12)
mm-0 at Function.Module._load (module.js:409:3)
mm-0 at Module.require (module.js:468:17)
mm-0 at require (internal/module.js:20:19)
mm-0 at Object.<anonymous> (/home/pi/MagicMirror/modules/temperature/node_helper.js:2:17)
mm-0 Whoops! There was an uncaught exception...
mm-0 Error: Module version mismatch. Expected 49, got 48.
mm-0 at Error (native)
mm-0 at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20)
mm-0 at Object.Module._extensions..node (module.js:568:18)
mm-0 at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:167:20)
mm-0 at Module.load (module.js:458:32)
mm-0 at tryModuleLoad (module.js:417:12)
mm-0 at Function.Module._load (module.js:409:3)
mm-0 at Module.require (module.js:468:17)
mm-0 at require (internal/module.js:20:19)
mm-0 at Object.<anonymous> (/home/pi/MagicMirror/modules/temperature/node_helper.js:2:17)
mm-0 MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
mm-0 If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
mm-0 Launching application.
On line 2:
var sensorLib = require("node-dht-sensor");
Node Version
pi@raspberrypi:~/MagicMirror/modules $ node -v
v6.3.1
Where will I need to install node-dht-sensor using it with MagicMirror?
a: ~/MagicMirror/
folder
b: ~/MagicMirror/modules/
folder
c: ~/MagicMirror/modules/MMM-Temperature/
folder
using this command: npm install node-dht-sensor
I would like to use it in node_helper.js inside a new module.
Thanks!
I’ve reinstalled mm2 on a new SD Card and copied all my modules up en it.
Now I’ve got this error message with MMM-PIR-Module:
mm-0 App threw an error during load
mm-0 Error: Module version mismatch. Expected 49, got 48.
mm-0 at Error (native)
mm-0 at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20)
mm-0 at Object.Module._extensions..node (module.js:568:18)
mm-0 at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:167:20)
mm-0 at Module.load (module.js:458:32)
mm-0 at tryModuleLoad (module.js:417:12)
mm-0 at Function.Module._load (module.js:409:3)
mm-0 at Module.require (module.js:468:17)
mm-0 at require (internal/module.js:20:19)
mm-0 at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi/lib/exports.js:1:97)
mm-0 Whoops! There was an uncaught exception...
mm-0 Error: Module version mismatch. Expected 49, got 48.
mm-0 at Error (native)
mm-0 at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20)
mm-0 at Object.Module._extensions..node (module.js:568:18)
mm-0 at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:167:20)
mm-0 at Module.load (module.js:458:32)
mm-0 at tryModuleLoad (module.js:417:12)
mm-0 at Function.Module._load (module.js:409:3)
mm-0 at Module.require (module.js:468:17)
mm-0 at require (internal/module.js:20:19)
mm-0 at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi/lib/exports.js:1:97)
mm-0 MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
mm-0 If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
mm-0 Launching application.
Any ideas?
@MichMich I still have these problems with office365 calender :-(
Did you found a solution for this issue?
You will need to clon it in to ~/MagicMirror/modules
and add the config to your config/config.js
file
Bangee
After googleing 1000 different websites I’ve used the nood_helper.js
solution.
And to load the nood_helper.js I had to restart electron. pm2 restart mm
that coast me another hour to find out why it was no loading :-):gun: :hammer:
I’ll try to grab some informations from a JSON Data feed.
But I’ve got always this error:
Quellübergreifende (Cross-Origin) Anfrage blockiert: Die Gleiche-Quelle-Regel verbietet das Lesen der externen Ressource auf http://beny.ch/ironman/2015. (Grund: CORS-Kopfzeile 'Access-Control-Allow-Origin' fehlt).
ironman: Could not load data.
console.error(message);
Datalink:
http://beny.ch/ironman/2015
here is the code to grab the content:
var ironmanRequest = new XMLHttpRequest();
ironmanRequest.open("GET", url, true);
ironmanRequest.onreadystatechange = function() {
if (this.readyState === 4) {
if (this.status === 200) {
self.processIronman(JSON.parse(this.response));
} else if (this.status === 401) {
self.updateDom(self.config.animationSpeed);
Log.error(self.name + ": Error forbidden");
retry = false;
} else {
Log.error(self.name + ": Could not load data.");
}
if (retry) {
self.scheduleUpdate((self.loaded) ? -1 : self.config.retryDelay);
}
}
};
ironmanRequest.send();
How can I fix that?
Thanks for helping me :-)
i’ve sent you the working on. i don’t know why, but most of the time, the calendar is working find.
And sometimes there is this bug. I’ve sent you a diff file, with the differences between the files.
@MichMich did you find the problem?