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

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 3 Posters 2.7k 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
      maxbachmann
      last edited by maxbachmann

      I try to get MMM-Iframe running https://github.com/alberttwong/MMM-iFrame
      I tried with the code he shares on there with https://www.google.com as URL
      The MagicMirror works, but the Iframe is not shown

      {
      	module: 'MMM-iFrame',
      	position: 'bottom_bar',
      	config: {
      			url: ["https://www.google.com"], 
      			updateInterval: 0.5 * 60 * 1000,
      			width: "100%", 
      			height: "100px"
      		}
      },
      

      anybody knows what I do wrong?
      ty for the help

      1 Reply Last reply Reply Quote -1
      • cowboysdudeC Offline
        cowboysdude Module Developer
        last edited by

        If a webpage has Xframe deny or Sameorigin it will not show in an iFrame.

        Try this: instead of running ‘npm start’ run ‘node serveronly’ and load it in chrome via localhost:8080

        See if the iFrame loads then… I know this works I just had the same problem [different website not google] and loaded it that way and it worked.

        M 1 Reply Last reply Reply Quote 2
        • M Offline
          maxbachmann @cowboysdude
          last edited by maxbachmann

          @cowboysdude just did it with node serveronly and then accessed it on my raspy with chromium
          localhost:8080 still has the same problem everything but the iframe is still not shown

          However I realised that with the type of website (using it for the webpanel of Openhab) I actually want to show later it works perfectly fine ^^

          E 1 Reply Last reply Reply Quote 1
          • E Offline
            E3V3A @maxbachmann
            last edited by

            @maxbachmann What does your browser’s Developer Tools log say?

            "Everything I do (here) is for free – altruism is the way!"
            MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

            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