MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

MMM-MovieInfo



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

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



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



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


  • Module Developer

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



  • 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 🙂


  • Module Developer

    @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



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

    About an hour to reinstall on the lowly pi0w though



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


  • Module Developer

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



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


Log in to reply