is there a workaround?
Read the statement by Michael Teeuw here.
Latest posts made by sultan.y
-
PIR sensor problem
I am trying to add a PIR sensor to the MM
i have wired it to a raspberry pi but having a problem executing the funciton control the lcd
getting an error, an idea
sudo chmod u+s /opt/vc/bin/tvservice && sudo chmod u+s /bin/chvt
chmod: cannot access ‘/opt/vc/bin/tvservice’: No such file or directory -
RE: MMM Google Photos error
apparently i just needed to be patient, it needed to propagate
now its working
howevver the clokc and some other apps have disappeared
is there a way to have it be in the background, so i can see my clock and calendar?
-
RE: MMM Google Photos error
i think i fixed the access but now i get a 503 error
22.12.2021 22:51.16.328] [LOG] /nodehelper/get translation with statuscode-200
[22.12.2021 22:51.16.335] [LOG] /nodehelper/get arabic with statuscode-200
[22.12.2021 22:51.16.338] [LOG] /nodehelper/result-An-Naml:77
[22.12.2021 22:51.16.357] [LOG] 200[object Object]
[22.12.2021 22:51.17.516] [ERROR] (node:4593) UnhandledPromiseRejectionWarning: Error: Request failed with status code 503
at createError (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/core/createError.js:16:15)
at settle (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/adapters/http.js:236:11)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
(Useelectron --trace-warnings ...
to show where the warning was created)
[22.12.2021 22:51.17.523] [ERROR] (node:4593) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
[22.12.2021 22:51.17.526] [ERROR] (node:4593) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. -
RE: MMM Google Photos error
1.12.2021 23:16.00.533] [ERROR] (node:2556) UnhandledPromiseRejectionWarning: Error: Request failed with status code 403
at createError (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/core/createError.js:16:15)
at settle (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/adapters/http.js:236:11)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
(Useelectron --trace-warnings ...
to show where the warning was created)
[21.12.2021 23:16.00.534] [ERROR] (node:2556) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
[21.12.2021 23:16.00.535] [ERROR] (node:2556) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.modules: [
{
module: “MMM-GooglePhotos”,
position: “fullscreen_below”,
config: {
albums: [“MagicMirror”], // Set your album name. like [“My wedding”, “family share”, “Travle to Paris”]
updateInterval: 1000 * 60, // minimum 10 seconds.
sort: “new”, // “old”, “random”
uploadAlbum: null, // Only album created bycreate_uploadable_album.js
.
condition: {
fromDate: null, // Or “2018-03”, RFC … format available
toDate: null, // Or “2019-12-25”,
minWidth: null, // Or 400
maxWidth: null, // Or 8000
minHeight: null, // Or 400
maxHeight: null, // Or 8000
minWHRatio: null,
maxWHRatio: null,
// WHRatio = Width/Height ratio ( ==1 : Squared Photo, < 1 : Portraited Photo, > 1 : Landscaped Photo)
},
showWidth: 1080, // These values will be used for quality of downloaded photos to show. real size to show in your MagicMirror region is recommended.
showHeight: 1920,
timeFormat: “YYYY/MM/DD HH:mm”, // Orrelative
can be used.
}
}, -
RE: MMM Google Photos error
EADDRINUSE got fixed the configurtion error remains
[21.12.2021 19:41.00.294] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: ReferenceError: MagicMirror is not defined
at Object. (/home/pi/MagicMirror/config/config.js:45:12)
at Module._compile (internal/modules/cjs/loader.js:1078:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10)
at Module.load (internal/modules/cjs/loader.js:935:32)
at Module._load (internal/modules/cjs/loader.js:776:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:959: -
MMM Google Photos error
having troulbe with getting the google photo running
i followed the github instruction but seem to be stuck with the black screen of death
npm start run displays
pi@raspberrypi:~/MagicMirror $ npm start run
magicmirror@2.17.1 start /home/pi/MagicMirror
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js “run”[21.12.2021 19:41.00.282] [LOG] Starting MagicMirror: v2.17.1
[21.12.2021 19:41.00.288] [LOG] Loading config …
[21.12.2021 19:41.00.294] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: ReferenceError: MagicMirror is not defined
at Object. (/home/pi/MagicMirror/config/config.js:45:12)
at Module._compile (internal/modules/cjs/loader.js:1078:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10)
at Module.load (internal/modules/cjs/loader.js:935:32)
at Module._load (internal/modules/cjs/loader.js:776:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (internal/modules/cjs/helpers.js:88:18)
at loadConfig (/home/pi/MagicMirror/js/app.js:69:14)
at App.start (/home/pi/MagicMirror/js/app.js:212:3)
[21.12.2021 19:41.00.296] [LOG] Loading module helpers …
[21.12.2021 19:41.00.313] [LOG] Initializing new module helper …
[21.12.2021 19:41.00.314] [LOG] Module helper loaded: updatenotification
[21.12.2021 19:41.00.316] [LOG] No helper found for module: helloworld.
[21.12.2021 19:41.00.317] [LOG] All module helpers loaded.
[21.12.2021 19:41.00.473] [LOG] Starting server on port 8080 …
[21.12.2021 19:41.00.492] [LOG] Server started …
[21.12.2021 19:41.00.494] [LOG] Connecting socket for: updatenotification
[21.12.2021 19:41.00.496] [LOG] Sockets connected & modules started …
[21.12.2021 19:41.00.714] [ERROR] Whoops! There was an uncaught exception…
[21.12.2021 19:41.00.721] [ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8080
at Server.setupListenHandle [as _listen2] (net.js:1318:16)
at listenInCluster (net.js:1366:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1503:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:69:8) {
code: ‘EADDRINUSE’,
errno: -98,
syscall: ‘listen’,
address: ‘127.0.0.1’,
port: 8080
}
[21.12.2021 19:41.00.729] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[21.12.2021 19:41.00.730] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[21.12.2021 19:41.00.770] [LOG] Launching application.
^C[21.12.2021 19:41.23.180] [LOG] Shutting down server…
[21.12.2021 19:41.23.185] [LOG] Stopping module helper: updatenotification -
RE: Module resulting black screen "electron"
excellent! Solved!!
In recent mm releases we have removed libraries that are discontinued ( aka deprecated).
many mm modules used these but didn’t document it. so they fail
to fix this you need to install the library in the module folder
if the module does NOT provide a file called package.json, then do
npm init -y
then regardless donpm install request
-
Module resulting black screen "electron"
New to Magic Mirror
have been trying to install the MMM Prayer Times module, but eery time all i see is a black screen “electron”
i start magic mirror using npm run start
when i comment out the module, everything works fine, not sure what im doing wrong, this is the error i get
pi@raspberrypi:~ $ cd MagicMirror/
pi@raspberrypi:~/MagicMirror $ npm run startmagicmirror@2.17.1 start /home/pi/MagicMirror
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[21.12.2021 16:14.55.709] [LOG] Starting MagicMirror: v2.17.1
[21.12.2021 16:14.55.720] [LOG] Loading config …
[21.12.2021 16:14.55.726] [LOG] Loading module helpers …
[21.12.2021 16:14.55.734] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘request’
Require stack:- /home/pi/MagicMirror/modules/MMM-MyPrayerTimes/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
[21.12.2021 16:14.55.735] [LOG] Loading module helpers …
[21.12.2021 16:14.55.738] [ERROR] App threw an error during load
[21.12.2021 16:14.55.741] [ERROR] Error: Cannot find module ‘request’
Require stack:- /home/pi/MagicMirror/modules/MMM-MyPrayerTimes/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (internal/modules/cjs/loader.js:732:27)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/home/pi/MagicMirror/modules/MMM-MyPrayerTimes/node_helper.js:10:17)
at Module._compile (internal/modules/cjs/loader.js:1078:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10)
[21.12.2021 16:14.55.743] [ERROR] Whoops! There was an uncaught exception…
[21.12.2021 16:14.55.751] [ERROR] Error: Cannot find module ‘request’
Require stack: - /home/pi/MagicMirror/modules/MMM-MyPrayerTimes/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (internal/modules/cjs/loader.js:732:27)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/home/pi/MagicMirror/modules/MMM-MyPrayerTimes/node_helper.js:10:17)
at Module._compile (internal/modules/cjs/loader.js:1078:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/pi/MagicMirror/modules/MMM-MyPrayerTimes/node_helper.js’,
‘/home/pi/MagicMirror/js/app.js’,
‘/home/pi/MagicMirror/js/electron.js’,
‘/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
undefined
]
}
[21.12.2021 16:14.55.755] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[21.12.2021 16:14.55.756] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[21.12.2021 16:14.56.003] [LOG] Launching application.
^C[21.12.2021 16:15.51.413] [LOG] Shutting down server…
[21.12.2021 16:15.51.418] [ERROR] Whoops! There was an uncaught exception…
[21.12.2021 16:15.51.423] [ERROR] TypeError: Cannot read property ‘close’ of undefined
at App.stop (/home/pi/MagicMirror/js/app.js:257:14)
at App. (/home/pi/MagicMirror/js/electron.js:139:7)
at App.emit (events.js:315:20)
[21.12.2021 16:15.51.426] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[21.12.2021 16:15.51.427] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues