iFrame not working?



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


  • Module Developer

    @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



  • @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!



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



  • 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: "
    ", 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.


  • Module Developer

    @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"
    			}
    		},
    

  • Module Developer

    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


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.