Read the statement by Michael Teeuw here.
MMM-BMW-OW API Issues
-
@philie but, if its the server version, you should be doing npm run server… server has no display… you will need to change the MM config to allow apps outside localhost(inside the lxc container) to connect to MM
then use a host browser to connect to http://container_ip_address:MM_port (8080 by default)
-
@sdetweil ahh ok I didn’t know there is a difference to restart… :(
however now we’re talking:
I could figure out and fix the error in the node_helper.js. Now its working and this is the output:root@magicmirror:/opt/magicmirror# npm run server > magicmirror@2.26.0 server > node ./serveronly [03.01.2024 22:54.21.808] [LOG] Starting MagicMirror: v2.26.0 [03.01.2024 22:54.21.809] [LOG] Loading config ... [03.01.2024 22:54.21.809] [DEBUG] config template file not exists, no envsubst [03.01.2024 22:54.21.810] [LOG] Loading module helpers ... [03.01.2024 22:54.21.811] [LOG] No helper found for module: alert. [03.01.2024 22:54.21.814] [LOG] Initializing new module helper ... [03.01.2024 22:54.21.814] [LOG] Module helper loaded: updatenotification [03.01.2024 22:54.21.814] [LOG] No helper found for module: clock. [03.01.2024 22:54.21.858] [LOG] Initializing new module helper ... [03.01.2024 22:54.21.858] [LOG] Module helper loaded: calendar [03.01.2024 22:54.21.858] [LOG] No helper found for module: MMM-AareGuru. [03.01.2024 22:54.21.859] [ERROR] Whoops! There was an uncaught exception... [03.01.2024 22:54.21.861] [ERROR] Error: Cannot find module 'request' Require stack: - /opt/magicmirror/modules/MMM-BMW-OW/node_helper.js - /opt/magicmirror/js/app.js - /opt/magicmirror/serveronly/index.js at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15) at Module._resolveFilename (/opt/magicmirror/node_modules/module-alias/index.js:49:29) at Module._load (node:internal/modules/cjs/loader:985:27) at Module.require (node:internal/modules/cjs/loader:1235:19) at require (node:internal/modules/helpers:176:18) at Object.<anonymous> (/opt/magicmirror/modules/MMM-BMW-OW/node_helper.js:9:17) at Module._compile (node:internal/modules/cjs/loader:1376:14) at Module._extensions..js (node:internal/modules/cjs/loader:1435:10) at Module.load (node:internal/modules/cjs/loader:1207:32) at Module._load (node:internal/modules/cjs/loader:1023:12) at Module.require (node:internal/modules/cjs/loader:1235:19) at require (node:internal/modules/helpers:176:18) at loadModule (/opt/magicmirror/js/app.js:181:19) at loadModules (/opt/magicmirror/js/app.js:211:10) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async App.start (/opt/magicmirror/js/app.js:259:3) { code: 'MODULE_NOT_FOUND', requireStack: [ '/opt/magicmirror/modules/MMM-BMW-OW/node_helper.js', '/opt/magicmirror/js/app.js', '/opt/magicmirror/serveronly/index.js' ] } [03.01.2024 22:54.21.861] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [03.01.2024 22:54.21.861] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues root@magicmirror:/opt/magicmirror#
Still no functional MMM-BMW-OW though.
-
@philie said in MMM-BMW-OW API Issues:
Cannot find module ‘request’
yes…
starting 2 years ago we have been removing no longer supported, or needed libraries
see https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-laterthis documents the procedure for finding the missing library name and installing it in the module folder…
many module authors didn’t know how to document dependencies, and well, it just worked…
lots of modules haven’t been updated in a while, SO… we users ge to do the update OVER AND OVER…there are 8 missing libraries now I think…
-
@sdetweil As mentioned, I have now also switched to a Raspbery Pi 3, installed MM cleanly using your script and then changed the openweathermap API onecall to 3.0 in the MMM-BMW-OW module, executed npm install request in the module folder, and now the module is running. Thank you very much for your support
-
@philie awesome… thanks for the feedback