Read the statement by Michael Teeuw here.
MMM-bergfex not working
-
@MajorC black screen, do this
open the developers console, ctrl-shift-i on the mirror keyboard
select the console tab
and scroll up to see any errors, usually red textu can also filter messages for specific modules by putting part of the module name in the filter field, ‘berg’ for example here
-
I can open the developers console without mmm-bergfex in the config and will see a couple of entries, no errors.
As soon as I include mmm-bergfex in the config, the developers console says: DevTool was disconnected from the page. Once page is reloaded, DevTools will automatically reconnect.
-
@MajorC ok, look in the window where you start MM, npm start or pm2 ,
if pm2 the pm2 logs --lines=???
where ??? is a number, 15 is the defaultto get to the window if MM is showing, alt-spacebar, n
-
/home/pi/.pm2/logs/MagicMirror-error.log last 15 lines: 0|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-bergfex/node_helper.js:11:13) 0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:786:30) 0|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10) 0|MagicMir | at Module.load (internal/modules/cjs/loader.js:645:32) { 0|MagicMir | code: 'MODULE_NOT_FOUND', 0|MagicMir | requireStack: [ 0|MagicMir | '/home/pi/MagicMirror/modules/MMM-bergfex/node_helper.js', 0|MagicMir | '/home/pi/MagicMirror/js/app.js', 0|MagicMir | '/home/pi/MagicMirror/js/electron.js', 0|MagicMir | '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js', 0|MagicMir | undefined 0|MagicMir | ] 0|MagicMir | } 0|MagicMir | [2020-09-27 17:30:56.629] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | [2020-09-27 17:30:56.630] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
-
@MajorC looks like you didn’t do the npm install in the module folder after cloning
-
pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install cheerio npm WARN MMM-bergfex@ license should be a valid SPDX license expression + cheerio@1.0.0-rc.3 updated 1 package and audited 65 packages in 5.877s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install npm WARN MMM-bergfex@ license should be a valid SPDX license expression audited 65 packages in 2.257s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $
I just did it again, but I am quite sure I already did it before.
-
@MajorC sadly he didn’t update package.json with all the required modules
do
npm install async --save
npm install sys – savehis code
var async = require('async'); var sys = require('sys'); var exec = require('child_process').exec; const request = require('request'); const cheerio = require("cheerio");
-
@sdetweil said in MMM-bergfex not working:
npm install async --save
npm install sys – savein the MMM-bergfex folder?
-
@MajorC of course
-
sorry, I am totaly new to this world, my first Raspberry project.
pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install async --save npm WARN MMM-bergfex@ license should be a valid SPDX license expression + async@3.2.0 added 1 package from 1 contributor and audited 66 packages in 2.709s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install sys -- save npm WARN MMM-bergfex@ license should be a valid SPDX license expression + sys@0.0.1 + save@2.4.0 added 13 packages from 11 contributors and audited 79 packages in 8.763s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $