Hi, I have 2 ReferenceErrors with 2 Modules:
- Remote-Control from Jopyth
- AccuWeatherForecastDeluxe from BigBot89
The logs told me, there are some ReferenceErrors. Here is a extraction:
code_text
[2024-06-29 19:51:26.630] [ERROR] ERROR! Could not validate main module js file.
[2024-06-29 19:51:26.631] [ERROR] ReferenceError: defaults is not defined
at Object.<anonymous> (/home/***/MagicMirror/modules/MMM-AccuWeatherForecastDeluxe/MMM-AccuWeatherForecastDeluxe.js:100:22)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
at Module.load (node:internal/modules/cjs/loader:1098:32)
at Module._load (node:internal/modules/cjs/loader:945:12)
at c._load (node:electron/js2c/node_init:2:13672)
at Module.require (node:internal/modules/cjs/loader:1122:19)
at require (node:internal/modules/helpers:130:18)
at Class.loadModuleDefaultConfig (/home/***/MagicMirror/modules/MMM-Remote-Control/node_helper.js:314:30)
at /home/***/MagicMirror/modules/MMM-Remote-Control/node_helper.js:268:26
at FSReqCallback.oncomplete (node:fs:200:5)
[....]
[2024-06-29 19:51:29.949] [ERROR] (node:2261) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `electron --trace-deprecation ...` to show where the warning was created)
Here is the whole logfile:
code_text
> magicmirror@2.27.0 start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
[2024-06-29 19:51:20.156] [LOG] Starting MagicMirror: v2.27.0
[2024-06-29 19:51:20.190] [LOG] Loading config ...
[2024-06-29 19:51:20.195] [LOG] config template file not exists, no envsubst
[2024-06-29 19:51:20.198] [LOG] Loading module helpers ...
[2024-06-29 19:51:20.200] [LOG] No helper found for module: alert.
[2024-06-29 19:51:20.201] [LOG] No helper found for module: compliments.
[2024-06-29 19:51:20.608] [LOG] Initializing new module helper ...
[2024-06-29 19:51:20.608] [LOG] Module helper loaded: updatenotification
[2024-06-29 19:51:20.813] [LOG] Initializing new module helper ...
[2024-06-29 19:51:20.814] [LOG] Module helper loaded: calendar
[2024-06-29 19:51:20.894] [LOG] Initializing new module helper ...
[2024-06-29 19:51:20.894] [LOG] Module helper loaded: MMM-MacAddressScan
[2024-06-29 19:51:20.905] [LOG] Initializing new module helper ...
[2024-06-29 19:51:20.905] [LOG] Module helper loaded: MMM-DBF
[2024-06-29 19:51:21.501] [LOG] Initializing new module helper ...
[2024-06-29 19:51:21.501] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify
[2024-06-29 19:51:21.503] [LOG] No helper found for module: clock.
[2024-06-29 19:51:21.504] [LOG] No helper found for module: weather.
[2024-06-29 19:51:21.511] [LOG] Initializing new module helper ...
[2024-06-29 19:51:21.511] [LOG] Module helper loaded: MMM-WetterOnline
[2024-06-29 19:51:21.589] [LOG] Initializing new module helper ...
[2024-06-29 19:51:21.590] [LOG] Module helper loaded: MMM-AccuWeatherForecastDeluxe
[2024-06-29 19:51:21.594] [LOG] No helper found for module: MMM-Regenradar.
[2024-06-29 19:51:21.595] [LOG] No helper found for module: MMM-TomTomCalculateRouteTraffic.
[2024-06-29 19:51:21.596] [LOG] No helper found for module: MMM-TomTomTrafficIncidents.
[2024-06-29 19:51:21.819] [LOG] Initializing new module helper ...
[2024-06-29 19:51:21.819] [LOG] Module helper loaded: newsfeed
[2024-06-29 19:51:21.979] [LOG] Initializing new module helper ...
[2024-06-29 19:51:21.980] [LOG] Module helper loaded: MMM-Remote-Control
[2024-06-29 19:51:21.980] [LOG] All module helpers loaded.
[2024-06-29 19:51:21.983] [LOG] Starting server on port 8080 ...
[2024-06-29 19:51:22.312] [LOG] Server started ...
[2024-06-29 19:51:22.312] [LOG] Connecting socket for: updatenotification
[2024-06-29 19:51:22.313] [LOG] Starting module helper: updatenotification
[2024-06-29 19:51:22.313] [LOG] Connecting socket for: calendar
[2024-06-29 19:51:22.314] [LOG] Starting node helper for: calendar
[2024-06-29 19:51:22.314] [LOG] Connecting socket for: MMM-MacAddressScan
[2024-06-29 19:51:22.314] [LOG] Starting module: MMM-MacAddressScan
[2024-06-29 19:51:22.315] [LOG] Connecting socket for: MMM-DBF
[2024-06-29 19:51:22.315] [LOG] Starting module helper: MMM-DBF
[2024-06-29 19:51:22.315] [LOG] Connecting socket for: MMM-NowPlayingOnSpotify
[2024-06-29 19:51:22.316] [LOG] Connecting socket for: MMM-WetterOnline
[2024-06-29 19:51:22.316] [LOG] Starting module helper: MMM-WetterOnline
[2024-06-29 19:51:22.316] [LOG] Connecting socket for: MMM-AccuWeatherForecastDeluxe
[2024-06-29 19:51:22.316] [LOG] Starting node_helper for module [MMM-AccuWeatherForecastDeluxe]
[2024-06-29 19:51:22.317] [LOG] Connecting socket for: newsfeed
[2024-06-29 19:51:22.317] [LOG] Starting node helper for: newsfeed
[2024-06-29 19:51:22.318] [LOG] Connecting socket for: MMM-Remote-Control
[2024-06-29 19:51:22.318] [LOG] Starting node helper for: MMM-Remote-Control
[2024-06-29 19:51:22.478] [LOG] Sockets connected & modules started ...
[2024-06-29 19:51:24.231] [LOG] Launching application.
[2024-06-29 19:51:25.871] [INFO] System information:
### SYSTEM: manufacturer: ; model: ; raspberry: undefined; virtual: false
### OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.31+rpt-rpi-2712
### VERSIONS: electron: 29.1.6; used node: 20.9.0; installed node: 22.3.0; npm: 10.8.1; pm2: 5.3.1
### OTHER: timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined
[2404:0629/195126.488223:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.488412:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.488561:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.488610:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.488685:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.488733:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.488802:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.488845:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.488911:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.488955:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.489024:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.489068:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.489138:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.489184:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.490567:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.490618:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.490686:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.490737:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.490805:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.490848:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.490916:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.490960:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.491027:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.491071:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.491140:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.491184:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.491253:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
[2404:0629/195126.491297:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
[2024-06-29 19:51:26.630] [ERROR] ERROR! Could not validate main module js file.
[2024-06-29 19:51:26.631] [ERROR] ReferenceError: defaults is not defined
at Object.<anonymous> (/home/***/MagicMirror/modules/MMM-AccuWeatherForecastDeluxe/MMM-AccuWeatherForecastDeluxe.js:100:22)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
at Module.load (node:internal/modules/cjs/loader:1098:32)
at Module._load (node:internal/modules/cjs/loader:945:12)
at c._load (node:electron/js2c/node_init:2:13672)
at Module.require (node:internal/modules/cjs/loader:1122:19)
at require (node:internal/modules/helpers:130:18)
at Class.loadModuleDefaultConfig (/home/***/MagicMirror/modules/MMM-Remote-Control/node_helper.js:314:30)
at /home/***/MagicMirror/modules/MMM-Remote-Control/node_helper.js:268:26
at FSReqCallback.oncomplete (node:fs:200:5)
[2024-06-29 19:51:29.345] [LOG] Create new calendarfetcher for url: http://localhost:8080/modules//default/lokale_kalender/Geburtstage_Familie_Freunde-2024-06-08.ics - Interval: 3600000
[2024-06-29 19:51:29.461] [LOG] Create new calendarfetcher for url: http://localhost:8080/modules/default/lokale_kalender/Feiertage_Ferien_2024_2025.ics - Interval: 3600000
[2024-06-29 19:51:29.467] [LOG] Create new calendarfetcher for url: http://localhost:8080/modules/default/lokale_kalender/Abfuhrtermine_SH_2024.ics - Interval: 3600000
[2024-06-29 19:51:29.653] [INFO] Calendar-Fetcher: Broadcasting 73 events from http://localhost:8080/modules//default/lokale_kalender/Geburtstage_Familie_Freunde-2024-06-08.ics.
[2024-06-29 19:51:29.683] [INFO] Calendar-Fetcher: Broadcasting 15 events from http://localhost:8080/modules/default/lokale_kalender/Feiertage_Ferien_2024_2025.ics.
[2024-06-29 19:51:29.698] [INFO] Calendar-Fetcher: Broadcasting 41 events from http://localhost:8080/modules/default/lokale_kalender/Abfuhrtermine_SH_2024.ics.
[2404:0629/195129.812384:ERROR:gl_utils.cc(424)] [.WebGL-0x2400c61c00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[2024-06-29 19:51:29.837] [LOG] MMM-MacAddressScan received CONFIG
[2024-06-29 19:51:29.915] [LOG] Create new newsfetcher for url: https://www.tagesschau.de/xml/atom/ - Interval: 300000
[2024-06-29 19:51:29.918] [LOG] Create new newsfetcher for url: https://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[2024-06-29 19:51:29.921] [LOG] Create new newsfetcher for url: https://www.spiegel.de/schlagzeilen/tops/index.rss - Interval: 300000
[2024-06-29 19:51:29.923] [LOG] [MMM-AccuWeatherForecastDeluxe] ACCUWEATHER_ONE_CALL_FORECAST_GET
[2024-06-29 19:51:29.924] [LOG] [MMM-AccuWeatherForecastDeluxe] Getting data: http://dataservice.accuweather.com/forecasts/v1/daily/5day/1001335?apikey=123&lang=en-us&metric=true&details=true
[2024-06-29 19:51:29.927] [LOG] [MMM-AccuWeatherForecastDeluxe] after API calls
[2024-06-29 19:51:29.929] [INFO] updatenotification: Updater Class Loaded!
[2024-06-29 19:51:29.930] [INFO] updatenotification: Checking PM2 using...
[2024-06-29 19:51:29.931] [INFO] Checking git for module: MMM-MacAddressScan
[2024-06-29 19:51:29.949] [ERROR] (node:2261) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `electron --trace-deprecation ...` to show where the warning was created)
[2024-06-29 19:51:29.966] [INFO] Checking git for module: MMM-DBF
[2024-06-29 19:51:29.984] [INFO] Checking git for module: MMM-NowPlayingOnSpotify
[2024-06-29 19:51:30.011] [INFO] Checking git for module: MMM-WetterOnline
[2404:0629/195130.026453:ERROR:gl_utils.cc(424)] [.WebGL-0x2400c61c00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[2024-06-29 19:51:30.029] [INFO] updatenotification: [PM2] You are not using pm2
[2024-06-29 19:51:30.084] [INFO] Checking git for module: MMM-AccuWeatherForecastDeluxe
[2024-06-29 19:51:30.100] [LOG] Refreshed access token because it has expired. Expired at: 19:51:29 now is: 19:51:30
[2024-06-29 19:51:30.108] [INFO] Checking git for module: MMM-Regenradar
[2024-06-29 19:51:30.122] [INFO] Checking git for module: MMM-TomTomCalculateRouteTraffic
[2024-06-29 19:51:30.139] [INFO] Checking git for module: MMM-TomTomTrafficIncidents
[2024-06-29 19:51:30.159] [INFO] Checking git for module: MMM-Remote-Control
[2024-06-29 19:51:30.201] [INFO] Checking git for module: MagicMirror
[2404:0629/195130.233571:ERROR:gl_utils.cc(424)] [.WebGL-0x2400c61c00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[2024-06-29 19:51:30.498] [INFO] Newsfeed-Fetcher: Broadcasting 40 items.
[2024-06-29 19:51:30.549] [LOG] BB After Daily
[2024-06-29 19:51:30.549] [LOG] [MMM-AccuWeatherForecastDeluxe] Getting data: http://dataservice.accuweather.com/currentconditions/v1/1001335?apikey=123&lang=en-us&details=true
[2024-06-29 19:51:30.623] [INFO] Newsfeed-Fetcher: Broadcasting 22 items.
[2024-06-29 19:51:30.687] [INFO] Newsfeed-Fetcher: Broadcasting 23 items.
[2024-06-29 19:51:30.741] [LOG] BB After Current
[2024-06-29 19:51:30.743] [LOG] [MMM-AccuWeatherForecastDeluxe] Getting data: http://dataservice.accuweather.com/forecasts/v1/hourly/12hour/1001335?apikey=123&lang=en-us&details=true
[2024-06-29 19:51:30.758] [INFO] MMM-WetterOnline: The gid of city "owschlag" is 10037.
[2404:0629/195130.863111:ERROR:gl_utils.cc(424)] [.WebGL-0x2400c61c00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)
[2024-06-29 19:51:30.931] [LOG] BB After Hourly
[2024-06-29 19:51:30.933] [LOG] [MMM-AccuWeatherForecastDeluxe] after sendSocketNotification
Can you tell me, where is the problem? I reinstalled Nodejs & npm. Thank you very much