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

Cannot get MMM-EmbedURL to show any sites

Scheduled Pinned Locked Moved Solved Troubleshooting
14 Posts 3 Posters 1.1k Views 3 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.
  • U Offline
    unaccomplished @wishmaster270
    last edited by sdetweil Dec 4, 2024, 11:08 PM Dec 4, 2024, 11:06 PM

    @wishmaster270 said in Cannot get MMM-EmbedURL to show any sites:

    @unaccomplished
    Hi,

    just tried your config in my setup and everything worked as expected.

    The question is…where are the differences in your and mine setup.

    As a first try you can replace embedElementType: "webview," with embedElementType: "iframe,".

    If the embeded pages does not block embedding iframe should work and you do not weaken any security settings of the electron browser.

    Additionally you can replace "frameborder=0", with "frameborder=1",. You should see two boxes at least then. Even if the sites could not be embedded.

    @sdetweil Are you sure you set the security settings of electron? Without them electron will not support webview and will not display anything.

    I updated the config as requested, once without, and then with “iframe”.

    {
                           module: "MMM-EmbedURL",
                           position: "upper_third",
                           header: "Embed-URL",
                           config: {
                                   updateInterval: 120,
                                   embedElementType: "iframe",
                                   attributes: [
                                           "frameborder=1",
                                   ],
                                   embed: [
                                           "http://10.0.0.51:50081/ui3.htm?t=live&cam=Doorbell&maximize=1",
                                           "https://www.youtube.com/embed/dIHr96KqfDI",
                                   ]
                           },
                   },
    

    Without switching to iframe, the frameborder made no difference. Now with iframe, I have two blank boxes appearing.

    S U 2 Replies Last reply Dec 4, 2024, 11:08 PM Reply Quote 0
    • S Offline
      sdetweil @unaccomplished
      last edited by Dec 4, 2024, 11:07 PM

      @unaccomplished I agree, not the errors I was seeing…

      so @wishmaster270 will have to help more

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @unaccomplished
        last edited by Dec 4, 2024, 11:08 PM

        @unaccomplished your code markers MUST start in column 1.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        U 1 Reply Last reply Dec 4, 2024, 11:14 PM Reply Quote 0
        • U Offline
          unaccomplished @sdetweil
          last edited by Dec 4, 2024, 11:14 PM

          @sdetweil

          Sorry, is it a formatting error in my comments, or in my config file?

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @sdetweil
            last edited by Dec 4, 2024, 11:16 PM

            @wishmaster270 Mine was a user error

            I had MMM-Pages enabled, and EmbedURL was not on any page… oops…
            the MM page embedded and cnn did not…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • U Offline
              unaccomplished @unaccomplished
              last edited by unaccomplished Dec 4, 2024, 11:22 PM Dec 4, 2024, 11:16 PM

              @wishmaster270

              Just went back in and realized these were commented out in my config.

              ignoreXOriginHeader: true,
              ignoreContentSecurityPolicy: true,
              

              I added them back in, and success! Now to find a way to config the page to not need a login, but its huge progress. Thanks!

              S 1 Reply Last reply Dec 4, 2024, 11:21 PM Reply Quote 0
              • S Offline
                sdetweil @unaccomplished
                last edited by Dec 4, 2024, 11:21 PM

                @unaccomplished its where the cursor is when you click the </> button
                must be on the start of the line

                Screenshot at 2024-12-04 17-19-52.png

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                U 1 Reply Last reply Dec 4, 2024, 11:22 PM Reply Quote 1
                • U Offline
                  unaccomplished @sdetweil
                  last edited by unaccomplished Dec 4, 2024, 11:42 PM Dec 4, 2024, 11:22 PM

                  @sdetweil said in Cannot get MMM-EmbedURL to show any sites:

                  @unaccomplished its where the cursor is when you click the </> button
                  must be on the start of the line

                  Got it. Thank you for your continued help!

                  1 Reply Last reply Reply Quote 1
                  • S sdetweil has marked this topic as solved on Dec 4, 2024, 11:43 PM
                  • 1
                  • 2
                  • 2 / 2
                  2 / 2
                  • First post
                    11/14
                    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