Read the statement by Michael Teeuw here.
updateDom() blocks MagicMirror
-
@sdetweil What about
JSON.stringify(this.response); -
@1blaunitrox that would work
but it will be the JSON text representation of the object
all fields and values
-
@sdetweil
First: Is there an other option?Second: I added the getData() function in getDom()
const wrapper = document.createElement("div"); this.getData(); if(this.response.lenght <= 0) { wrapper.innerHTML = "No Entries"; } else { wrapper.innerHTML = JSON.stringify(this.response); } return wrapper;Now the mirror show
UNDEFINEDagain -
-
@1blaunitrox this.getData() is not synchronous, so it will return long before the data is ready
don’t call from getDom()
-
see the doc
https://docs.magicmirror.builders/development/introduction.html#module-structure
https://docs.magicmirror.builders/development/core-module-file.html#subclassable-module-methods
notificationReceived in particular -
@sdetweil Do you remember my problem yesteray that my magic mirror doesn`t start? I started the program today in the morning. Without doing anythink since yesterday evening, the same error occurs.
The only think I change was that I renamed lenght to length. Than I deleted the module module and copyed the new one.
old post: https://forum.magicmirror.builders/topic/16233/error-while-starting-magic-mirror/29
-
@1blaunitrox I need to see the messages output by npm start
if you use pm2, then pm2 logs --lines=50
also maybe info from the developers window, ctrl-shift-i on the keyboard and select the console tab and scroll up to see any errors red text
-
@sdetweil
Here is the .pm2/logs/MagicMirror-error.log
https://haste.lyrotopia.net/equzexapal.js
Its always the same errorHere is the .pm2/logs/MagicMirror-out.log
https://haste.lyrotopia.net/mosubanoro.css -
-
-
@1blaunitrox ok, do this
pm2 stop all pm2 delete 0 pm2 savethe run my fixuppm2.sh script from here
https://github.com/sdetweil/MagicMirror_scripts -
@sdetweil I installed the software again. Now it works, but I think I will see this error soon again.
btw: I wrote an issues on git: https://github.com/MichMich/MagicMirror/issues/2793 -
@1blaunitrox i saw the git issue
can u do pm2 info MagicMirror
again -
@sdetweil I installed the software like in the docs show. So I haven`t installed pm2
-
@1blaunitrox said in updateDom() blocks MagicMirror:
So I haven`t installed pm2
the fixuppm2 installs it if needed
but u had it installed cause you used it to launch MM…
-
@1blaunitrox said in updateDom() blocks MagicMirror:
I installed the software like in the docs show.
my script fixes little odds and ends not covered by the doc
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


