• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 18.3k 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.
  • S Offline
    strawberry 3.141 Project Sponsor Module Developer
    last edited by Feb 19, 2017, 11:54 PM

    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 Mar 9, 2017, 8:18 AM Mar 9, 2017, 8:17 AM

      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 :)

      Y 2 Replies Last reply Mar 9, 2017, 8:49 AM Reply Quote 1
      • Y Offline
        yawns Moderator @SilentJbob1680
        last edited by Mar 9, 2017, 8:49 AM

        @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
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer
          last edited by Mar 9, 2017, 10:25 AM

          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
          • Y Offline
            yawns Moderator @SilentJbob1680
            last edited by Mar 9, 2017, 10:56 AM

            @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
            • J Offline
              Jacob
              last edited by Mar 12, 2017, 6:02 PM

              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: ' '
              
                                      }
                              },
              
              
              S 1 Reply Last reply Mar 12, 2017, 8:50 PM Reply Quote 0
              • S Offline
                strawberry 3.141 Project Sponsor Module Developer @Jacob
                last edited by Mar 12, 2017, 8:50 PM

                @Jacob missing comma after discover: {}

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

                J 1 Reply Last reply Mar 13, 2017, 10:57 AM Reply Quote 1
                • S Offline
                  Snille Module Developer
                  last edited by Mar 12, 2017, 9:00 PM

                  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
                  • J Offline
                    Jacob @strawberry 3.141
                    last edited by Mar 13, 2017, 10:57 AM

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

                    S 1 Reply Last reply Mar 13, 2017, 11:09 AM Reply Quote 0
                    • S Offline
                      strawberry 3.141 Project Sponsor Module Developer @Jacob
                      last edited by strawberry 3.141 Mar 13, 2017, 11:10 AM Mar 13, 2017, 11:09 AM

                      @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

                      J 1 Reply Last reply Mar 13, 2017, 11:24 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      • 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