<?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 sensor+WS2812b  and MM CONFIG RESET button]]></title><description><![CDATA[<p dir="auto">This app was made to add some kind functionality to Magicmirrors run on RPis.</p>
<p dir="auto">App allows you to:</p>
<ul>
<li>control LED strip by sensor and also</li>
<li>rreset MagicMirror’s config.js file with a hardware button connected to Raspberry (so config should be set to default values). The operation will be confirmed by three red light blinks.<br />
Here is short video  (press on pic)<br />
<a href="https://www.youtube.com/embed/HbP5DRqUqzo" title="Raspberry Pi 3 B+" target="_blank" rel="noopener noreferrer nofollow ugc"><img src="https://i.ibb.co/2tQq8mw/Annotation-2019-10-26-200622.jpg" alt="Raspberry" class=" img-fluid img-markdown" /></a></li>
</ul>
<h4>Installation</h4>
<ol>
<li>Download and install the latest <em>ws2812b library</em> to your Raspberry:</li>
</ol>
<ul>
<li><code>sudo pip install rpi-ws281x</code></li>
</ul>
<ol start="2">
<li>Clone the repository : <code>git clone https://github.com/sergge1/MMM-senorled</code></li>
<li>Enter the repository: <code>cd MMM-senorled/</code></li>
<li>Edit parameters in configuration section of the *.py file: numbers of LED and GPIO pins<br />
5 Run the app with: <code>sudo python sensorbtnled.py</code></li>
</ol>
<h4>Hardware used:</h4>
<p dir="auto">LED strip WS2812b <a href="https://www.aliexpress.com/item/32820628563.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.aliexpress.com/item/32820628563.html</a></p>
<p dir="auto">Buttons <a href="https://www.aliexpress.com/item/33060639491.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.aliexpress.com/item/33060639491.html</a></p>
<p dir="auto">Movement sensor RCWL-0516 <a href="https://www.aliexpress.com/item/32816228153.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.aliexpress.com/item/32816228153.html</a></p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th><strong>Option</strong></th>
<th><strong>Description</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>SHUTOFF_DELAY</code></td>
<td>Delay in seconds for sensor state change, e,g, how long the LED will light after no movement detected. The default value is <code>5</code>.</td>
</tr>
<tr>
<td><code>PIR_PIN</code></td>
<td>GPIO pin number to which the sensor is connected. The default value is <code>11</code>.</td>
</tr>
<tr>
<td><code>LED_COUNT</code></td>
<td>Number of LEDs connected to the strip. The default value is <code>160</code>.</td>
</tr>
<tr>
<td><code>LED_PIN </code></td>
<td>GPIO pin number to which the LED data line is connected. The default value is <code>21</code></td>
</tr>
<tr>
<td><code>LED_BRIGHTNESS</code></td>
<td>Britness of LED lights. 0 is no light, 255 is the maximum brightness. The default value is <code>255</code>.</td>
</tr>
<tr>
<td><code>copy []</code></td>
<td>set of files which should be rewritten. The default value is <code>['/home/pi/MagicMirror/config/config.js.sample', '/home/pi/MagicMirror/config/config.js.sample']</code>.</td>
</tr>
<tr>
<td><code>writePin </code></td>
<td>GPIO pin to which hardware button is conected (Other button pin is connected to any GND. The default value is <code>3</code>.</td>
</tr>
</tbody>
</table>
<p dir="auto">and here is description and GIT<br />
[card:sergge1/MMM-senorled]</p>
<p dir="auto">Any ideas and comments are appreciated.<br />
As well as your direct pull requests to the project on the github page.</p>
]]></description><link>https://forum.magicmirror.builders/topic/11453/mmm-sensor-ws2812b-and-mm-config-reset-button</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 01:10:55 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/11453.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Oct 2019 17:33:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM sensor+WS2812b  and MM CONFIG RESET button on Thu, 18 Mar 2021 18:24:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bouba830" aria-label="Profile: bouba830">@<bdi>bouba830</bdi></a> ok, I see…</p>
<p dir="auto"><a href="https://github.com/sergge1/MMM-senorled" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sergge1/MMM-senorled</a> is no longer available</p>
<p dir="auto">looks like it has been withdrawn</p>
]]></description><link>https://forum.magicmirror.builders/post/89648</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/89648</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 18 Mar 2021 18:24:01 GMT</pubDate></item><item><title><![CDATA[Reply to MMM sensor+WS2812b  and MM CONFIG RESET button on Thu, 18 Mar 2021 17:10:39 GMT]]></title><description><![CDATA[<p dir="auto">hello, I no longer have access to the installation of your module, do you know why?<br />
thank you</p>
]]></description><link>https://forum.magicmirror.builders/post/89646</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/89646</guid><dc:creator><![CDATA[Bouba830]]></dc:creator><pubDate>Thu, 18 Mar 2021 17:10:39 GMT</pubDate></item><item><title><![CDATA[Reply to MMM sensor+WS2812b  and MM CONFIG RESET button on Wed, 01 Apr 2020 12:22:09 GMT]]></title><description><![CDATA[<p dir="auto">Hello, I am very interested in your project, I would like to know if it is possible to have more details, I am a beginner 😁.<br />
Is it possible to know the connection?<br />
Is the switch just a push button or a stop market button?<br />
thank you so much<br />
I love what you did.</p>
]]></description><link>https://forum.magicmirror.builders/post/71513</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/71513</guid><dc:creator><![CDATA[Bouba830]]></dc:creator><pubDate>Wed, 01 Apr 2020 12:22:09 GMT</pubDate></item></channel></rss>