Read the statement by Michael Teeuw here.
Cannot get MMM-EmbedURL to show any sites
-
@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,"
withembedElementType: "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.
-
@unaccomplished I agree, not the errors I was seeing…
so @wishmaster270 will have to help more
-
@unaccomplished your code markers MUST start in column 1.
-
Sorry, is it a formatting error in my comments, or in my config file?
-
@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… -
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!
-
@unaccomplished its where the cursor is when you click the </> button
must be on the start of the line -
@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 lineGot it. Thank you for your continued help!
-