<?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[How to configure MMM-Buttons to start/stop MMM-Podcast2]]></title><description><![CDATA[<p dir="auto">Hi there!<br />
I’ve been lurking here for quite some time and found many helpful hints, while I’m building my first MagicMirror. Thanks for that to all!</p>
<p dir="auto">What do I want to accomplish?<br />
I have following modules installed, which all run without problems:</p>
<ul>
<li>MMM-Remote-Control</li>
<li>MMM-Podcast2 (which starts the “tagesschau in 100 min.” video stream</li>
<li>MMM-PIR-Sensor (to switch my monitor on and off)</li>
</ul>
<p dir="auto">Currently, I can start/stop the video stream when I enter <a href="http://myIP:8080/remote?action=NOTIFICATION&amp;notification=BUTTON_PRESSED" target="_blank" rel="noopener noreferrer nofollow ugc">http://myIP:8080/remote?action=NOTIFICATION&amp;notification=BUTTON_PRESSED</a> in a browser.</p>
<p dir="auto">Now I want to accomplish following user stories:<br />
Story 1:<br />
Press shortly a physical push-button on pin 27 to start/stop the video stream.<br />
This button is also a combined restart/shutdown button.<br />
Press &gt; 2 sec --&gt; Reboot<br />
Press &gt; 5 sec --&gt; Shutdown<br />
I am using this simple <a href="https://github.com/scruss/shutdown_button" target="_blank" rel="noopener noreferrer nofollow ugc">service</a>.<br />
Now I want to use the same button to start/stop the video stream, when I push it for less than 2 secs.</p>
<p dir="auto">Story 2:<br />
When the PIR sensor detects motion and switches on the monitor, the video stream should start, too. Stopinfg the video by pressing shortly the physical push-button (see Story 1)</p>
<p dir="auto">I’ve installed MMM-Buttons, but I can’t find the right configuration of the MMM-Buttons module to at least start/stop the video.<br />
What is the correct payload and notification I have to use?</p>
<p dir="auto">I hope that some could give the hint into the right direction.</p>
<p dir="auto">Thanks in advance,<br />
Fozi</p>
]]></description><link>https://forum.magicmirror.builders/topic/11508/how-to-configure-mmm-buttons-to-start-stop-mmm-podcast2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 07:23:36 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/11508.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Nov 2019 14:52:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to configure MMM-Buttons to start/stop MMM-Podcast2 on Thu, 07 Nov 2019 19:32:41 GMT]]></title><description><![CDATA[<p dir="auto">Alright, I found the solution myself, at least how to trigger play/stop with a push-button:</p>
<ol>
<li>
<p dir="auto">I wasn’t aware that connecting GND and a GPIO Pin like BCM 27 will not trigger reliably anything as the status is floating, Thus a pull-down resistor is required to get a defined high status. Check this really comprehensive write-up:<br />
<a href="https://grantwinney.com/using-pullup-and-pulldown-resistors-on-the-raspberry-pi/" target="_blank" rel="noopener noreferrer nofollow ugc">link text</a>.<br />
So I added a resistor as gescribed, e.g. here:<br />
<a href="https://grantwinney.com/using-pullup-and-pulldown-resistors-on-the-raspberry-pi/" target="_blank" rel="noopener noreferrer nofollow ugc">in chapter 4.2</a>.</p>
</li>
<li>
<p dir="auto">Then I configures the MMM-Buttons module that way:</p>
</li>
</ol>
<pre><code>{
	module: 'MMM-Buttons',
		config: {
 		buttons: [
 		{
  		pin: 27,
 		name: "podcast",
		shortPress: {
		notification: "BUTTON_PRESSED",
		
		},
		
           }
        ]
    }
},
</code></pre>
<p dir="auto">That’s it!</p>
<p dir="auto">When I now push the button the video stream start shortly after playing, and when I push again, it stops.</p>
<p dir="auto">The one thing I’m still trying to accomplish is that the PIR-sensor (AM312) on pin 4 triggers the video to start.</p>
<p dir="auto">I home this helps some of you, when you come by.</p>
<p dir="auto">Cheers,<br />
Fozi</p>
]]></description><link>https://forum.magicmirror.builders/post/63997</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/63997</guid><dc:creator><![CDATA[Fozi]]></dc:creator><pubDate>Thu, 07 Nov 2019 19:32:41 GMT</pubDate></item></channel></rss>