<?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[MMM-Facial-Recognition cannot sendSocketNotification()]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I’m trying to get the troubleshoot the MMM-Facial-Recognition module, and I have narrowed it down to the node_helper not being able to sendSocketNotification().</p>
<p dir="auto">I added a line to socketNotifcationRecieved() within the node_helper.js file to test this.</p>
<pre><code>  // Subclass socketNotificationReceived received.
  socketNotificationReceived: function(notification, payload) {
    if(notification === 'CONFIG') {
      this.config = payload
      if(!pythonStarted) {
        pythonStarted = true;
// I ADDED THE FOLLOWING LINE:
        this.sendSocketNotification("Test", "sendSocketNotification to module");
        this.python_start();
        };
    };
  },
</code></pre>
<p dir="auto">and then I also added a console.log to the MMM-Facial-Recognition.js to print out any received socket Notifications.</p>
<pre><code class="language-//">	socketNotificationReceived: function(notification, payload) {

		//For testing purposes
		console.log(notification)
</code></pre>
<p dir="auto">However, nothing prints out in the console.</p>
<hr />
<p dir="auto">I am troubleshooting this, because even though the module recognizes my face and logs me in, no alert comes up on the mirror and none of the modules update.</p>
<p dir="auto">Note: The module itself is able to sendSocketNotification to the node_helper because the python_shell does start and the recognition python script runs with the correct configuration.</p>
<p dir="auto">Thank you in advance for your help.</p>
]]></description><link>https://forum.magicmirror.builders/topic/1560/mmm-facial-recognition-cannot-sendsocketnotification</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 04:20:50 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/1560.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Jan 2017 18:53:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-Facial-Recognition cannot sendSocketNotification() on Tue, 31 Jan 2017 22:02:49 GMT]]></title><description><![CDATA[<p dir="auto">UPDATE: This, like some other issues I was running into was actually caused by the application freezing when it could not load ‘css/custom.css’.</p>
<p dir="auto">This is because the .gitignore does not track custom.css and I, like many others, edit my code on my desktop and then push the changes via git to my RPi.</p>
]]></description><link>https://forum.magicmirror.builders/post/13208</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/13208</guid><dc:creator><![CDATA[stanchan]]></dc:creator><pubDate>Tue, 31 Jan 2017 22:02:49 GMT</pubDate></item></channel></rss>