<?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[ClientOnly - toggle monitor power on and off]]></title><description><![CDATA[<p dir="auto">I’d like to run MM in a docker container because it’s easier for me to make changes and deploy.  I was hoping I would be able to use a RPi with MM and run it clientOnly to access the docker container.   This all works flawlessly.  However, I’d like to be able to toggle the monitor power on the RPi running clientOnly remotely (via http request, mqtt, etc), but this only seems possible by using add third party modules which do not load when running clientOnly.</p>
<p dir="auto">Alternatively, could I ditch the docker container, and run MM via a config stored on a remote file share?  Then I could easily update my config on that file share and use MMM remotecontrol to restart MM when I update my config.</p>
]]></description><link>https://forum.magicmirror.builders/topic/17510/clientonly-toggle-monitor-power-on-and-off</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 01:40:45 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/17510.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Jan 2023 01:06:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ClientOnly - toggle monitor power on and off on Sun, 08 Jan 2023 22:31:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/egzachly" aria-label="Profile: egzachly">@<bdi>egzachly</bdi></a> also you can use the ln command to link the config.js to the real file somewhere else…  MM doesn’t know the link is not a real file…</p>
]]></description><link>https://forum.magicmirror.builders/post/107096</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/107096</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 08 Jan 2023 22:31:38 GMT</pubDate></item><item><title><![CDATA[Reply to ClientOnly - toggle monitor power on and off on Sun, 08 Jan 2023 22:26:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/egzachly" aria-label="Profile: egzachly">@<bdi>egzachly</bdi></a> my fault…</p>
<p dir="auto">export MM_CONFIG_FILE=</p>
<pre><code>sam@galliumos:~/MagicMirror$ export MM_CONFIG_FILE=/mnt/config.js
sam@galliumos:~/MagicMirror$ npm start

&gt; magicmirror@2.22.0 start
&gt; DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[08.01.2023 16:24.39.762] [LOG]   Starting MagicMirror: v2.22.0
[08.01.2023 16:24.39.768] [LOG]   Loading config ...
[08.01.2023 16:24.39.770] [LOG]   config=/mnt/config.js
</code></pre>
<p dir="auto">I added a console print to verify</p>
]]></description><link>https://forum.magicmirror.builders/post/107095</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/107095</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 08 Jan 2023 22:26:25 GMT</pubDate></item><item><title><![CDATA[Reply to ClientOnly - toggle monitor power on and off on Sun, 08 Jan 2023 22:15:49 GMT]]></title><description><![CDATA[<p dir="auto">This isnt working for me</p>
<p dir="auto">i set up pm2 with a startup script which looks like this</p>
<pre><code>cd ~/MagicMirror
export MM_CONFIG=/mnt/magicmirror/config.js
DISPLAY=:0 npm start
</code></pre>
<p dir="auto">I’ve verified that the config.js is present at that folder location.   when I start with pm2 i get the screen that says<br />
“Please create a config file or check the existing one for errors”</p>
<p dir="auto">to test if it was permissions error on the /mnt directory files. I copied the config to ~/mmconfig and edited the script to read</p>
<pre><code>...
export MM_CONFIG=/home/egzachly/mmconfig/config.js
...
</code></pre>
<p dir="auto">And I get the same error message.</p>
<p dir="auto">I then confirmed that there is not an error with the config.js by copying it to ~/MagicMirror/config/config.js and starting with</p>
<pre><code>npm start
</code></pre>
<p dir="auto">And it runs flawlessly.  Unfortunately, running it from there is not what I want to do.  Is there a syntax error in my pm2 shell script?</p>
]]></description><link>https://forum.magicmirror.builders/post/107094</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/107094</guid><dc:creator><![CDATA[egzachly]]></dc:creator><pubDate>Sun, 08 Jan 2023 22:15:49 GMT</pubDate></item><item><title><![CDATA[Reply to ClientOnly - toggle monitor power on and off on Sun, 08 Jan 2023 22:27:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/egzachly" aria-label="Profile: egzachly">@<bdi>egzachly</bdi></a> yes</p>
<p dir="auto">u can set the path/name of the config.js</p>
<p dir="auto">this also makes it so you could launch multiple instances from the same mm folder w different configs</p>
<p dir="auto">export MM_CONFIG=full path to config file, or just name<br />
edit MMM_CONFG_FILE is the correct env variable</p>
<p dir="auto">search posts w mm_config to see prior discussions</p>
]]></description><link>https://forum.magicmirror.builders/post/106931</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/106931</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 08 Jan 2023 22:27:29 GMT</pubDate></item><item><title><![CDATA[Reply to ClientOnly - toggle monitor power on and off on Thu, 05 Jan 2023 14:21:52 GMT]]></title><description><![CDATA[<p dir="auto">I figured that was the case. Is it possible to load MM with a config file located somewhere other than the config directory?</p>
]]></description><link>https://forum.magicmirror.builders/post/106930</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/106930</guid><dc:creator><![CDATA[egzachly]]></dc:creator><pubDate>Thu, 05 Jan 2023 14:21:52 GMT</pubDate></item><item><title><![CDATA[Reply to ClientOnly - toggle monitor power on and off on Thu, 05 Jan 2023 01:24:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/egzachly" aria-label="Profile: egzachly">@<bdi>egzachly</bdi></a> to turn off the monitor, you need to execute a command. the browser cannot do that.</p>
<p dir="auto">this is done by the node_helper of some module</p>
<p dir="auto">today the decision logic is in the browser side, the execution is in the helper.</p>
<p dir="auto">so client side (browser) only doesn’t work for this</p>
]]></description><link>https://forum.magicmirror.builders/post/106926</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/106926</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 05 Jan 2023 01:24:57 GMT</pubDate></item></channel></rss>