MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. roramirez
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    R
    Offline
    • Profile
    • Following 0
    • Followers 5
    • Topics 5
    • Posts 194
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Test suite for MagicMirror²

      @qistoph Sound good and I like it. Now we can set by electronOptions in configuration file, same logic as you say.

      The point to resolved is how can tell to MagicMirror read a specific file of configuration. Now is set in hardcoded. With than can be create multiples instances of configuration files into tests suite (tests directory) and run test to these. Added this task in Trello.

      posted in Upcoming Features
      R
      roramirez
    • RE: Test suite for MagicMirror²

      Update and news:

      Thanks to @qistoph we have 2 improvement

      • Now every commit introduced previous is checked by tests suite in Travis.
      • Added a new test case https://github.com/MichMich/MagicMirror/pull/648/files

      Also, @qistoph and I suggest have two side for test.

      • The backend application and node_helpers
      • The frontend application running in electron, running client side javascript.

      For this last is possible use Spectron … but… is needed will set nodeIntegration to true. One idea is check a enviroment variable and if present set this variable to true.

      For other way, work with serveronly and get test from client side from there.

      If some have comments and ideas from this is welcome.

      PS: I have a sample of use spectron https://github.com/roramirez/MagicMirror/commit/c99581c15b4cb008b2800f40ecbaf9c9862c7ceb

      posted in Upcoming Features
      R
      roramirez
    • RE: Test suite for MagicMirror²

      @morozgrafix Thanks!, Is already merged :)

      posted in Upcoming Features
      R
      roramirez
    • RE: Problems restarting MagicMirror (Port 8080 in use ...)

      @ostfilinchen by npm

      sudo npm install -g pm2@2.1.5
      

      First remove previous version installed
      https://docs.npmjs.com/cli/uninstall

      posted in Troubleshooting
      R
      roramirez
    • RE: Problems restarting MagicMirror (Port 8080 in use ...)

      @ostfilinchen So stranger. What is for you memory version?

      Note: The last stable release of pm2 is 2.2.1.

      I recomend use the last version stable. In my case, the 2.1.5, work fine the restart action.

      posted in Troubleshooting
      R
      roramirez
    • custom.css

      Hi, this is simple. I found in custom.css the comment

      Changes to this files will be ignored by GIT.
      

      Is already added in gitignore file. if I modified this appear in your changes to stage on git. Well, is really not ignore. Suggestions?

      posted in Bug Hunt
      R
      roramirez
    • RE: Problems restarting MagicMirror (Port 8080 in use ...)

      @ostfilinchen What pm2 version are using?. There are other process to start control of MagicMirror?

      Please, send some log lines of pm2 and what show you
      pm2 status

      posted in Troubleshooting
      R
      roramirez
    • RE: Problems restarting MagicMirror (Port 8080 in use ...)

      @ostfilinchen That version don’t have the feature for use pm2 for process control by installer script. What is your problem in 2.1.0?

      posted in Troubleshooting
      R
      roramirez
    • RE: Problems restarting MagicMirror (Port 8080 in use ...)

      @binderth said in Problems restarting MagicMirror (Port 8080 in use ...):

      Do I need pm2?

      Is optional. If you installed by script and choice. After that you can configurate mannually.

      posted in Troubleshooting
      R
      roramirez
    • RE: Problems restarting MagicMirror (Port 8080 in use ...)

      Ups, there a bug for pm2 config. I pushed a fix
      https://github.com/MichMich/MagicMirror/pull/640

      The restart is work for me. Are you try stop/start?

      pi@raspberrypi:~/MagicMirror $ pm2 status MagicMirror
      ┌─────────────┬────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────────┐
      │ App name    │ id │ mode │ pid  │ status │ restart │ uptime │ cpu │ mem      │ watching │
      ├─────────────┼────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────────┤
      │ MagicMirror │ 0  │ fork │ 7689 │ online │ 1       │ 3h     │ 0%  │ 2.4 MB   │  enabled │
      └─────────────┴────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────────┘
       Use `pm2 show ` to get more details about an app
      pi@raspberrypi:~/MagicMirror $ pm2 restart MagicMirror
      Restarts are now immutable, to update environment or conf use --update-env
      [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
      [PM2] [MagicMirror](0) ✓
      ┌─────────────┬────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────────┐
      │ App name    │ id │ mode │ pid  │ status │ restart │ uptime │ cpu │ mem      │ watching │
      ├─────────────┼────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────────┤
      │ MagicMirror │ 0  │ fork │ 6447 │ online │ 2       │ 0s     │ 7%  │ 2.3 MB   │  enabled │
      └─────────────┴────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────────┘
       Use `pm2 show ` to get more details about an app
      
      

      By the way, there a interesting notice in restart process by pm2

      Restarts are now immutable, to update environment or conf use --update-env
      

      Here I’m using 2.1.5 version

      pi@raspberrypi:~/MagicMirror $ pm2 -version
      2.1.5
      
      posted in Troubleshooting
      R
      roramirez
    • 1 / 1