MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Electron

    Scheduled Pinned Locked Moved Solved Troubleshooting
    13 Posts 4 Posters 3.4k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @kayakbabe
      last edited by

      @kayakbabe when developing a module, dont use pm2

      just
      npm start
      in the MagicMirror folder
      ctrl-c top stop.

      pm2 is for production

      use ssh from your PC, maybe winscp or bitvise ssh client that gives you ssh terminal and file manager over the pi files. then u can edit w notepad++ or vs ode or whatever u like

      if u need the dev window you can do it on your PC… never have to touch the pi itself.

      if u change the modulename.js, or css, or config.js settings, just reload the page, no restart required

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      kayakbabeK 1 Reply Last reply Reply Quote 1
      • S Offline
        sdetweil @kayakbabe
        last edited by sdetweil

        @kayakbabe also if you used my script to install, its
        pm2 restart/start/stop MagicMirror

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • plainbrokeP Offline
          plainbroke @sdetweil
          last edited by

          @sdetweil
          I was using ctrl - m to stop MM to see what was giving my black screen with a mouse pointer and the only thing I could find that seemed strange was a bunch of electron instances running.
          I was just wondering if that could be the cause of the black screen with the mouse pointer… I use pm2 for most every thing that has been explained on here in the past year or so. I use pm2 to restart mm when needed and it is setup to restart mm anytime I make changes to config.js and exit and save.

          Slow learner. But trying anyways.

          kayakbabeK 1 Reply Last reply Reply Quote 0
          • kayakbabeK Offline
            kayakbabe @plainbroke
            last edited by

            @plainbroke ctrl+m does not stop MagicMirror. It minimizes it so it isn’t showing full screen.

            m = minimize

            plainbrokeP 1 Reply Last reply Reply Quote 0
            • plainbrokeP Offline
              plainbroke @kayakbabe
              last edited by

              @kayakbabe
              I know that, and that is why I was using it that way.
              There is a method to my madness.
              I figured if I left it running (minimized) I could find what was causing my black screen with the mouse pointer on it. I guess it just opened up everyones pm2 usage information… I am still looking what is causing this to happen randomly. As in it may not happen for days and then it may happen a couple times a day.
              I guess I need to find a way to monitor when it freezes and have it auto restart mm.

              Slow learner. But trying anyways.

              kayakbabeK 1 Reply Last reply Reply Quote 0
              • kayakbabeK Offline
                kayakbabe @sdetweil
                last edited by kayakbabe

                @sdetweil If I didn’t need a breadboard for testing the button circuits I’m adding, it could be done the way you say. I’m not working on the appearance of my mirror, If I were then I’d do as you suggest. I’m working on adding hardware buttons and a new module to make them function the way I want.

                I find it easier to just remove the pi, take it to my desktop where I have a very wide monitor. And where I can play with wiring, breadboard, resisitors, buttons etc. I added the following to my config

                electronOptions: {
                		fullscreen: false,
                		width: 950,
                		height: 950
                	},
                

                so I can have mm running on one quarter of my screen, I have plenty of room for geany on the other and a terminal window, etc. then can just f5 or ctrl+r when I want to test.

                S 1 Reply Last reply Reply Quote 0
                • kayakbabeK Offline
                  kayakbabe @plainbroke
                  last edited by

                  @plainbroke did you look at your pm2 logs? Sam really helped me by explaining where to look. I’ll bet it’s a module.

                  plainbrokeP 1 Reply Last reply Reply Quote 0
                  • plainbrokeP Offline
                    plainbroke @kayakbabe
                    last edited by

                    @kayakbabe
                    I will look into that also when i am back where I can in a couple weeks.

                    Slow learner. But trying anyways.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @kayakbabe
                      last edited by

                      @kayakbabe yes requiring hardware makes it another challenge…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 1 / 2
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy