<?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[MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up?]]></title><description><![CDATA[<p dir="auto">I’ve started rebooting my mirror once a day due to the problem with the newsreader mentioned elsewhere.<br />
This made another bug apparent.<br />
I’m turning the HDMI on and off depending on presence, and I also report the state to MQTT.<br />
But it seems that if the HDMI is turned off, and then a reboot is done the HDMI is turned on, but the change in USER_PRESENCE isn’t sent in notifications, so the MQTT shows the monitor as turned off (if it was turned off before the reboot).</p>
]]></description><link>https://forum.magicmirror.builders/topic/15496/magicmirror-isn-t-publishing-user_presence-on-start-up</link><generator>RSS for Node</generator><lastBuildDate>Fri, 08 May 2026 15:41:33 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/15496.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Sep 2021 20:27:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Mon, 13 Sep 2021 23:39:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fribse" aria-label="Profile: fribse">@<bdi>fribse</bdi></a> notifications don’t have to have a payload</p>
<p dir="auto">I think the source could be null too</p>
]]></description><link>https://forum.magicmirror.builders/post/94486</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94486</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 13 Sep 2021 23:39:28 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Mon, 13 Sep 2021 22:48:48 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> Ahh, yes, and there I do see the</p>
<pre><code>sendNotification("ALL_MODULES_STARTED");
</code></pre>
<p dir="auto">Going out, hmm, it seems that it’s main sending it out, I wonder if that is supposed to be payload Value, and notiId is supposed to be something like main? Hmm, I hope sergge1 or <a class="plugin-mentions-user plugin-mentions-a" href="/user/bugsounet" aria-label="Profile: bugsounet">@<bdi>bugsounet</bdi></a> knows that.</p>
]]></description><link>https://forum.magicmirror.builders/post/94484</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94484</guid><dc:creator><![CDATA[fribse]]></dc:creator><pubDate>Mon, 13 Sep 2021 22:48:48 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Mon, 13 Sep 2021 22:38:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fribse" aria-label="Profile: fribse">@<bdi>fribse</bdi></a> sorry, I was using the dev window, console tab</p>
]]></description><link>https://forum.magicmirror.builders/post/94482</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94482</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 13 Sep 2021 22:38:22 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Mon, 13 Sep 2021 22:37:49 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> Hey Sam, sorry you lost me, “filter field”?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bugsounet" aria-label="Profile: bugsounet">@<bdi>bugsounet</bdi></a> If you are still around, do you have any idea about the notification format in notiDictionary.js?</p>
]]></description><link>https://forum.magicmirror.builders/post/94481</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94481</guid><dc:creator><![CDATA[fribse]]></dc:creator><pubDate>Mon, 13 Sep 2021 22:37:49 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Mon, 13 Sep 2021 22:35:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fribse" aria-label="Profile: fribse">@<bdi>fribse</bdi></a> u can filter messages by placing part of the modulename in the filter field</p>
]]></description><link>https://forum.magicmirror.builders/post/94480</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94480</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 13 Sep 2021 22:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Mon, 13 Sep 2021 22:26:05 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> Ok, gotcha. I’m trying to figure out the notification, currently the MMM-MQTTbridge doesn’t pick it up.<br />
I’ve set up MMM-ViewNotifications, but I’m drowning in noti’s.<br />
I made this config</p>
<pre><code>    {
      module: "MMM-ViewNotifications",
      position: "top_left",
      header: "Notifications",
      config: {
        excludeModules: ["clock","newsfeed","currentweather","calendar","MMM-News-QR"]
      }
    },

</code></pre>
<p dir="auto">What did I do wrong since it still displays noti’s from these?</p>
]]></description><link>https://forum.magicmirror.builders/post/94479</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94479</guid><dc:creator><![CDATA[fribse]]></dc:creator><pubDate>Mon, 13 Sep 2021 22:26:05 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Mon, 13 Sep 2021 22:12:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fribse" aria-label="Profile: fribse">@<bdi>fribse</bdi></a> sorry, now no idea, don’t know the module internals</p>
]]></description><link>https://forum.magicmirror.builders/post/94478</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94478</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 13 Sep 2021 22:12:40 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Mon, 13 Sep 2021 22:10: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> Ahaaaa, way cooler :-)</p>
<p dir="auto">So I guess I should add this to the notiDictionary.js<br />
I’m unsure of the payloadValue?</p>
<pre><code>{
  notiId: "ALL_MODULES_STARTED",
  notiPayload: [
    {
      payloadValue: '1',
      notiMqttCmd: ["SCREENON"]
    }
  ]
}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/94477</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94477</guid><dc:creator><![CDATA[fribse]]></dc:creator><pubDate>Mon, 13 Sep 2021 22:10:18 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Mon, 13 Sep 2021 21:04:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fribse" aria-label="Profile: fribse">@<bdi>fribse</bdi></a> yes, inside…  but u are outside  (Oh I see, change the module)</p>
<p dir="auto">from the doc<br />
<a href="https://docs.magicmirror.builders/development/core-module-file.html#subclassable-module-methods" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.magicmirror.builders/development/core-module-file.html#subclassable-module-methods</a></p>
<p dir="auto">ALL_MODULES_STARTED</p>
]]></description><link>https://forum.magicmirror.builders/post/94476</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94476</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 13 Sep 2021 21:04:24 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Mon, 13 Sep 2021 21:00: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> Darned, that’s really sad, it seems logical to make a notification that says done setting up, and running. Oh well, always room for improvement in the code :-)</p>
]]></description><link>https://forum.magicmirror.builders/post/94475</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94475</guid><dc:creator><![CDATA[fribse]]></dc:creator><pubDate>Mon, 13 Sep 2021 21:00:26 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Mon, 13 Sep 2021 20:48:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fribse" aria-label="Profile: fribse">@<bdi>fribse</bdi></a> there is no simple way…</p>
<p dir="auto">do you get an error from trying to post the message?</p>
<p dir="auto">if so, I would check and loop and sleep a little, then try again</p>
]]></description><link>https://forum.magicmirror.builders/post/94473</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94473</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 13 Sep 2021 20:48:57 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Mon, 13 Sep 2021 20:43:30 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> Ok, yes, I used your script.</p>
<p dir="auto">So it just says</p>
<pre><code># This file is still here to keep PM2 working on older installations.
cd ~/MagicMirror
DISPLAY=:0 npm start
</code></pre>
<p dir="auto">So I guess that just launches it, but it’s not actually ready at that point, thus the MMM-MQTTbridge is also not ready to receive the ‘hdmi off’ command.<br />
Aren’t there some sort of notification that says ‘done, ready for running’ when it starts, I could put that notification in the MMM-MQTTbridge so that would also launch the ‘SCREENON’ back to MQTT.</p>
]]></description><link>https://forum.magicmirror.builders/post/94472</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94472</guid><dc:creator><![CDATA[fribse]]></dc:creator><pubDate>Mon, 13 Sep 2021 20:43:30 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Sat, 11 Sep 2021 23:44:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fribse" aria-label="Profile: fribse">@<bdi>fribse</bdi></a> how do u start mm?  pm2?</p>
<p dir="auto">if so it runs the installers/mm.sh</p>
<p dir="auto">pm2 info xx<br />
where xx is the name or number of the pm2 entry shown by pm2 status<br />
will show u the command used to start mm</p>
<p dir="auto">if you used my install script and selected pm2,<br />
then the script is<br />
~/MagicMirror/installers/mm.sh</p>
]]></description><link>https://forum.magicmirror.builders/post/94412</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94412</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 11 Sep 2021 23:44:56 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Sat, 11 Sep 2021 21:53:19 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> Ok, I found the mosqitto_pub command, so I can publish with that to MQTT, which startup script is it, and can I make sure it’s done loading before running the command?</p>
]]></description><link>https://forum.magicmirror.builders/post/94410</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94410</guid><dc:creator><![CDATA[fribse]]></dc:creator><pubDate>Sat, 11 Sep 2021 21:53:19 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Sat, 11 Sep 2021 19:58:34 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> Not sure how to do that to the MQTT channel, but can I send a notification when it’s started up? That would be picked up by the MQTT mirror addon?</p>
]]></description><link>https://forum.magicmirror.builders/post/94407</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94407</guid><dc:creator><![CDATA[fribse]]></dc:creator><pubDate>Sat, 11 Sep 2021 19:58:34 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror isn&#x27;t publishing &#x27;user_presence&#x27; on start up? on Fri, 10 Sep 2021 15:04:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fribse" aria-label="Profile: fribse">@<bdi>fribse</bdi></a> that’s because it’s not a change. typically the code doesn’t inspect the state, just sets it</p>
<p dir="auto">so it doesn’t know it was off,  and user_presence is different anyhow.</p>
<p dir="auto">if u can use curl to post a message to the mq channel, then add a line to the startup script to send the user presence notification</p>
]]></description><link>https://forum.magicmirror.builders/post/94331</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94331</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 10 Sep 2021 15:04:03 GMT</pubDate></item></channel></rss>