• 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 554 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.
  • S Away
    sdetweil @wishmaster270
    last edited by sdetweil Dec 4, 2024, 5:55 PM Dec 4, 2024, 5:51 PM

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

    Are you sure you set the security settings of electron?

    no… I viewed that as optional if doing webview…(electron javascript content) but I am viewing an html page. (altho hosted by MM)

    If do use the build in electron browser to view the mirror you can use Webview instead
    

    my config

          {
      module: "MMM-EmbedURL",
      position: "top_left",
      header: "Embed-URL",
      config: {
        updateInterval: 120,
        attributes: [
            "frameborder=0",
        ],
        embed: [
            "http://localhost:8090/modules/MMM-Config/review/",
            "https://cnn.com"
        ]
      },
    },
    

    Sam

    How to add modules

    learning how to use browser developers window for css changes

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

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

      @unaccomplished can you look at the messages where you start MagicMirror
      pm2 logs --lines=50

      It seems this is the most relevant error in the log:

      /home/MagicMirrorPi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
      

      Here are my error logs:

      /home/MagicMirrorPi/.pm2/logs/MagicMirror-error.log last 50 lines:
      0|MagicMir | [2100:1204/174503.791282:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.791659:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.791914:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.792304:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.792571:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.794953:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.795270:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.797663:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.799569:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.801781:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.805922:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.809880:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.810094:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.810464:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.810645:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.810893:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.811059:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.811276:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2100:1204/174503.811427:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | /home/MagicMirrorPi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
      0|MagicMir | [2024-12-04 17:52:52.959] [WARN]  No /home/MagicMirrorPi/MagicMirror/js/../modules/WallberryTheme/WB-clock/WallberryTheme/WB-clock.js found for module: WB-clock.
      0|MagicMir | [2024-12-04 17:52:52.966] [WARN]  No /home/MagicMirrorPi/MagicMirror/js/../modules/WallberryTheme/WB-weather/WallberryTheme/WB-weather.js found for module: WB-weather.
      0|MagicMir | [2061:1204/175303.171404:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.171830:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.172059:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.173512:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.173776:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.173859:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.174003:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.174110:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.174246:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.174329:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.174452:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.174522:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.174643:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.174716:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.175789:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.177938:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.178289:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.178399:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.178547:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.178626:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.182442:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.183828:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.184097:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.184177:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.184326:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.184401:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.184533:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|MagicMir | [2061:1204/175303.184607:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      
      

      The two wrapper errors and the two Wallberry warnings have been perpetual, but don’t seem to affect anything. If you have any insight on these, I’d appreciate it.

      I also noted this from the out-put log:

      0|MagicMir | ### OTHER:    timeZone: America/New_York; ELECTRON_ENABLE_GPU: undefined
      0|MagicMir | [2024-12-04 17:53:26.965] [LOG]   Electron's cache successfully cleared.
      

      and later in the same log:

      0|MagicMir | [2024-12-04 17:53:34.199] [INFO]  Checking git for module: MMM-EmbedURL
      0|MagicMir | [2024-12-04 17:53:34.289] [LOG]   resizing done!
      

      I don’t think these are errors, at least not in the context provided.

      S 1 Reply Last reply Dec 4, 2024, 11:07 PM Reply Quote 0
      • 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 Away
          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 Away
            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 Away
                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 Away
                    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
                      • 1 / 2
                      1 / 2
                      • First post
                        9/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