ok thanks for the information.
That’s ok
I learned something today
Read the statement by Michael Teeuw here.
Posts
-
RE: Weather module
-
RE: Weather module
these options are displayed on the mirror while they are checked “false”
useBeaufort: “false”,
showFeelsLike: “false”,
showWindDirection: “false”,
showSun: “false” -
Weather module
Hi,
since update V2.13.0, all work fine but module weather has a problem.{ module: "weather", position: "top_left", config: { location: "myloc", locationID: "myid", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city apiKey: "myapikay", useBeaufort: "false", showFeelsLike: "false", showWindDirection: "false", showSun: "false" } },because this options are displayed on my mm.
useBeaufort: “false”,
showFeelsLike: “false”,
showWindDirection: “false”,
showSun: “false”Someone has the same problem ?
thx -
RE: magicmirror is blocked after 30 sec
yes i did it.
i solved the problem
I found the fault in the compliment module.
On compliments.js file
I wrote :compliments: { anytime: [], morning: [], afternoon: [], evening: [], "....-01-01": ["Happy new year!"], "....-09-14": ["Happy birthday !"]then adding “”
compliments: { anytime: [""], morning: [""], afternoon: [""], evening: [""], "....-01-01": ["Happy new year!"], "....-09-14": ["Happy birthday !"]the update interval is every 30 sec, that’s why it blocked.
Thanks you for your help @sdetweil
-
RE: magicmirror is blocked after 30 sec
I have disabled all modules in config.js and the clock is not blocking.
I will reactivate the modules one by one to identify the failure -
RE: magicmirror is blocked after 30 sec
magicmirror@2.12.0 start /home/pi/MagicMirror
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[2020-09-14 16:12:50.092] [LOG] Starting MagicMirror: v2.12.0
[2020-09-14 16:12:50.106] [LOG] Loading config …
[2020-09-14 16:12:50.120] [LOG] Loading module helpers …
[2020-09-14 16:12:50.124] [LOG] No helper found for module: alert.
[2020-09-14 16:12:50.218] [LOG] Initializing new module helper …
[2020-09-14 16:12:50.219] [LOG] Module helper loaded: updatenotification
[2020-09-14 16:12:50.221] [LOG] No helper found for module: clock.
[2020-09-14 16:12:50.977] [LOG] Initializing new module helper …
[2020-09-14 16:12:50.978] [LOG] Module helper loaded: calendar
[2020-09-14 16:12:50.979] [LOG] No helper found for module: compliments.
[2020-09-14 16:12:50.981] [LOG] No helper found for module: currentweather.
[2020-09-14 16:12:50.982] [LOG] No helper found for module: MMM-AirQuality.
[2020-09-14 16:12:50.987] [LOG] Initializing new module helper …
[2020-09-14 16:12:50.988] [LOG] Module helper loaded: MMM-Todoist
[2020-09-14 16:12:50.989] [LOG] All module helpers loaded.
[2020-09-14 16:12:51.200] [LOG] Starting server on port 8080 …
[2020-09-14 16:12:51.227] [LOG] Server started …
[2020-09-14 16:12:51.228] [LOG] Connecting socket for: updatenotification
[2020-09-14 16:12:51.231] [LOG] Connecting socket for: calendar
[2020-09-14 16:12:51.233] [LOG] Starting node helper for: calendar
[2020-09-14 16:12:51.234] [LOG] Connecting socket for: MMM-Todoist
[2020-09-14 16:12:51.235] [LOG] Starting node helper for: MMM-Todoist
[2020-09-14 16:12:51.236] [LOG] Sockets connected & modules started …
[2020-09-14 16:12:51.387] [LOG] Launching application.
[2020-09-14 16:12:54.429] [LOG] Create new calendar fetcher for url: http://localhost:8080/modules/calendars/****.ics - Interval: 300000
[2020-09-14 16:12:54.442] [LOG] Create new calendar fetcher for url: http://localhost:8080/modules/*****.ics - Interval: 300000
[2020-09-14 16:12:54.514] [INFO] Checking git for module: MMM-AirQuality
[2020-09-14 16:12:54.556] [INFO] Checking git for module: MMM-Todoist
[2020-09-14 16:12:54.896] [INFO] Calendar-Fetcher: Broadcasting 7 events.
[2020-09-14 16:12:54.920] [INFO] Calendar-Fetcher: Broadcasting 1 events. -
RE: magicmirror is blocked after 30 sec
@sdetweil i did it. There is no error in console now. But clock still block after 30 sec
-
RE: magicmirror is blocked after 30 sec
modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "calendar", position: "top_left", config: { maximumNumberOfDays: 100, maximumEntries: 7, fade: "false", fadePoint: "0.80", calendars: [ { url: 'http://localhost:8080/modules/calendars/*****.ics', symbol: 'calendar' }, { url: 'http://localhost:8080/modules/calendars/*****.ics', symbol: 'birthday-cake' } ] } }, { module: "compliments", position: "lower_third" }, { module: "currentweather", position: "top_right", config: { location: "***", locationID: "3026534", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "****", //openweathermap.org API key showHumidity: "true", useKMPHwind: "true", roundTemp: "true", useBeaufort: "false" } }, { module: 'MMM-AirQuality', position: 'top_right', // you may choose any location config: { location: 'france/bourgogne/macon-paul-bert/', // the location to check the index for lang: "fr" } }, //{ // module: "weatherforecast", // position: "top_right", // header: "Weather Forecast", // config: { // location: "***", // locationID: "3026534", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city // appid: "****", //openweathermap.org API key // colored: "true", // fade: "false", // fadePoint: "0.75", // showRainAmount: "true", // roundTemp: "true" // } //}, { module: 'MMM-Todoist', position: 'top_left', // This can be any of the regions. Best results in left or right regions. config: { // See 'Configuration options' for more information. hideWhenEmpty: false, accessToken: '****', maximumEntries: 60, updateInterval: 10*60*1000, // Update every 10 minutes fade: false, // projects and/or labels is mandatory: projects: [ **** ], labels: [ "MagicMirror" ] // Tasks for any projects with these labels will be shown. } }, { module: 'MMM-Todoist', position: 'top_left', // This can be any of the regions. Best results in left or right regions. config: { // See 'Configuration options' for more information. hideWhenEmpty: false, accessToken: '***', maximumEntries: 60, updateInterval: 10*60*1000, // Update every 10 minutes fade: false, // projects and/or labels is mandatory: projects: [ **** ], labels: "Important" // Tasks for any projects with these labels will be shown. } }, ]};
-
RE: magicmirror is blocked after 30 sec
source from : http://localhost:8080/css/custom.css
@loader.js :205
stylesheet.onerror = function () {
Log.error(“error on loading styleshhet:”, fileName); -
RE: magicmirror is blocked after 30 sec
two errors displayed on console :
-
Refused to apply style from ‘http://localhost:8080/css/custom.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
-
Error on loadind stylesheet: css/custom.css
There is only one file in : css/main.css
-
-
RE: magicmirror is blocked after 30 sec
i have remove forecast_weather module from config.js .The problem still appears
-
RE: magicmirror is blocked after 30 sec
Thx,
I restarted the whole installation cleanly. The same problem appears.
here is the console log :main.js:478 Initializing MagicMirror.
/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95 Electron Security Warning (Insecure Resources) This renderer process loads resources using insecure
protocols.This exposes users of this app to unnecessary security risks.
Consider loading the following resources over HTTPS or FTPS.- http://localhost:8080/css/main.css
- http://localhost:8080/fonts/roboto.css
- http://localhost:8080/socket.io/socket.io.js
- http://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
- http://localhost:8080/js/defaults.js
- http://localhost:8080/config/config.js
- http://localhost:8080/vendor/vendor.js
- http://localhost:8080/modules/default/defaultmodules.js
- http://localhost:8080/js/logger.js
- http://localhost:8080/translations/translations.js
- http://localhost:8080/js/translator.js
- http://localhost:8080/js/class.js
- http://localhost:8080/js/module.js
- http://localhost:8080/js/loader.js
- http://localhost:8080/js/socketclient.js
- http://localhost:8080/js/main.js
- http://localhost:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2
- http://localhost:8080/translations/fr.json
- http://localhost:8080/translations/en.json
- http://localhost:8080/modules/default/alert//alert.js
- http://localhost:8080/modules/default/alert/notificationFx.js
- http://localhost:8080/modules/default/alert/notificationFx.css
- http://localhost:8080/vendor/css/font-awesome.css
- http://localhost:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/all.min.css
- http://localhost:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/v4-shims.min.css
For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
warnAboutInsecureResources @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95
/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
Policy set or a policy with “unsafe-eval” enabled. This exposes users of
this app to unnecessary security risks.For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
(anonymous) @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145(index):1 Refused to apply style from 'http://localhost:8080/css/custom.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.main.js:496 All modules started!
weatherforecast.js:274 GET https://api.openweathermap.org/data/2.5/forecast/daily?id=3026534&cnt=40&units=metric&lang=fr&APPID=cfc2a0386deb21a6a6cf85ca2ba89bde 401 (Unauthorized)updateWeather @ weatherforecast.js:274
(anonymous) @ weatherforecast.js:396
setTimeout (async)
scheduleUpdate @ weatherforecast.js:395
start @ weatherforecast.js:94
startModules @ loader.js:52
(anonymous) @ loader.js:38
stylesheet.onerror @ loader.js:207
error (async)
loadFile @ loader.js:204
loadNextModule @ loader.js:36
(anonymous) @ loader.js:29
(anonymous) @ loader.js:122
(anonymous) @ loader.js:158
load @ translator.js:189
loadTranslations @ module.js:330
(anonymous) @ loader.js:155
loadNextDependency @ module.js:296
(anonymous) @ module.js:293
loadFile @ loader.js:236
loadNextDependency @ module.js:291
loadDependencies @ module.js:300
loadStyles @ module.js:266
(anonymous) @ loader.js:153
loadNextDependency @ module.js:296
loadDependencies @ module.js:300
loadScripts @ module.js:275
bootstrapModule @ loader.js:151
afterLoad @ loader.js:121
loadModule @ loader.js:130
loadNextModule @ loader.js:27
(anonymous) @ loader.js:29
(anonymous) @ loader.js:122
(anonymous) @ loader.js:158
(anonymous) @ translator.js:186
xhr.onreadystatechange @ translator.js:22
XMLHttpRequest.send (async)
loadJSON @ translator.js:25
load @ translator.js:180
loadTranslations @ module.js:330
(anonymous) @ loader.js:155
loadNextDependency @ module.js:296
(anonymous) @ module.js:293
stylesheet.onload @ loader.js:201
load (async)
loadFile @ loader.js:199
loadFile @ loader.js:259
loadNextDependency @ module.js:291
loadDependencies @ module.js:300
loadStyles @ module.js:266
(anonymous) @ loader.js:153
loadNextDependency @ module.js:296
loadDependencies @ module.js:300
loadScripts @ module.js:275
bootstrapModule @ loader.js:151
afterLoad @ loader.js:121
(anonymous) @ loader.js:134
script.onload @ loader.js:181
load (async)
loadFile @ loader.js:179
loadModule @ loader.js:132
loadNextModule @ loader.js:27
(anonymous) @ loader.js:29
(anonymous) @ loader.js:122
(anonymous) @ loader.js:158
loadTranslations @ module.js:333
(anonymous) @ loader.js:155
loadNextDependency @ module.js:296
(anonymous) @ module.js:293
stylesheet.onload @ loader.js:201
load (async)
loadFile @ loader.js:199
loadFile @ loader.js:259
loadNextDependency @ module.js:291
(anonymous) @ module.js:293
loadFile @ loader.js:236
loadNextDependency @ module.js:291
loadDependencies @ module.js:300
loadStyles @ module.js:266
(anonymous) @ loader.js:153
loadNextDependency @ module.js:296
(anonymous) @ module.js:293
loadFile @ loader.js:236
loadNextDependency @ module.js:291
loadDependencies @ module.js:300
loadScripts @ module.js:275
bootstrapModule @ loader.js:151
afterLoad @ loader.js:121
(anonymous) @ loader.js:134
script.onload @ loader.js:181
load (async)
loadFile @ loader.js:179
loadModule @ loader.js:132
loadNextModule @ loader.js:27
(anonymous) @ loader.js:29
(anonymous) @ loader.js:122
(anonymous) @ loader.js:158
loadTranslations @ module.js:333
(anonymous) @ loader.js:155
loadNextDependency @ module.js:296
(anonymous) @ module.js:293
stylesheet.onload @ loader.js:201
load (async)
loadFile @ loader.js:199
loadFile @ loader.js:244
loadNextDependency @ module.js:291
loadDependencies @ module.js:300
loadStyles @ module.js:266
(anonymous) @ loader.js:153
loadNextDependency @ module.js:296
(anonymous) @ module.js:293
script.onload @ loader.js:181 -
RE: magicmirror is blocked after 30 sec
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘start’ ]
2 info using npm@6.14.6
3 info using node@v10.22.0
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle magicmirror@2.12.0~prestart: magicmirror@2.12.0
6 info lifecycle magicmirror@2.12.0~start: magicmirror@2.12.0
7 verbose lifecycle magicmirror@2.12.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle magicmirror@2.12.0~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/magicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ga$
9 verbose lifecycle magicmirror@2.12.0~start: CWD: /home/pi/magicMirror
10 silly lifecycle magicmirror@2.12.0~start: Args: [ ‘-c’,
10 silly lifecycle ‘DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js’ ]
11 silly lifecycle magicmirror@2.12.0~start: Returned: code: 1 signal: null
12 info lifecycle magicmirror@2.12.0~start: Failed to exec start script
13 verbose stack Error: magicmirror@2.12.0 start:DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:198:13)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:198:13)
13 verbose stack at maybeClose (internal/child_process.js:982:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid magicmirror@2.12.0
15 verbose cwd /home/pi/magicMirror
16 verbose Linux 5.4.51-v7+
17 verbose argv “/usr/bin/node” “/usr/bin/npm” “start”
18 verbose node v10.22.0
19 verbose npm v6.14.6
20 error code ELIFECYCLE
21 error errno 1
22 error magicmirror@2.12.0 start:DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
22 error Exit status 1
23 error Failed at the magicmirror@2.12.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ] -
magicmirror is blocked after 30 sec
magicmirror freezes after 30 sec.
the clock freezes and there is no more updating
log :/home/pi/.pm2/logs/mm-error.log last 15 lines:
0|mm | npm ERR! Failed at the magicmirror@2.12.0 start script.
0|mm | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
0|mm |
0|mm | npm ERR! A complete log of this run can be found in:
0|mm | npm ERR! /home/pi/.npm/_logs/2020-09-14T06_46_21_988Z-debug.log
0|mm | npm ERR! code ELIFECYCLE
0|mm | npm ERR! errno 1
0|mm | npm ERR! magicmirror@2.12.0 start:DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
0|mm | npm ERR! Exit status 1
0|mm | npm ERR!
0|mm | npm ERR! Failed at the magicmirror@2.12.0 start script.
0|mm | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
0|mm |
0|mm | npm ERR! A complete log of this run can be found in:
0|mm | npm ERR! /home/pi/.npm/_logs/2020-09-14T06_50_14_203Z-debug.log