Read the statement by Michael Teeuw here.
Blank mm after update
-
@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 .gitignore
Then I read somewhere there is a clone of this module that is more recent, so I tried that:
https://github.com/szech/mmm-weatherchart
Same 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.json
file, 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_helper
directory and itsindex.js
file.
When using the cloned module, you should runnpm install
in order to install the dependencies mentioned in it, right ?
No harm is done to thenode_helper
dir.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 install
in themmm-weatherchart
directory, 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 100
You 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: true
even if the module could potentially handle it.
If your mmm-weatherchart instal has this file present:
/home/pi/MagicMirror/modules/mmm-weatherchart/package.json
then you should run:
$ cd /home/pi/MagicMirror/modules/mmm-weatherchart/ $ npm install
If your mmm-weatherchart instal has this file
NOT
present:/home/pi/MagicMirror/modules/mmm-weatherchart/package.json
then you should
NOT
run 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 100
When it works:
$ cd /home/pi/MagicMirror/modules/ $ rm -rf mmm-weatherchart.saved
Good luck !!
PS @sdetweil : please comment if I am wrong or made mistakes somewhere & thanks for your input.