<?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[Enabling MM-QR Code to read the output of MM-Remote Control]]></title><description><![CDATA[<p dir="auto">Hi all! After taking a coding break to physically assemble my mirror, I’m doing the final coding to wrap this project up.  For context, it is for my college-aged child who is NOT a CS major.</p>
<p dir="auto">I think MM-Remote Control is very useful, but all it displays is a hyperlink to the mirror.  I’d like to use MM-QR Code to display that hyperlink in QR form.</p>
<p dir="auto">I’ve found that I can add a source for the QR code:</p>
<pre><code>{
      module: "MMM-QRCode",
      position: "middle",
      config: {
           text: "http://cnn.com"
      }
}
</code></pre>
<p dir="auto">Rather than display static text, how can I get it to display the output of MM-Remote Control?</p>
<p dir="auto">CheapDad</p>
]]></description><link>https://forum.magicmirror.builders/topic/15105/enabling-mm-qr-code-to-read-the-output-of-mm-remote-control</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 20:36:34 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/15105.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Jun 2021 20:47:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Enabling MM-QR Code to read the output of MM-Remote Control on Tue, 30 Nov 2021 15:30:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/integria92" aria-label="Profile: integria92">@<bdi>integria92</bdi></a> the qrcode takes some text and makes it available to the scanner</p>
<p dir="auto">it can be anything</p>
<p dir="auto">IF the text is a url, the client app offers to open it</p>
<p dir="auto">so, you config the module with a dummy url<br />
<a href="https://github.com/evghenix/MMM-QRCode" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/evghenix/MMM-QRCode</a></p>
<p dir="auto">and the the script additions change it to the machine IP address at the time mm starts.</p>
<p dir="auto">which the op’s daughter in college would not generally know.</p>
<p dir="auto">if the machine was powered off for a day/week, it’s ip address would likely change, and so a hard coded ip address would be bad.</p>
<p dir="auto">this code handles any dhcp address<br />
change and then the qrcode launches remote controls expected</p>
<p dir="auto">remember, until mm starts, the config.js is a useless text file</p>
]]></description><link>https://forum.magicmirror.builders/post/96951</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/96951</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 30 Nov 2021 15:30:11 GMT</pubDate></item><item><title><![CDATA[Reply to Enabling MM-QR Code to read the output of MM-Remote Control on Tue, 30 Nov 2021 15:07:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Interesting. Thanks for the quick response. so in the example above; for the qrcode config… What would the text =<br />
to find the output from the script?<br />
again, thanks a lot for your help</p>
]]></description><link>https://forum.magicmirror.builders/post/96949</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/96949</guid><dc:creator><![CDATA[Integria92]]></dc:creator><pubDate>Tue, 30 Nov 2021 15:07:47 GMT</pubDate></item><item><title><![CDATA[Reply to Enabling MM-QR Code to read the output of MM-Remote Control on Tue, 30 Nov 2021 03:28:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/integria92" aria-label="Profile: integria92">@<bdi>integria92</bdi></a> the qrcode module creates the qr… it takes a hard coded url<br />
but if u don’t know the value, its hard</p>
<p dir="auto">so the text above added to the <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a>   can update the config.js  for the QRCode module  before MM starts and all will be well…</p>
]]></description><link>https://forum.magicmirror.builders/post/96940</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/96940</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 30 Nov 2021 03:28:52 GMT</pubDate></item><item><title><![CDATA[Reply to Enabling MM-QR Code to read the output of MM-Remote Control on Tue, 30 Nov 2021 02:43:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> did the start up script work alone to make the qr code work with mmm-remotecontrol<br />
address? sorry little confused</p>
]]></description><link>https://forum.magicmirror.builders/post/96939</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/96939</guid><dc:creator><![CDATA[Integria92]]></dc:creator><pubDate>Tue, 30 Nov 2021 02:43:18 GMT</pubDate></item><item><title><![CDATA[Reply to Enabling MM-QR Code to read the output of MM-Remote Control on Wed, 09 Jun 2021 17:11:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> you could make the MM start script fix the config entry</p>
<p dir="auto">here is a little script you can use to modify the config when MM is started</p>
<pre><code class="language-bash">#!/bin/bash
#
# get the active adapter name
#
adapter=$(ip link show | grep mtu | grep -v lo | grep up | grep -v -i docker | grep "state UP" | awk -F: '{print $2}' | awk '{print $1}')
#
# use the adapter name to get the assigned IP address
#
address=$(ifconfig $adapter | grep "inet " | awk '{print $2}')
#
# use for debugging
# echo address for  adapter $adapter  is $address
#
# use the address in sed replace of the line that starts with text:"http:/
# -i means update file in place
# file at the end needs the path   (~/MagicMirror/config/config.js
#
sed -i "/text:\"http:/ c \    \"text\"\:\"http://$address:8080/modules/remoteControl.html\","  config.js
</code></pre>
<p dir="auto">u could add this to the <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a> used to start MM on boot,etc…<br />
I don’t know the end of the remotecontrol link… so that has to be fixed too…<br />
just have something in config.js when this runs , this should run before npm start</p>
<p dir="auto">this works for ipV4… haven’t tried with ipV6 network<br />
the grep "inet  "  filters out the  v6 address   “inet6” would select just that address</p>
<p dir="auto">docs says</p>
<pre><code>Because IPv6 addresses contain colons, they cannot be directly used in URLs because the colons would conflict with both the protocol declaration (http:// or https://) and port numbers. Therefore, when a literal IPv6 address is used, it is encased in a bracket, like http://[2001:db8::1]:80.
</code></pre>
<p dir="auto">so that would be a tiny change to the sed string</p>
]]></description><link>https://forum.magicmirror.builders/post/92019</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92019</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 09 Jun 2021 17:11:51 GMT</pubDate></item><item><title><![CDATA[Reply to Enabling MM-QR Code to read the output of MM-Remote Control on Tue, 08 Jun 2021 16:28:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cheapdad" aria-label="Profile: cheapdad">@<bdi>cheapdad</bdi></a> iphone is irrelevant to this…</p>
]]></description><link>https://forum.magicmirror.builders/post/92018</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92018</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 08 Jun 2021 16:28:56 GMT</pubDate></item><item><title><![CDATA[Reply to Enabling MM-QR Code to read the output of MM-Remote Control on Tue, 08 Jun 2021 16:18:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
Unfortunately, yes, when she returns to college. To make things worse, I don’t know how often the college’s dhcp will get her a new iPhone address.</p>
]]></description><link>https://forum.magicmirror.builders/post/92015</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92015</guid><dc:creator><![CDATA[CheapDad]]></dc:creator><pubDate>Tue, 08 Jun 2021 16:18:26 GMT</pubDate></item><item><title><![CDATA[Reply to Enabling MM-QR Code to read the output of MM-Remote Control on Tue, 08 Jun 2021 01:12:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cheapdad" aria-label="Profile: cheapdad">@<bdi>cheapdad</bdi></a> you would have to write some code in the qr module…</p>
<p dir="auto">do you think the pi address will change?</p>
]]></description><link>https://forum.magicmirror.builders/post/91991</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/91991</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 08 Jun 2021 01:12:33 GMT</pubDate></item></channel></rss>