Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-MovieInfo

    General Discussion
    3
    13
    1491
    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
      stuartiannaylor last edited by

      Run command npm install --productive in ~/MagicMirror/modules/MMM-MovieInfo directory
      

      What does that install!? Seems bigger than MM itself?

      G 1 Reply Last reply Reply Quote 0
      • G
        ganget @stuartiannaylor last edited by

        @stuartiannaylor I can only find the command

        npm install --production
        

        in the install documentation of npm. The next quote from there website will explain what it does.

        “With the --production flag (or when the NODE_ENV environment variable is set to production), npm will not install modules listed in devDependencies.”

        Hope this will answer your question.

        1 Reply Last reply Reply Quote 0
        • S
          stuartiannaylor last edited by stuartiannaylor

          Dunno 🙂

          Installation
          Clone this repo into ~/MagicMirror/modules directory.
          
          Get a free api_key here
          
          Configure your ~/MagicMirror/config/config.js:
          
          {
              module: 'MMM-MovieInfo',
              position: 'top_right',
              config: {
                  ...
              }
          }
          Run command npm install --productive in ~/MagicMirror/modules/MMM-MovieInfo directory
          

          Followed the instructions and on reboot NPM was taking up so much resources couldn’t connect the client and the mmm-movie folder was littered with js folders.

          Even after deleting that folder and removing from config.js my MM became a Norwegian Blue and positively deceased.

          --production   --productive
          

          Guess it was as now to reinstall.

          lavolp3 1 Reply Last reply Reply Quote 0
          • lavolp3
            lavolp3 Module Developer @stuartiannaylor last edited by

            @stuartiannaylor Good catch! I assume as well it should be npm install --production but I’m not sure if that’s the cause for your deceasing MM. Deletion and new install of the module should do it. After all, all npm dependencies are installed in the node_modules folder below the module folder.

            1 Reply Last reply Reply Quote 0
            • S
              stuartiannaylor last edited by stuartiannaylor

              The module folder was full of folders after that and Node was just choking the CPU @ 97% with PM2 trying to restart.

              Someone else give it a go as I have done it once already 🙂

              lavolp3 1 Reply Last reply Reply Quote 0
              • lavolp3
                lavolp3 Module Developer @stuartiannaylor last edited by

                @stuartiannaylor I already had it installed, couldn’t see a problem.
                Tried again with --productive and --production.

                Can’t see a performance problem from here…

                Folder size
                with --productive 60mb
                with --production 11mb

                1 Reply Last reply Reply Quote 0
                • S
                  stuartiannaylor last edited by stuartiannaylor

                  Maybe it Pi Zero then I will do it once more… 😱

                  About an hour to reinstall on the lowly pi0w though

                  1 Reply Last reply Reply Quote 0
                  • S
                    stuartiannaylor last edited by

                    Decided not to as have a hunch on what is happening as saw it download electron last time.
                    It prob bypasses the server-only and guess launched electron on a Zero I will just leave it for someone else as it takes just too long to install on the Zero and will try it another time when I have the time to kill and install.

                    lavolp3 1 Reply Last reply Reply Quote 0
                    • lavolp3
                      lavolp3 Module Developer @stuartiannaylor last edited by

                      @stuartiannaylor Sorry for the question but you are in the MMM-MovieInfo folder when doing the install and not in the MagicMirror folder, aren’t you?

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        stuartiannaylor @lavolp3 last edited by stuartiannaylor

                        @lavolp3 Yeah hence why I was so surprised at what it fetched. It did look like the whole install again but in the mmm-movie module directory.
                        Actually it wasn’t to be honest as it only took 10 - 15 minutes whilst mm takes approx 35 - 40 on the zero.

                        I will give it a go but just not yet as just want to see if I can find ‘my’ perfect set of modules for what I would call ‘my’ complete mirror.
                        I was almost there and finishing things off and did my usual of romping ahead without saving copies of config so starting from scratch.
                        I will give it a go tomorrow as I am expecting on a zero if you do a --productive first that is what kills things.

                        Also I think I have hit the worst thing about the zero and not running electron as I will not have any console logs?
                        I think I can get them with the selenium webdriver for chromium but haven’t been back since I was playing with it.
                        Or at least I can get some form of log browser side as at the moment I have none but then again could just do it with a command line input I guess.

                        lavolp3 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy