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

MMM-plex-recently-added error



  • Just getting started with MagicMirror and getting this error:

    [2020-07-01 10:37:37.853] [LOG]    Whoops! There was an uncaught exception...
    [2020-07-01 10:37:37.854] [ERROR]  TypeError: this.config.types.forEach is not a function
        at Class.update (/home/pi/MagicMirror/modules/MMM-plex-recently-added/node_helper.js:29:23)
        at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-plex-recently-added/node_helper.js:21:12)
        at Socket. (/home/pi/MagicMirror/js/node_helper.js:113:11)
        at Socket.emit (events.js:200:13)
        at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
        at processTicksAndRejections (internal/process/task_queues.js:82:9)
    [2020-07-01 10:37:37.883] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [2020-07-01 10:37:37.884] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    
    

    module config:

                    {
                            module: 'MMM-plex-recently-added',
                            position: 'lower_third',
                            config: {
                                            token: '[my token]',
                                            hostname: '[ip of my plex server on my lan]',
                                            port: 32400,
                                            types: 'movie',
                                            limit: 10,
                            }
                    },
    


  • Types requires an array.

    types: ['movie']



  • @v4r23 types must be entries in an array
    types: [“movies”],

    even if only one entry


Log in to reply