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.

    Hello everyone, I have a module resizing problem

    Scheduled Pinned Locked Moved Solved Requests
    7 Posts 2 Posters 1.4k Views 2 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.
    • kayakbabeK Offline
      kayakbabe @Manu85
      last edited by kayakbabe

      @Manu85 I do not understand what you wrote. I think you want to change the size of the content you are grabbing from a different website.

      MMM-SmartWebDisplay creates an iframe and shows a webpage inside that iframe.

      Because you are displaying the contents of your link inside an iframe, you are stuck with whatever is coded in that frame. You can’t change what is in it. The web page you chose contents are set to a fixed size by the html code that creates that page.

      The width and height in the config.js only affect the size of the iframe that you created with the module. Those values can not affect what is inside the iframe that are hosted on a different server.

      Perhaps you can find a different source for your content? If you found something that isn’t set to a fixed size then it may display relative to the size of the iframe you build locally with the module.

      This is by design of the www. It prevents hijacking content. If you want to read about it, it’s called same-domain policy.

      M 1 Reply Last reply Reply Quote 1
      • M Offline
        Manu85 @kayakbabe
        last edited by

        @kayakbabe hello and thank you for your response and indeed I would like to size the image but as you say it is not possible, I tried to look for this source elsewhere but I cannot find another or something similar on Current link is:
        https://isstracker.spaceflight.esa.int/
        I understand that this image is “blocked” to avoid the hack but I am frankly annoyed, I saw on live iss videos on YouTube that some people had managed to reduce this image in a YouTube stream but I do not don’t know how to link:
        https://www.youtube.com/watch?v=xRPjKQtRXR8

        d988874a-f019-4713-a8a1-c1c5266eefa0-image.png

        kayakbabeK 1 Reply Last reply Reply Quote 0
        • kayakbabeK Offline
          kayakbabe @Manu85
          last edited by

          @Manu85 Youtube allows you to form the url requesting the video in a way that tells YouTube what size you want the YouTube player to be. The YouTube developers do that purposely as they make money from ads they show you.

          Unfortunately the isstracker.spaceflight.esa.int website doesn’t allow you to do that.

          Every website developer makes choices for their own website. We may not like what they choose.

          M 1 Reply Last reply Reply Quote 1
          • M Offline
            Manu85 @kayakbabe
            last edited by

            @kayakbabe Thank you for your answer, in conclusion, if I understood correctly, this is not possible?!

            kayakbabeK 1 Reply Last reply Reply Quote 0
            • kayakbabeK Offline
              kayakbabe @Manu85
              last edited by kayakbabe

              @Manu85

              If you use YouTube, it is possible.

              If you use isstracker.spaceflight.esa.int, it is not possible.

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                Manu85 @kayakbabe
                last edited by

                @kayakbabe ok, thank you for your answer, have a nice day

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • 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