@ninjabreadman
Ya, agree with that pm2 is the easier way.
By the way, can I know when you using pm2 to start your mm and you ctrl+q to quit it, how long it takes to auto boot it up again?
For me, it likes 15 seconds to 30 seconds, and sometimes never turn on again…
Read the statement by Michael Teeuw here.
Posts
-
RE: npm start and black screen
-
RE: npm start and black screen
@dexterbeng
I found the problem issue https://forum.magicmirror.builders/topic/2209/error-listen-eaddrinuse-help-ploxSo i use pm2 stop mm, then i can use back npm start since no application is using port:8080.
But still, is there anyone can explain to me, why my pm2 start mm is take while to boot up my mm, even i ctrl+q, it will turn mm back very long time or never turn on again?
-
npm start and black screen
Here is the log:
Sockets connected & modules started ... Whoops! There was an uncaught exception... { Error: listen EADDRINUSE 0.0.0.0: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: '0.0.0.0', port: 8080 } MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues Launching application. Shutting down server...
How to fix this?
Note : Use “pm2 start mm” is able to run mm.
-
RE: MMM-Remote-Control add menu "Show video files" in the remote.html
@Jopyth Yeap! sorry for that I poor in js language…so I did it in an alternative way to read all the videos from the local server with a PHP page. Anyway thanks for your explanation for that post!
-
RE: MMM-Remote-Control add menu "Show video files" in the remote.html
@cruunnerr Will do that if anyone requests for it! I need to move on on my final year project first hehe!
-
RE: MMM-Remote-Control add menu "Show video files" in the remote.html
So, I wrote a PHP script to read all the surveillance recorded videos from a directory and able to play at the same time.
Here is the screenshot:
so happy to achieve my objective, the next step is designing this page! CSS work is on! :) -
RE: MMM-Remote-Control add menu "Show video files" in the remote.html
Already done for the display!
I’m working on the handler in the .js file now…
Stay tuned! -
MMM-Remote-Control add menu "Show video files" in the remote.html
In the remote site, if I want to add one menu is to read a directory and list video files from the directory, how do I implement in the MMM.Remote-Control.js & remote.html?
After clicking that “Show video files”, it will show a list of the video files from the directory path and able to play it.
This is the directory path.