Read the statement by Michael Teeuw here.
Black screen after adding modules.
-
@sdetweil thank you for taking the time to reply, I appreciate it.
I’m new to the forum too btw, so apologies if I’ve posted in the wrong place/generic problem (due to downvotes).
I will follow your instruction as soon as I’m home.
Thanks again :)
-
@sdetweil said in Black screen after adding modules.:
u will have to use force as the parm instead of apply
again, apologies for my ignorance but how would I do this? node has been updated and ran your update script buy still getting black screen.
-
@ljhig when u did phase 2 of update you were told to use ‘apply’ as parameter
use ‘force’ instead
because my script checks, if u already have the latest, then there is nothing to do.but I think u have the missing library problem.
if u use pm2 to launch mm, then do
pm2 logs --lines=100look for ‘module not found’
just in case, to minimize the MM screen do, alt-spacebar, then n
(just like on windows) -
@sdetweil I don’t believe I use PM2, I type:
cd MagicMirror/ npm run startThat works for the original config but not the adjusted one. Should I learn how to install/use pm2 to launch to find out what the missing library problem is?
-
@ljhig don’t need pm2… just scroll the window up where you do npm start
if u want pm2, then use my script to add it… see the end of the list of stuff on my scripts page
-
@sdetweil I will eventually use your script once I’ve got this working, I think it’s really useful and will fit my purpose brilliantly. Gift for my sister who is less tech savvy then me!
pi@raspberrypi:~/MagicMirror $ npm run start > magicmirror@2.17.1 start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [03.10.2021 17:34.32.637] [LOG] Starting MagicMirror: v2.17.1 [03.10.2021 17:34.32.650] [LOG] Loading config ... [03.10.2021 17:34.32.663] [LOG] Loading module helpers ... [03.10.2021 17:34.32.667] [LOG] No helper found for module: MMM-Carousel. [03.10.2021 17:34.32.669] [LOG] No helper found for module: alert. [03.10.2021 17:34.32.709] [LOG] Initializing new module helper ... [03.10.2021 17:34.32.712] [LOG] Module helper loaded: updatenotification [03.10.2021 17:34.32.715] [LOG] No helper found for module: clock. [03.10.2021 17:34.32.716] [LOG] No helper found for module: compliments. [03.10.2021 17:34.32.718] [LOG] No helper found for module: MagicMirror-QuoteCatalog. [03.10.2021 17:34.33.558] [LOG] Initializing new module helper ... [03.10.2021 17:34.33.559] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify [03.10.2021 17:34.33.561] [LOG] No helper found for module: weather. [03.10.2021 17:34.33.562] [LOG] All module helpers loaded. [03.10.2021 17:34.33.754] [LOG] Starting server on port 8080 ... [03.10.2021 17:34.33.798] [LOG] Server started ... [03.10.2021 17:34.33.801] [LOG] Connecting socket for: updatenotification [03.10.2021 17:34.33.803] [LOG] Connecting socket for: MMM-NowPlayingOnSpotify [03.10.2021 17:34.33.805] [LOG] Sockets connected & modules started ... [03.10.2021 17:34.34.230] [LOG] Launching application. [03.10.2021 17:34.37.412] [ERROR] (node:1813) [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) [03.10.2021 17:34.37.791] [LOG] Refreshed access token because it has expired. Expired at: 17:34:37 now is: 17:34:37 [03.10.2021 17:34.42.539] [LOG] Shutting down server... [03.10.2021 17:34.42.541] [LOG] Stopping module helper: updatenotification [03.10.2021 17:34.42.542] [LOG] Stopping module helper: MMM-NowPlayingOnSpotify -
@ljhig I don’t know. I would start by disabling one module at a time til u find the villian
add
disabled:true,after the
module:
line
for each module,
restart mm -
@sdetweil cheers, starting from scratch again and adding each module one by one, and running after every minor change. Should allow me to catch a problem before it becomes one.
-
@sdetweil I have used your magic mirror auto start script, how do I disable/enable it so I can access the magic mirror?
Now when I type CTRL+Q it automatically reopens after 5-10 seconds.
-
@ljhig pm2’s job is to keep mm running!
minimize, alt-spacebar, n
open terminal window
ctrl-alt-tpm2 stop all
checkout the other pm2 commands
stop, start, restart, logs, flush
pm2 --help
-
@sdetweil thank you! I know I’ve been an absolute pain but just know that I really appreciate experience users offering assistance to simple folk like myself. Have a brilliant day.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login