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 Entertainment
    movietheatre
    27 Posts 11 Posters 21.4k Views 11 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.
    • T Offline
      tyho @strawberry 3.141
      last edited by

      @strawberry-3.141 This is awesome! i’ll install when i am home.

      1 Reply Last reply Reply Quote 1
      • B Offline
        balthaz
        last edited by

        Hello,

        Can you had language selection in node_helper.js or config.js

        url: ‘https://api.themoviedb.org/3/discover/movie?primary_release_date.gte=’ + start + ‘&primary_release_date.lte=’ + end + ‘&api_key=’ + this.config.api_key + ‘&language=fr-FR’

        Perfect work, thank you

        1 Reply Last reply Reply Quote 0
        • strawberry 3.141S Offline
          strawberry 3.141 Project Sponsor Module Developer
          last edited by strawberry 3.141

          sorry forgot about your post

          the problem is that the fields which are not provided in the selected language don’t have anymore a fallback to english (like in previous api versions) and therefore will be empty, that’s why I chose to take allways english, so all data is provided.

          But I can add a config option, so everyone can decide for himself

          Please create a github issue if you need help, so I can keep track

          B 1 Reply Last reply Reply Quote 0
          • B Offline
            balthaz @strawberry 3.141
            last edited by

            @strawberry-3.141 Thanks

            1 Reply Last reply Reply Quote 0
            • strawberry 3.141S Offline
              strawberry 3.141 Project Sponsor Module Developer
              last edited by

              Changelog

              new config options:
              * hide genre
              * hide rating
              * hide plot
              * use language from config instead of default english, this can have missing data from api

              Please create a github issue if you need help, so I can keep track

              1 Reply Last reply Reply Quote 0
              • B Offline
                balthaz
                last edited by

                You are the best

                1 Reply Last reply Reply Quote 0
                • strawberry 3.141S Offline
                  strawberry 3.141 Project Sponsor Module Developer
                  last edited by

                  Changelog

                  • Date manipulation fixed with new dependency

                  To update do git pull and npm install

                  [card:fewieden/MMM-MovieInfo]

                  Please create a github issue if you need help, so I can keep track

                  1 Reply Last reply Reply Quote 1
                  • N Offline
                    number1dan
                    last edited by

                    nice module. I have this starting hidden and then voice command it to show. I’ve also changed the start and end dates for it to show stuff in cinema now and removed the greyscale from the poster. Good job making this module

                    S 1 Reply Last reply Reply Quote 1
                    • S Offline
                      shashank @number1dan
                      last edited by

                      @number1dan Hi, Module working fine, how to get Indian Movies info

                      strawberry 3.141S 1 Reply Last reply Reply Quote 0
                      • strawberry 3.141S Offline
                        strawberry 3.141 Project Sponsor Module Developer @shashank
                        last edited by

                        @shashank as far as i can see this is not supported with this provider to choose a country. i guess you need a different api provider

                        Please create a github issue if you need help, so I can keep track

                        1 Reply Last reply Reply Quote 0
                        • strawberry 3.141S Offline
                          strawberry 3.141 Project Sponsor Module Developer
                          last edited by

                          There is a new version which has a lot of new possibilities to discover movies

                          Thanks to @dr4ke616 who made this happen

                          [card:fewieden/MMM-MovieInfo]

                          Please create a github issue if you need help, so I can keep track

                          1 Reply Last reply Reply Quote 1
                          • S Offline
                            SilentJbob1680
                            last edited by SilentJbob1680

                            Hi, I just recently discovered MM2 & have started on putting it together. This is a fresh install of MM2 & the MovieInfo module however the module is not getting the images.
                            This is my config.js

                            {
                                module: 'MMM-MovieInfo',
                                position: 'bottom_left',
                                config: {
                            		api_key: ""
                                }
                            },
                            

                            The module shows everything but the image or Poster art. Inspecting the page in Google Chrome results in this appearing:

                            GET https://image.tmdb.org/t/p/w185_and_h278_bestv2/undefined 404 ()
                            

                            Further examination of the movieinfo.js file shows

                            const poster = document.createElement('img');
                                        poster.classList.add('poster');
                                        poster.src = `https://image.tmdb.org/t/p/w185_and_h278_bestv2/${movie.posterPath}`;
                                        wrapper.appendChild(poster);
                            

                            here’s a SS via vnc:
                            0_1489047572649_f4b39b46cf100dc381bae517ffa819b0.png
                            How can I fix this issue? I know nothing of javascript or programming unfortunately so baby steps in explaining a fix please :)

                            yawnsY 2 Replies Last reply Reply Quote 1
                            • yawnsY Offline
                              yawns Moderator @SilentJbob1680
                              last edited by

                              @SilentJbob1680
                              For some reason they changed the variable containing the path to the image from posterPath to poster_path

                              You could change this

                              const poster = document.createElement('img');
                                          poster.classList.add('poster');
                                          poster.src = `https://image.tmdb.org/t/p/w185_and_h278_bestv2/${movie.posterPath}`;
                                          wrapper.appendChild(poster);
                              

                              to this

                              const poster = document.createElement('img');
                                          poster.classList.add('poster');
                                          poster.src = `https://image.tmdb.org/t/p/w185_and_h278_bestv2/${movie.poster_path}`;
                                          wrapper.appendChild(poster);
                              

                              for an immediate fix, or you could wait for strawberry to fix it on github and provide a new version. If you fix it on your own you will need to revert the changes before you can update once strawberry provided the update.

                              1 Reply Last reply Reply Quote 1
                              • strawberry 3.141S Offline
                                strawberry 3.141 Project Sponsor Module Developer
                                last edited by

                                should be fixed now. thanks for reporting

                                Please create a github issue if you need help, so I can keep track

                                1 Reply Last reply Reply Quote 1
                                • yawnsY Offline
                                  yawns Moderator @SilentJbob1680
                                  last edited by

                                  @SilentJbob1680
                                  So, please open a terminal on your raspberry, change into the ~/MagicMirror/modules/MMM-MovieInfo folder and do git pull to retrieve the update

                                  1 Reply Last reply Reply Quote 1
                                  • JacobJ Offline
                                    Jacob
                                    last edited by

                                    Hello.

                                    I seem to be having issues in setting up the correct config.js. What am I doing wrong? Here is the code I am trying to use.

                                     {
                                                            module: 'MMM-MovieInfo',
                                                            position: 'bottom_left',
                                                            config: {
                                                            discover: {
                                                                    "certification_country": "US",
                                                                    "certification.lte": "G",
                                                                    "sort_by": "popularity.desc"
                                                                     }
                                                            updateInterval: '1080000',
                                                            rotateInterval: '180000',
                                                            api_key: ' '
                                    
                                                            }
                                                    },
                                    
                                    
                                    strawberry 3.141S 1 Reply Last reply Reply Quote 0
                                    • strawberry 3.141S Offline
                                      strawberry 3.141 Project Sponsor Module Developer @Jacob
                                      last edited by

                                      @Jacob missing comma after discover: {}

                                      Please create a github issue if you need help, so I can keep track

                                      JacobJ 1 Reply Last reply Reply Quote 1
                                      • SnilleS Offline
                                        Snille Module Developer
                                        last edited by

                                        Hi there! Would there be a possibility to have a config option to set the number of movies to show (as a configurable table)?
                                        Also, I read that they now support TV-Shows as well… It would be cool to get that integrated as well :)

                                        Ex something like this would be cool…

                                        config: {
                                          columns: 2,
                                          titles: 6,
                                          type: {
                                            "tv": 1,
                                           "movie": 1,
                                          }
                                          discover: {
                                            "sort_by": "vote_average.desc"
                                          }
                                        }
                                        

                                        That would give a table that holds 2 columns with 6 rows altering TV-Shows and Movies, descending by votes… 8)

                                        If you cant find it, make it and share it!
                                        Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                                        1 Reply Last reply Reply Quote 0
                                        • JacobJ Offline
                                          Jacob @strawberry 3.141
                                          last edited by

                                          @strawberry-3.141 Thanks for the help. However, it still did not seem to fix it. It’s only the MovieInfo module that seems to be causing the mirror to not load. Would it be possible to show me your MovieInfo config?

                                          strawberry 3.141S 1 Reply Last reply Reply Quote 0
                                          • strawberry 3.141S Offline
                                            strawberry 3.141 Project Sponsor Module Developer @Jacob
                                            last edited by strawberry 3.141

                                            @Jacob this config

                                            {
                                              module: 'MMM-MovieInfo',
                                              position: 'bottom_left',
                                              config: {
                                                discover: {
                                                  "certification_country": "US",
                                                  "certification.lte": "G",
                                                  "sort_by": "popularity.desc"
                                                },
                                                updateInterval: 1080000,
                                                rotateInterval: 180000,
                                                api_key: 'PUTYOURAPIKEYHERE'
                                              }
                                            },
                                            

                                            results in

                                            0_1489403364581_movie.PNG

                                            Please create a github issue if you need help, so I can keep track

                                            JacobJ 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 2 / 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