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 4.3k 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.
    • G Offline
      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 Offline
        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.

        lavolp3L 1 Reply Last reply Reply Quote 0
        • lavolp3L Offline
          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.

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

          1 Reply Last reply Reply Quote 0
          • S Offline
            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 :)

            lavolp3L 1 Reply Last reply Reply Quote 0
            • lavolp3L Offline
              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

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

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

                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

                  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.

                  lavolp3L 1 Reply Last reply Reply Quote 0
                  • lavolp3L Offline
                    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?

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

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      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.

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

                        pi@raspberrypi:~/MagicMirror/modules/MMM-MovieInfo$ npm install --productive

                        npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
                        npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
                        npm notice created a lockfile as package-lock.json. You should commit this file.
                        added 384 packages from 448 contributors and audited 1138 packages in 799.653s
                        found 1 low severity vulnerability
                          run `npm audit fix` to fix them, or `npm audit` for details
                        

                        Node about 0.3%

                        {
                        			module: 'MMM-MovieInfo',
                        			position: 'top_right',
                        			config: {
                        					api_key: '50543fe5151a1e58768462815ce4d0f8',
                        					discover: 	{
                        						"primary_release_date.gte": "now",  //now
                        						"primary_release_date.lte": "month" //day, week, month, quarter or year
                        								}
                        					}
                        		},
                        

                        Well didn’t expect it to work but working ?!

                        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 Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy