• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

MMM-MovieInfo

Scheduled Pinned Locked Moved General Discussion
13 Posts 3 Posters 3.6k Views 3 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
    stuartiannaylor
    last edited by Feb 19, 2019, 1:12 PM

    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 Feb 19, 2019, 2:07 PM Reply Quote 0
    • G Offline
      ganget @stuartiannaylor
      last edited by Feb 19, 2019, 2:07 PM

      @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 Offline
        stuartiannaylor
        last edited by stuartiannaylor Feb 19, 2019, 2:44 PM Feb 19, 2019, 2:35 PM

        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.

        L 1 Reply Last reply Feb 19, 2019, 2:53 PM Reply Quote 0
        • L Offline
          lavolp3 Module Developer @stuartiannaylor
          last edited by Feb 19, 2019, 2:53 PM

          @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.

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          1 Reply Last reply Reply Quote 0
          • S Offline
            stuartiannaylor
            last edited by stuartiannaylor Feb 19, 2019, 3:00 PM Feb 19, 2019, 2:57 PM

            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 :)

            L 1 Reply Last reply Feb 19, 2019, 3:04 PM Reply Quote 0
            • L Offline
              lavolp3 Module Developer @stuartiannaylor
              last edited by Feb 19, 2019, 3:04 PM

              @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

              How to troubleshoot modules
              MMM-soccer v2, MMM-AVStock

              1 Reply Last reply Reply Quote 0
              • S Offline
                stuartiannaylor
                last edited by stuartiannaylor Feb 19, 2019, 3:07 PM Feb 19, 2019, 3:05 PM

                Maybe it Pi Zero then I will do it once more… :face_screaming_in_fear:

                About an hour to reinstall on the lowly pi0w though

                1 Reply Last reply Reply Quote 0
                • S Offline
                  stuartiannaylor
                  last edited by Feb 19, 2019, 3:53 PM

                  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.

                  L 1 Reply Last reply Feb 19, 2019, 4:22 PM Reply Quote 0
                  • L Offline
                    lavolp3 Module Developer @stuartiannaylor
                    last edited by Feb 19, 2019, 4:22 PM

                    @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?

                    How to troubleshoot modules
                    MMM-soccer v2, MMM-AVStock

                    S 1 Reply Last reply Feb 19, 2019, 4:27 PM Reply Quote 0
                    • S Offline
                      stuartiannaylor @lavolp3
                      last edited by stuartiannaylor Feb 19, 2019, 4:33 PM Feb 19, 2019, 4:27 PM

                      @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.

                      L 1 Reply Last reply Feb 22, 2019, 8:06 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        8/13
                        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