Read the statement by Michael Teeuw here.
-
@strawberry-3.141
yes I did it following the steps in that wiki -
Shouldn’t
pm2 start mmbe executed in~and not in~/MagicMirror? The tutorial said to create mm.sh in~So please go back one folder with
cd ..or directly withcd ~and try again -
@yawns
this is what I get,
do you think it is a good idea to start the install routine once again from the beginning?pi@raspberrypi:~ $
in my modules folder there is no PM2 folder. Should there be one?
Thanks a lot for help
kurtpi@raspberrypi:~ $ npm start npm ERR! Linux 4.4.50-v7+ npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" npm ERR! node v6.10.0 npm ERR! npm v3.10.10 npm ERR! path /home/pi/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm 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! enoent npm ERR! Please include the following file with any support request: npm ERR! /home/pi/npm-debug.log pi@raspberrypi:~ $ pm2 start mm [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2 [PM2] PM2 Successfully daemonized [PM2][ERROR] script not found : /home/pi/mm script not found : /home/pi/mm ┌──────┬──────┬────────┬───┬─────┬────────┐ │ Name │ mode │ status │ ↺ │ cpu │ memory │ └──────┴──────┴────────┴───┴─────┴────────┘ Use `pm2 show ` to get more details about an app -
If you want to start the process with
npm startthen you have to do that inside~/MagicMirror
However if you want to use pm2 then I would advise following the instructions again: https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirrorpm2 seems to be working fine on your raspberry, so I would start here:
Make a MagicMirror start script. To use PM2 in combination with MagicMirror, we need to make a simple shell script. Preferable, we put this script outside the MagicMirror folder to make sure it won’t give us any issues if we want to upgrade the mirror.
cd ~ nano mm.shAdd the following lines:
cd ~/MagicMirror DISPLAY=:0 npm startSave and close, using the commands CTRL-O and CTRL-X. Now make sure the shell script is executable bij performing the following command:
chmod +x mm.shYou are now ready to the MagicMirror using this script using PM2.
-
@yawns
my first step was to make this start script following the instructions.
themm.shwith the scriptcd ~/MagicMirror DISPLAY=:0 npm startis now in my/home/pifolder.
When I try to start the mm bynpm startI get this (the mirror is not appearing):{ Error: listen EADDRINUSE :::8080 at Object.exports._errnoException (util.js:1026:11) at exports._exceptionWithHostPort (util.js:1049:20) at Server._listen2 (net.js:1253:14) at listen (net.js:1289:10) at net.js:1399:9 at _combinedTickCallback (internal/process/next_tick.js:77:11) at process._tickCallback (internal/process/next_tick.js:98:9) at Module.runMain (module.js:592:11) at run (bootstrap_node.js:402:7) at startup (bootstrap_node.js:157:9) code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen', address: '::', port: 8080 }Thank you
-
EADDRINUSE means, there is another process running and listening on port 8080
It looks like the magicmirror somehow is running already. -
@yawns
By now the PM2 does its work! Great!
When I put the pi away from electricity and then start the pi again, PM2 starts the mirror :slight_smile:
But when I make some changes inEdit modulesorEinstellungen, save them, the changes are not shown, also after restarting the mirror but I getError!also after restarting the mirror.
So by now some features work :slight_smile: some still need some time or a little push…
Thank you -
Hi @mochman !
Is there any chance to change the caption that it is shown of each module?
For example, I’ve got 2 clocks modules, so I can see what time is it in 2 different countries. But when I go to the Remote control I see 2 “Clocks” and don’t know which is the clock I’m hiding or showing until I press the boton.
Is it possible to change the caption in the control?Kind regards
-
Sorry for my long absence. I am currently in the last weeks of writing my master thesis. Therefore unfortunately not much will be happening until second or third week of May.
Big thanks to @strawberry-3-141 and @yawns to help everyone out so much. I finally made a release with the outstanding fixes:
[1.1.3] - 2017-04-23
Added
- Portuguese translation
- Indonesian translation
- Support for iOS Icon and Webapp
Changed
- Installation no longer needs a temporary file
Fixed
- Icon paths adapted to changes in Magic Mirror² 2.1.0
Hopefully I got everyone covered in my answers:
@PatrickGlatz Have you figured it out yet? I don’t think there is any special configuration needed, just need to find the right menu.
@kurt Thanks! Hopefully I will come around to improve the config interface at some point, as there are still some known bugs and problems, but I am glad it is already helping.
@AAPS You are right, I should probably add
npm installafter updating MM.@pepemujica What error do you get? Maybe it is something in your network settings?
-
@Jopyth Hi! Yes I could solve the part of remote connection, but still can’t find the way to change the name of moddules in the control, since I have for example 3 or 4 iFrames, all of them just says iFrame in the control, so I’m looking the way to customize them. Is it possible?
Kind regards
-
Hey @Jopyth, yes you are of course totally right. Took a closer look into it and of course it is jut a menu entry. Thanks for the hint.
-
@pepemujica Currently not possible. How would you identify them? Do they have different headers? Or by region/position?
-
Hi @Jopyth thank you for your efforts. A question, on mobile device a crazy bug is there. The navigation is not correct because the navigation buttons are not correct and partly dissappeared.
Does anybode have the same issue?
-
@Jopyth Actually I have no idea haha
I’ve added a link in the module control section where I can change proffiles with the proffile switcher module, so I thought may be something similar could be done -
Has anybode an idea why “no modules loaded” ?

-
@Jopyth maybe something like alias
{ module: "modulename", alias: "fancymodule", ... }then check if alias exists if not display normal module name
-
@strawberry-3.141 does the alias exist or it’s just an idea?
-
@pepemujica well you can put everything in there but alias isnt supported from anything yet, so we could claim it for this and the other configuration modules
-
The module is not working for me to any extent, when I whitelist the IPs for my school’s wifi (following the HowToWhitelistIP thread’s directions) in every way stated, I get the “this device is not allowed to access…” message. Then, when I allow all IPs access I get the “cannot get remote/html” message. Any help would be great! Thanks!
-
Hi! I’m trying to figure out how to hide/show modules with “REMOTE_ACTION” from “MMM-ModuleScheduler”.
First, here is the remote control “config”.
{ module: "MMM-Remote-Control", position: "top_left", config: { "moduleData":[ {"identifier":"module_55_MMM-TextClock"}, ], } },I know that the “identifier” for the “MMM-TextClock” is correct.
Then in the “MMM-ModuleScheduler” I have this:
{ module: "MMM-ModuleScheduler", config: { uselock: false, notification_schedule: [ {notification: "REMOTE_ACTION", schedule: "0 11 * * *", payload: {action: 'HIDE {"identifier":"module_55_MMM-TextClock"}'}}, ], global_schedule: [] }It’s suppose to hide the “MMM-TextClock” at 11 AM but it’s not hiding it.
I do get this in the log at the correct time:--- MMM-TextClock received a module notification: REMOTE_ACTION from sender: MMM-ModuleScheduler module.js:115 ---So the action get sent… But the “MMM-TextClock” still shows… What have I missed?
Or misunderstood? :)Thank you.
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