Read the statement by Michael Teeuw here.
Blank mm after update
-
@kvicksson the rules are text needs quotes (’ or " matching)
numbers and true/false should NOT have quotes… as they become strings and not numeric or logical valuesif variable == true will fail with quoted values…
-
@lavolp3 said in Blank mm after update:
well with the config:check he would not have found the error, would he?
In this case perhaps not, but it cannot hurt to run it in order to exclude error(s) before and after this part of the config.
Normally a'true'versustruewould not cause a black screen, but I might be wrong.
And a trouble shooting guide would have to start with theconfig:checkIMHO. -
@evroom said in Blank mm after update:
Normally a ‘true’ versus true would not cause a black screen
u don’t know how the module code might fail…
which is what causes the blackscreen to begin with -
@sdetweil said in Blank mm after update:
which is what causes the blackscreen to begin with
Tried the module myself.
https://github.com/paphko/mmm-weatherchartpi@raspberrypi:~/MagicMirror $ pm2 logs --lines 100 0|mm | Starting MagicMirror ... 0|mm | 0|mm | > magicmirror@2.8.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | 0|mm | Starting MagicMirror: v2.8.0 0|mm | Loading config ... 0|mm | Loading module helpers ... 0|mm | No helper found for module: alert. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: updatenotification 0|mm | Loading module helpers ... 0|mm | No helper found for module: alert. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: updatenotification 0|mm | Whoops! There was an uncaught exception... 0|mm | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|mm | Launching application.Indeed a black screen.
Now how to help the girl from Stråvalla ? -
@evroom said in Blank mm after update:
0|mm | No helper found for module: alert.
0|mm | Initializing new module helper …
0|mm | Module helper loaded: updatenotification
0|mm | Loading module helpers …
0|mm | No helper found for module: alert.
0|mm | Initializing new module helper …
0|mm | Module helper loaded: updatenotification
0|mm | Whoops! There was an uncaught exception…seems odd that there would be two invocations of these modules…
but as a test, in MagicMirror/config/config.js add
disabled: true,to both those modules, and restart mm and see what happens
-
missing a required node package ‘del’
no package.json to inform the user
-
warning, warning… copy and save
MagicMirror/modules/node_modules/node_helper (folder, which contains index.js)
then
cd ~/MagicMirror/modules/mmm-weatherchart npm install delcheck for a missing
MagicMirror/modules/node_modules/node_helper folder
and if so, copy it backi opened an issue with mmm-weatherchart
-
@sdetweil said in Blank mm after update:
seems odd that there would be two invocations of these modules…
I have only one mmm-weatherchart module present.
When disabled everything is fine.
However, I forgot to remove the single quotes, as I just copy/pasted the config from the thread.
Corrected it, but now I get even stronger things.0|mm | WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'del'I do not have any string with ‘del’ in my config :worried_face:
-
@evroom see my prior most about the missing module
-
@sdetweil said in Blank mm after update:
see my prior most about the missing module
I was typing while you answered.
Will have a look at it and try it out. -
The module is running now, but I get this error:
0|mm | Downloading weather map with signal: FETCH_MAP From URL: www.yr.no/place/Germany/Bavaria/Nuremberg/meteogram.png 0|mm | Error: ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/mmm-weatherchart/cache/map-1567097174409.png'pi@raspberrypi:~/MagicMirror/modules/mmm-weatherchart $ ll /home/pi/MagicMirror/modules/mmm-weatherchart/cache total 12 4 drwxr-xr-x 2 pi pi 4096 Aug 29 18:49 . 4 drwxr-xr-x 4 pi pi 4096 Aug 29 18:44 .. 4 -rw-r--r-- 1 pi pi 6 Aug 29 18:44 .gitignoreThen I read somewhere there is a clone of this module that is more recent, so I tried that:
https://github.com/szech/mmm-weatherchartSame result: module runs but no file in the cache dir.
When opening the URL in the browser, it does show the picture that I do not see on my screen.Oh boy/girl, thought it was a simple syntax thingy in config.js …
-
the module doesn’t work, but doesn’t kill MagicMirror anymore…
-
@sdetweil said in Blank mm after update:
the module doesn’t work, but doesn’t kill MagicMirror anymore…
Correct.
I have a few questions.
In the original module there is no
package.jsonfile, where in the cloned one there is.
So, when using the original module, you should NOT usenpm install, right ?
First of all it will no do anything useful, but it WILL delete your/home/pi/MagicMirror/modules/node_modules/node_helperdirectory and itsindex.jsfile.
When using the cloned module, you should runnpm installin order to install the dependencies mentioned in it, right ?
No harm is done to thenode_helperdir.Or is it all BS I am telling here (and made the wrong observations) ??
-
@evroom i cloned and got no package.json
i cloned this
https://github.com/paphko/mmm-weatherchart -
@evroom yes, to all your observations…
-
When I use
$ git clone https://github.com/szech/mmm-weatherchart.git
then it works.
The README.md from szech point to papkto.
When corrected and doingnpm installin themmm-weatherchartdirectory, it works -
@evroom yes, that module has it…
-
@sdetweil Thanks! This worked for me as it doesn’t kill it anymore. Hope for a quick fix. Can I follow the process somewhere?
-
Hi @kvicksson ,
To me it seems there are 3 problems here.
You could have a look what the pm2 log says:$ pm2 logs --lines 100You will either have:
Error: Cannot find module 'del'or:
Error: ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/mmm-weatherchart/cache/map-1567097174409.or something completely different.
The 3 problems and potential solutions:
You’re config.js entries:
updateInterval: '3600000', hideBorder: 'true'should be:
updateInterval: 3600000, hideBorder: trueeven if the module could potentially handle it.
If your mmm-weatherchart instal has this file present:
/home/pi/MagicMirror/modules/mmm-weatherchart/package.jsonthen you should run:
$ cd /home/pi/MagicMirror/modules/mmm-weatherchart/ $ npm installIf your mmm-weatherchart instal has this file
NOTpresent:/home/pi/MagicMirror/modules/mmm-weatherchart/package.jsonthen you should
NOTrun npm instal, has it will cause havoc to you MagicMirror install.
I would do this in this situation:$ cd /home/pi/MagicMirror/modules/ $ mv mmm-weatherchart mmm-weatherchart.saved $ git clone https://github.com/szech/mmm-weatherchart.git $ cd /home/pi/MagicMirror/modules/mmm-weatherchart $ npm install $ pm2 restart pm2 $ pm2 logs --lines 100When it works:
$ cd /home/pi/MagicMirror/modules/ $ rm -rf mmm-weatherchart.savedGood luck !!
PS @sdetweil : please comment if I am wrong or made mistakes somewhere & thanks for your input.
-
@kvicksson said in Blank mm after update:
Can I follow the process somewhere?
this is all volunteer… you could post an issue to the module owners github repo… maybe he or someone else will respond… I am like you, just another user…
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