<?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[Get user input]]></title><description><![CDATA[<p dir="auto">Hi, I’m still pretty new in this node.js topic, but I’m really interesting in adding some modules.<br />
I’m struggling to get user input base on a button in the front-end (not physical button) but I cannot find the solution.<br />
I tried with:</p>
<pre><code>// create the server
	listen: function() {
		this.expressApp.get('/Button1', function (req, res) {
			sendSocketNotification('BUTTON1', 'Hello world');
			//res.send('Stop signal sent!');
		});
	},
</code></pre>
<p dir="auto">But I got a:<br />
<code>ReferenceError: sendSocketNotification is not defined</code><br />
or with <code>this.sendSocketNotification</code> I got:<br />
<code>TypeError: this.sendSocketNotification is not a function</code></p>
<p dir="auto">Is there any way to get the user input?</p>
<p dir="auto">Thanks!</p>
<hr />
<p dir="auto"><strong>Note from admin:</strong> Please use <a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code" target="_blank" rel="noopener noreferrer nofollow ugc">Markdown</a> on code snippets for easier reading!</p>
]]></description><link>https://forum.magicmirror.builders/topic/522/get-user-input</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Mar 2026 17:34:32 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/522.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 Aug 2016 00:31:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Get user input on Sat, 20 Aug 2016 12:08:00 GMT]]></title><description><![CDATA[<p dir="auto">Great it worked!!! My mistake was that I was creating the app after a notification and not at the start of my module!<br />
Thanks a lot!</p>
]]></description><link>https://forum.magicmirror.builders/post/3839</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/3839</guid><dc:creator><![CDATA[veryaner]]></dc:creator><pubDate>Sat, 20 Aug 2016 12:08:00 GMT</pubDate></item><item><title><![CDATA[Reply to Get user input on Sat, 20 Aug 2016 08:39:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veryaner" aria-label="Profile: veryaner">@<bdi>veryaner</bdi></a> if you want you can have a look in my Module, i did a similar approach, this might get you started.</p>
<p dir="auto">[card:fewieden/MMM-syslog]</p>
]]></description><link>https://forum.magicmirror.builders/post/3835</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/3835</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Sat, 20 Aug 2016 08:39:44 GMT</pubDate></item></channel></rss>