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

MMM-plex-recently-added



  • Hi, just started trying to set up magicmirror and am having problem with MMM-plex-recently-added module, when running get error about plex-api module, but cant any information about this module .
    Thank you for any help

    [08:43:43.559] [LOG]    Starting MagicMirror: v2.10.1
    [08:43:43.562] [LOG]    Loading config ...
    [08:43:43.564] [LOG]    Loading module helpers ...
    [08:43:43.565] [LOG]    No helper found for module: alert.
    [08:43:43.592] [LOG]    Initializing new module helper ...
    [08:43:43.592] [LOG]    Module helper loaded: updatenotification
    [08:43:43.594] [LOG]    No helper found for module: clock.
    [08:43:43.839] [LOG]    Initializing new module helper ...
    [08:43:43.840] [LOG]    Module helper loaded: calendar
    [08:43:43.841] [LOG]    No helper found for module: compliments.
    [08:43:43.842] [LOG]    No helper found for module: currentweather.
    [08:43:43.842] [LOG]    No helper found for module: weatherforecast.
    [08:43:43.844] [LOG]    Initializing new module helper ...
    [08:43:43.844] [LOG]    Module helper loaded: mmm-hue-lights
    [08:43:43.846] [ERROR]  WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'plex-api'
    [08:43:43.846] [LOG]    Loading module helpers ...
    [08:43:43.846] [LOG]    No helper found for module: alert.
    [08:43:43.847] [LOG]    Initializing new module helper ...
    [08:43:43.847] [LOG]    Module helper loaded: updatenotification
    [08:43:43.847] [LOG]    No helper found for module: clock.
    [08:43:43.847] [LOG]    Initializing new module helper ...
    [08:43:43.847] [LOG]    Module helper loaded: calendar
    [08:43:43.848] [LOG]    No helper found for module: compliments.
    [08:43:43.848] [LOG]    No helper found for module: currentweather.
    [08:43:43.848] [LOG]    No helper found for module: weatherforecast.
    [08:43:43.848] [LOG]    Initializing new module helper ...
    [08:43:43.848] [LOG]    Module helper loaded: mmm-hue-lights
    [08:43:43.849] [ERROR]  App threw an error during load
    [08:43:43.849] [ERROR]  Error: Cannot find module 'plex-api'
        at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
        at Function.Module._resolveFilename (/home/john/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
        at Function.Module._resolveFilename (/home/john/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Function.Module._load (internal/modules/cjs/loader.js:528:25)
        at Module.require (internal/modules/cjs/loader.js:658:17)
        at require (internal/modules/cjs/helpers.js:20:18)
        at Object. (/home/john/MagicMirror/modules/MMM-plex-recently-added/plex.js:1:170)
        at Object. (/home/john/MagicMirror/modules/MMM-plex-recently-added/plex.js:45:3)
        at Module._compile (internal/modules/cjs/loader.js:711:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
    [08:43:43.850] [LOG]    Whoops! There was an uncaught exception...
    [08:43:43.850] [ERROR]  { Error: Cannot find module 'plex-api'
        at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
        at Function.Module._resolveFilename (/home/john/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
        at Function.Module._resolveFilename (/home/john/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Function.Module._load (internal/modules/cjs/loader.js:528:25)
        at Module.require (internal/modules/cjs/loader.js:658:17)
        at require (internal/modules/cjs/helpers.js:20:18)
        at Object. (/home/john/MagicMirror/modules/MMM-plex-recently-added/plex.js:1:170)
        at Object. (/home/john/MagicMirror/modules/MMM-plex-recently-added/plex.js:45:3)
        at Module._compile (internal/modules/cjs/loader.js:711:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) code: 'MODULE_NOT_FOUND' }
    [08:43:43.854] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [08:43:43.855] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    [08:43:43.947] [LOG]    Launching application.
    ^C[08:43:59.685] [LOG]    Shutting down server...
    [08:43:59.688] [LOG]    Stopping module helper: updatenotification
    [08:43:59.689] [LOG]    Stopping module helper: calendar
    [08:43:59.690] [LOG]    Stopping module helper: mmm-hue-lights
    [08:43:59.690] [LOG]    Stopping module helper: updatenotification
    [08:43:59.691] [LOG]    Stopping module helper: calendar
    [08:43:59.691] [LOG]    Stopping module helper: mmm-hue-lights
    


  • @JohnBachini said in MMM-plex-recently-added:

    Cannot find module ‘plex-api’

    there is a package.json file for this module, which lists the plex-api as a dependency
    according to the instructions

    Installation
    Clone this repo
    run npm install in the cloned folder
    

    you need to do

    cd ~/MagicMirror/modules/MMM-plex-recently-added
    npm install
    

  • Project Sponsor

    How did u find the token?

    Trying to add this module but can’t seem to find a token anywhere. Looked at the Plex Guide for finding the token but didn’t help me at all…



  • @tomyboy96 the readme says

    Get your plex token (https://support.plex.tv/hc/en-us/articles/204059436-Finding-your-account-token-X-Plex-Token)
    

Log in to reply