<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Scale website in MMM-EmbedURL]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I use docker version of MM and want to show a URL with the energy consumption figures of my house.<br />
The URL is shown, but only a small part of it. I added settings in css to change the size of the window, but I want the complete screen(site) to be shown in the window. Is that possible?</p>
<p dir="auto">The settings for the module in config.js are:</p>
<pre><code>{
                        module: "MMM-EmbedURL",
                        position: "bottom_left",
                        header: "P1 Monitor",
                        config: {
                                updateInterval: 120,
                                embedElementType: "webview",
                                basicElementType: "div",
                                embed: [
                                {
                                        attributes: [
                                                "frameborder=0",
                                                "scrolling=no"
                                        ],
                                        embed:  [
                                                "http://p1monitor/main-1.php"
                                        ]
                                },
                                ]
                        },
                },
</code></pre>
<p dir="auto">And I made this adjust at the top of the config.js:</p>
<pre><code>let config = {
        electronOptions: {
                webPreferences: {
                webviewTag: true,
                },e
        },
</code></pre>
<p dir="auto">In custom.css I have added these settings:</p>
<pre><code>.MMM-EmbedURL .embed .embeded {
    width: 600px;
}
</code></pre>
<p dir="auto">This is showing on the mirror:<br />
<img src="/assets/uploads/files/1686516403196-203c9f69-3eb3-4415-b05a-dd213a5c494d-b6fbfce0-c43e-4e21-9b97-506befe3360a_4_5005_c.jpeg" alt="203c9f69-3eb3-4415-b05a-dd213a5c494d-B6FBFCE0-C43E-4E21-9B97-506BEFE3360A_4_5005_c.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">So how can I show the entire site in the window of 600px?</p>
<p dir="auto">Thanks in advance.</p>
<p dir="auto">Regards,<br />
Gerben</p>
]]></description><link>https://forum.magicmirror.builders/topic/17840/scale-website-in-mmm-embedurl</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 19:57:46 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/17840.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Jun 2023 20:52:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Scale website in MMM-EmbedURL on Mon, 03 Jul 2023 19:51:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wishmaster270" aria-label="Profile: wishmaster270">@<bdi>wishmaster270</bdi></a><br />
The page doesn’t scale automatically, so maybe that’s the issue.</p>
<p dir="auto">Now I have used a different module: MMM-WebView, set the width and height in config.js and used the “transform: scale(0.6)” in custom.css to adjust the size. Now the complete website is shown with a proper size.</p>
<p dir="auto">Thanks for your help!</p>
<p dir="auto">Regards,<br />
Gerben</p>
]]></description><link>https://forum.magicmirror.builders/post/110074</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/110074</guid><dc:creator><![CDATA[gerbenvs]]></dc:creator><pubDate>Mon, 03 Jul 2023 19:51:39 GMT</pubDate></item><item><title><![CDATA[Reply to Scale website in MMM-EmbedURL on Sun, 25 Jun 2023 19:24:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gerbenvs" aria-label="Profile: gerbenvs">@<bdi>gerbenvs</bdi></a> Interesting…<br />
Maybe the page you want to display does not support properly.<br />
Does it scale down automatically if you display the page in a normal browser, resize the browser window and refresh the page?</p>
]]></description><link>https://forum.magicmirror.builders/post/109915</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109915</guid><dc:creator><![CDATA[wishmaster270]]></dc:creator><pubDate>Sun, 25 Jun 2023 19:24:23 GMT</pubDate></item><item><title><![CDATA[Reply to Scale website in MMM-EmbedURL on Sun, 25 Jun 2023 15:03:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wishmaster270" aria-label="Profile: wishmaster270">@<bdi>wishmaster270</bdi></a> said in <a href="/post/109774">Scale website in MMM-EmbedURL</a>:</p>
<blockquote>
<p dir="auto">“height=400px”,</p>
</blockquote>
<p dir="auto">Hi wishmaster270,</p>
<p dir="auto">Thanks for your reply.<br />
I did try those options, but they don’t seem to have any impact on the size that is shown.<br />
Also the scrolling option is not working, because I still see scrolling bars at right side and bottom.</p>
<p dir="auto">Adjusting the css will change the size that is shown, but the site is not scaled and only a very small piece is shown.</p>
]]></description><link>https://forum.magicmirror.builders/post/109913</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109913</guid><dc:creator><![CDATA[gerbenvs]]></dc:creator><pubDate>Sun, 25 Jun 2023 15:03:52 GMT</pubDate></item><item><title><![CDATA[Reply to Scale website in MMM-EmbedURL on Mon, 12 Jun 2023 11:38:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gerbenvs" aria-label="Profile: gerbenvs">@<bdi>gerbenvs</bdi></a> Hi, I think it might be possible if you add a width and height to the attributes of the webview:</p>
<pre><code>{
                        module: "MMM-EmbedURL",
                        position: "bottom_left",
                        header: "P1 Monitor",
                        config: {
                                updateInterval: 120,
                                embedElementType: "webview",
                                basicElementType: "div",
                                embed: [
                                {
                                        attributes: [
                                                "frameborder=0",
                                                "scrolling=no", 
                                                "width=600px",
                                                "height=400px",
                                        ],
                                        embed:  [
                                                "http://p1monitor/main-1.php"
                                        ]
                                },
                                ]
                        },
                },

</code></pre>
<p dir="auto">I do not have a chance to test it at the moment but you may want to give it a try.</p>
]]></description><link>https://forum.magicmirror.builders/post/109774</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109774</guid><dc:creator><![CDATA[wishmaster270]]></dc:creator><pubDate>Mon, 12 Jun 2023 11:38:11 GMT</pubDate></item></channel></rss>