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

iFrame not working?

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 5 Posters 5.3k Views 4 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
    MattG
    last edited by Feb 11, 2017, 9:54 PM

    Working on getting an iFrame to display on my mirror, but it doesn’t seem to work. I’ve tried code from the repo for the module itself, as well as some code from various forum posts here on the site. Nothing seems to be working.

    This is the code I’m using. Nothing displays.

    {
    			module: 'iFrame',
    			position: 'middle_center',
    			config: {
    				url: "www.google.com",
    				width: "100%",
    				height: "100px",
    			}
    		},
    

    Further, I’d really like to display my google calendar, but I’m a little confused as to whether I should be using the full URL as generated from google, or if I should be modifying it? I’ve stripped my email address from the link.

    "https://calendar.google.com/calendar/embed?showTitle=0&showNav=0&showPrint=0&showTabs=0&showCalendars=0&showTz=0&height=600&wkst=1&bgcolor=%23FFFFFF&src=GMAIL_USER_ID1234&color=%2328754E&ctz=America%2FChicago" style="border-width:0" width="800" height="600" frameborder="0" scrolling="no"
    

    A quick note about that URL from google, part of my question is that it includes an “iframe” tag around the URL. I removed it because I couldn’t get it to display on this thread otherwise. Do I include the iframe tag as part of my URL when plugging this into my config file?

    Any help here would be much appreciated. Thank you!

    B 1 Reply Last reply Feb 11, 2017, 10:18 PM Reply Quote 0
    • B Offline
      broberg Project Sponsor @MattG
      last edited by broberg Feb 11, 2017, 10:20 PM Feb 11, 2017, 10:18 PM

      @MattG and if you use https://www.google.com as the url?

      And you want to display the embedded calendar from google in the iframe? Why not use the default calendar module and have it display your google calendar? (Using iCal)

      If embedded, you should only use the adress,none of the html tags around it.

      Don’t know if it’s just missing from your post or the config file, looks like it’s missing a { before the module entry

      M 1 Reply Last reply Feb 12, 2017, 12:01 AM Reply Quote 0
      • M Offline
        MattG @broberg
        last edited by Feb 12, 2017, 12:01 AM

        @broberg I’m mobile right now so I apologize for the brevity.

        The issue is the same with any URL.

        I don’t think it’s missing a curly bracket because you can scroll to the left and you should see it. It’s just poorly formatted.

        Regarding the"why". Is like to display a calendar in month view with my appointments on the various days. To my knowledge this isn’t possible with the default and third party calendar modules. If it is… I’m all ears!!

        Cheers!

        1 Reply Last reply Reply Quote 0
        • D Offline
          daikaiju
          last edited by Feb 12, 2017, 4:13 PM

          I’ve been having the same issue. Any help would be great!

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by Feb 22, 2017, 3:47 PM

            same issue here
            iFrame not working

            Having the following config file

            modules: [
            		{
                    module: 'iFrame',
                    position: 'middle_center', // This can be any of the regions.
                    config: {
                        // See 'Configuration options' for more information.
                            url: "https://www.youtube.com/watch?v=nybXQ0Kv9u4",
                            width: "100px", // Optional. Default: 100%
                            height: "100px" //Optional. Default: 100px
                        }
                    }
            ]
            
            

            Love to get some guidance for this :D

            I also check out the following:

            1. https://forum.magicmirror.builders/topic/1126/display-web-widget-on-mirror-through-iframe/5
            2. https://forum.magicmirror.builders/topic/1133/hiding-and-showing-iframe-module/5
            3. https://forum.magicmirror.builders/topic/1283/module-iframe-starting-video-automatically/2

            Thank you awesome people.

            M 1 Reply Last reply Feb 25, 2017, 10:19 PM Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @Guest
              last edited by Feb 25, 2017, 10:19 PM

              @bosslee said in iFrame not working?:

              Love to get some guidance for this

              I am also having trouble getting iFrame to work. I searched for some help and came upon this topic, so rather than start a new one, I jumped in here. The module loads but nothing appears. The ReadMe doesn’t say much other than to enter the url, which I did. The url is correct

              {
              			module: 'iFrame',
              			position: 'top_right',	// This can be any of the regions.
              			config: {
              				url: "https://hdontap.com/index.php/video/stream/bald-eagle-live-cam",
              				width: "300px",     // Optional. Default: 100% or Example "200px"
              				height: "300px",   //Optional. Default: 100px or Example "300px"
              			}
              		},
              

              Create a working config
              How to add modules

              M 1 Reply Last reply Feb 26, 2017, 2:12 AM Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @Mykle1
                last edited by Feb 26, 2017, 2:12 AM

                Inch by inch . . .

                I was able to get the iFrame to at least show something, simply by changing the url to this

                			module: 'iFrame',
                			position: 'top_right',	// This can be any of the regions.
                			config: {
                				url: "http://www.ustream.tv/channel/iss-hdev-payload",
                				width: "300px",     // Optional. Default: 100% or Example "200px"
                				height: "200px",   //Optional. Default: 100px or Example "300px"
                			}
                		},
                

                The iFrame opens on that page. I can see the logo of the page, but the scroll bars on the iFrame don’t function so I cannot position the view of the page. It’s a live feed from the International Space Station

                Create a working config
                How to add modules

                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