<?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[Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer]]></title><description><![CDATA[<p dir="auto">Hello all,</p>
<p dir="auto">I am working with the MMM-Buttons module to connect a push button to GPIO pin 25 (physical pin: 22) and have it start the stopwatch by notification. I tested my button using my terminal and found that it was connected fine, but when I set the configurations it does not do anything :(. Any help is much appreciated!</p>
<p dir="auto">Below is all I have modified.</p>
<p dir="auto">By the way, after major googling I found that the module uploaded by SmartMirror was buggy so I replaced it with this repository: <a href="https://github.com/sdetweil/MMM-Buttons" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MMM-Buttons</a>.</p>
<p dir="auto">config.js file:</p>
<pre><code>},
		{
			module: "MMM-StopwatchTimer",
			config: {
				animation: true,
				sound: true,
				soundFile: 'buzz.wav',
				useNativeSound: true,
				useAlertStyle: true,
				//notification: ["START_STOPWATCH", "PAUSE_STOPWATCHTIMER"]			
			}
				
		},
		{
		    	module: 'MMM-Buttons',
			position: "middle_center",
		    	config: {
				buttons: [
			    	{
					pin: 25,
					name: "test_button",
					longPress: {
					notification: "PAUSE_STOPWATCHTIMER",
				    	payload: {action: "PAUSE_STOPWATCHTIMER"}
				},
					shortPress: {
				    	notification: "START_STOPWATCH",
				    	payload: {action: "START_STOPWATCH"}
					}
			    	}
			    	
				]
		    	}
		}
</code></pre>
<p dir="auto">buttons.js file:</p>
<pre><code>Module.register("MMM-Buttons", {

    requiresVersion: "2.1.0",

    // Default module config.
    defaults: {
        buttons: [
			    	{
					pin: 25,
					name: "test_button",
					longPress: {
					notification: "PAUSE_STOPWATCHTIMER",
				    	payload: {action: "PAUSE_STOPWATCHTIMER"}
				},
					shortPress: {
				    	notification: "START_STOPWATCH",
				    	payload: {action: "START_STOPWATCH"}
					}
			    	}
			    	
				],
        minShortPressTime: 0,
        maxShortPressTime: 500,
        minLongPressTime: 3000,
        bounceTimeout: 300
    },```</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/18640/push-button-mmm-buttons-does-not-send-out-notification-to-mmm-stopwatchtimer</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 20:41:54 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18640.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 09 Apr 2024 05:27:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer on Wed, 17 Apr 2024 20:29:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/changaud" aria-label="Profile: changaud">@<bdi>changaud</bdi></a> i do  not know.</p>
<p dir="auto">the error is that the pin is in read (input) mode, not write (output) mode.</p>
<p dir="auto">i dont understand the change. on pi5 there is a change, but not pi4</p>
<p dir="auto">my version of  buttons only fixes install</p>
]]></description><link>https://forum.magicmirror.builders/post/116903</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116903</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 17 Apr 2024 20:29:55 GMT</pubDate></item><item><title><![CDATA[Reply to Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer on Wed, 10 Apr 2024 02:17:35 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> No it does not :( Do the errors possibly have something to do with it? I noticed the errors start to happen after the button is initialized. Also, do I have to have version 2.1.0 or is my current version (most updated) fine?</p>
]]></description><link>https://forum.magicmirror.builders/post/116900</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116900</guid><dc:creator><![CDATA[changaud]]></dc:creator><pubDate>Wed, 10 Apr 2024 02:17:35 GMT</pubDate></item><item><title><![CDATA[Reply to Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer on Tue, 09 Apr 2024 21:06:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/changaud" aria-label="Profile: changaud">@<bdi>changaud</bdi></a> if you run your test script before launching mm does it work?</p>
<p dir="auto">see this<br />
<a href="https://github.com/Jopyth/MMM-Buttons/issues/20" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Jopyth/MMM-Buttons/issues/20</a></p>
]]></description><link>https://forum.magicmirror.builders/post/116896</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116896</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 09 Apr 2024 21:06:42 GMT</pubDate></item><item><title><![CDATA[Reply to Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer on Tue, 09 Apr 2024 21:04:08 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> This is a pi4 model b.</p>
]]></description><link>https://forum.magicmirror.builders/post/116897</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116897</guid><dc:creator><![CDATA[changaud]]></dc:creator><pubDate>Tue, 09 Apr 2024 21:04:08 GMT</pubDate></item><item><title><![CDATA[Reply to Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer on Tue, 09 Apr 2024 21:00:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/changaud" aria-label="Profile: changaud">@<bdi>changaud</bdi></a> said in <a href="/post/116894">Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Yes so weird and frustrating T^T… Here is a picture of my setup. In addition, sometimes I get the error (this image is also in the google drive) and sometimes I don’t. I think it goes away after I delete and reclone the buttons repository. <a href="https://drive.google.com/drive/folders/1y_QLDCuhfv9XELST0u2hwxTB4f3Fp4h9?usp=drive_link" target="_blank" rel="noopener noreferrer nofollow ugc">https://drive.google.com/drive/folders/1y_QLDCuhfv9XELST0u2hwxTB4f3Fp4h9?usp=drive_link</a></p>
</blockquote>
<p dir="auto">is this a pi5?</p>
]]></description><link>https://forum.magicmirror.builders/post/116895</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116895</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 09 Apr 2024 21:00:26 GMT</pubDate></item><item><title><![CDATA[Reply to Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer on Tue, 09 Apr 2024 20:36:01 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> Yes so weird and frustrating T^T… Here is a picture of my setup. In addition, sometimes I get the error (this image is also in the google drive) and sometimes I don’t. I think it goes away after I delete and reclone the buttons repository. <a href="https://drive.google.com/drive/folders/1y_QLDCuhfv9XELST0u2hwxTB4f3Fp4h9?usp=drive_link" target="_blank" rel="noopener noreferrer nofollow ugc">https://drive.google.com/drive/folders/1y_QLDCuhfv9XELST0u2hwxTB4f3Fp4h9?usp=drive_link</a></p>
]]></description><link>https://forum.magicmirror.builders/post/116894</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116894</guid><dc:creator><![CDATA[changaud]]></dc:creator><pubDate>Tue, 09 Apr 2024 20:36:01 GMT</pubDate></item><item><title><![CDATA[Reply to Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer on Tue, 09 Apr 2024 20:26:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/changaud" aria-label="Profile: changaud">@<bdi>changaud</bdi></a> said in <a href="/post/116891">Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer</a>:</p>
<blockquote>
<p dir="auto">Also, I have it connected to the physical button 22 which translates to GPIO 25 so I wrote 25 down in the configuration file</p>
</blockquote>
<p dir="auto">it was just a question…  many starting users don’t know about the different numbering</p>
<p dir="auto">so, when u push the button, outside magic mirror it works…</p>
]]></description><link>https://forum.magicmirror.builders/post/116893</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116893</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 09 Apr 2024 20:26:06 GMT</pubDate></item><item><title><![CDATA[Reply to Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer on Tue, 09 Apr 2024 20:24:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/changaud" aria-label="Profile: changaud">@<bdi>changaud</bdi></a> said in <a href="/post/116891">Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer</a>:</p>
<blockquote>
<p dir="auto">but do I just leave the button configuration in the buttons module blank then</p>
</blockquote>
<p dir="auto">you already put it in the config.js  file</p>
<pre><code>{
		    	module: 'MMM-Buttons',
			position: "middle_center",
		    	config: {
				buttons: [
			    	{
					pin: 25,
					name: "test_button",
					longPress: {
					notification: "PAUSE_STOPWATCHTIMER",
				    	payload: {action: "PAUSE_STOPWATCHTIMER"}
				},
					shortPress: {
				    	notification: "START_STOPWATCH",
				    	payload: {action: "START_STOPWATCH"}
					}
			    	}
			    	
				]
		    	}
		}
</code></pre>
<p dir="auto">config overrides whatever is defined in the source file defaults section</p>
]]></description><link>https://forum.magicmirror.builders/post/116892</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116892</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 09 Apr 2024 20:24:45 GMT</pubDate></item><item><title><![CDATA[Reply to Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer on Tue, 09 Apr 2024 20:10:58 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> Thank you for your response! I will keep that in mind, but do I just leave the button configuration in the buttons module blank then? Also, I have it connected to the physical button 22 which translates to GPIO 25 so I wrote 25 down in the configuration file.</p>
]]></description><link>https://forum.magicmirror.builders/post/116891</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116891</guid><dc:creator><![CDATA[changaud]]></dc:creator><pubDate>Tue, 09 Apr 2024 20:10:58 GMT</pubDate></item><item><title><![CDATA[Reply to Push button (MMM-Buttons) does not send out notification to MMM-StopwatchTimer on Tue, 09 Apr 2024 12:30:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/changaud" aria-label="Profile: changaud">@<bdi>changaud</bdi></a> 1st, never edit a modules source file. all config goes in config.js</p>
<p dir="auto">did you use the right pin number<br />
?<img src="/assets/uploads/files/1712665795897-1000025553.jpg" alt="1000025553.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/116875</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116875</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 09 Apr 2024 12:30:09 GMT</pubDate></item></channel></rss>