• 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.

Hello everyone, I have a module resizing problem

Scheduled Pinned Locked Moved Solved Requests
7 Posts 2 Posters 933 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.
  • M Offline
    Manu85
    last edited by Mar 6, 2024, 7:27 AM

    Hello everyone, I have a module resizing problem, thanks to @sdetweil I installed a module to recover the image of the iss position for the day/night zone (see my screenshot) the problem is that if I want to reduce the size of the image then it cuts the image what I would like is a zoom which allows me to keep the entire image by reducing the module, I also put my config.js, thank you to all the specialists for their help

    48d40cbc-61c2-4ac3-a31c-c319b549ad96-image.png

    {
    		disabled: false,
    		module: 'MMM-SmartWebDisplay',
    		position: 'top_left',	// This can be any of the regions.
    		config: {
    			// See 'Configuration options' for more information.
    			logDebug: false, //set to true to get detailed debug logs. To see them : "Ctrl+Shift+i"
    			 height: "350px",
        			 width: "610px",
                   		updateInterval: 0, //in min. Set it to 0 for no refresh (for videos)
                    	NextURLInterval: 0, //in min, set it to 0 not to have automatic URL change. If only 1 URL given, it will be updated
                    	displayLastUpdate: true, //to display the last update of the URL
    					displayLastUpdateFormat: 'ddd - HH:mm:ss', //format of the date and time to display
                    	url: ["https://isstracker.spaceflight.esa.int/"], //source of the URL to be displayed
    					scrolling: "no", // allow scrolling or not. html 4 only
    					shutoffDelay: 10000 //delay in miliseconds to video shut-off while using together with MMM-PIR-Sensor 
    			}
    	},
    
    K 1 Reply Last reply Mar 8, 2024, 2:29 AM Reply Quote 0
    • K Offline
      kayakbabe @Manu85
      last edited by kayakbabe Mar 17, 2024, 7:39 AM Mar 17, 2024, 7:39 AM

      @Manu85

      If you use YouTube, it is possible.

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

      M 1 Reply Last reply Mar 17, 2024, 7:41 AM Reply Quote 0
      • K Offline
        kayakbabe @Manu85
        last edited by kayakbabe Mar 8, 2024, 2:32 AM Mar 8, 2024, 2:29 AM

        @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 Mar 8, 2024, 8:52 AM Reply Quote 1
        • M Offline
          Manu85 @kayakbabe
          last edited by Mar 8, 2024, 8:52 AM

          @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

          K 1 Reply Last reply Mar 15, 2024, 2:18 AM Reply Quote 0
          • K Offline
            kayakbabe @Manu85
            last edited by Mar 15, 2024, 2:18 AM

            @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 Mar 15, 2024, 4:56 PM Reply Quote 1
            • M Offline
              Manu85 @kayakbabe
              last edited by Mar 15, 2024, 4:56 PM

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

              K 1 Reply Last reply Mar 17, 2024, 7:39 AM Reply Quote 0
              • K Offline
                kayakbabe @Manu85
                last edited by kayakbabe Mar 17, 2024, 7:39 AM Mar 17, 2024, 7:39 AM

                @Manu85

                If you use YouTube, it is possible.

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

                M 1 Reply Last reply Mar 17, 2024, 7:41 AM Reply Quote 0
                • M Offline
                  Manu85 @kayakbabe
                  last edited by Mar 17, 2024, 7:41 AM

                  @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