Read the statement by Michael Teeuw here.
Add symboly/icon in a modul
-
@dominic can you look to see if there are errors in the console? Two places you can look: Errors from node_helper.js will be output to the pm2 logs. Type
pm2 logs mm
to monitor this. The second place to look for errors is in Electron’s console. Start MagicMirror in debug mode withnpm start dev
and you’ll get the screen divided into to halves. On the right side you’ll see a white panel. Click on “CONSOLE” and if there are any errors there they will be in red. -
@j.e.f.f said in Add symboly/icon in a modul:
with npm start dv i get this info, i dont get es divided screen in to halves.
pi@raspberrypi:~ $ npm start dev
npm ERR! Linux 4.9.41-v7+
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start” “dev”
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! path /home/pi/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall opennpm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoentnpm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.logand with pm2 logs mm this one
pi@raspberrypi:~ $ pm2 logs mm
[TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)ach with the other code
mqttDiv.innerHTML = "< span class='fa fa-calendar'>< /span>" + this.mqttVal.toString().concat(this.config.postText);
i get a symbol, only with the var version, it does not work.
-
@dominic said in Add symboly/icon in a modul:
pi@raspberrypi:~ $ npm start dev
You have to cd in the MagicMirror directory first, then run
npm start
ornpm start dev
-
@Mykle1 Ah Thanks :D, now i have the console, but there is no error.