<?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[My First Mirror... until now ^^]]></title><description><![CDATA[<p dir="auto">Hey all,</p>
<p dir="auto">first i want to say, that this is a great community and it makes fun to be a part of it.</p>
<p dir="auto">Since i decided to build a MagicMirror i was more and more interested what you can do with it. So now i want to show you my first exemplar. At least one more is in planning.</p>
<p dir="auto">The original plan was to install the mirror, so that you can only see the front frame. I had to postpone that later. That’s why he’s hanging on the wall now.</p>
<p dir="auto">I build the frame with wood, but i put some acrylic glass on the front and on the sides.<br />
I drilled a hole in the middle for the PIR.<br />
In addition, speakers are installed, but are not yet in operation (I still explore the applications / modules and think about what I still want to process)</p>
<p dir="auto">Fun fact: Because the PIR always detected the movement of my dog i put some clear nail polish on the lower half of the PIR :) Works great.</p>
<p dir="auto">I just used <a href="https://www.amazon.de/Salcar-Transformator-Netzteil-Lichtband-Monitor/dp/B00KMRYLF6/ref=sr_1_1_sspa?s=ce-de&amp;ie=UTF8&amp;qid=1514835408&amp;sr=1-1-spons&amp;keywords=12v+5a&amp;psc=1" target="_blank" rel="noopener noreferrer nofollow ugc">one 12V / 5A power supply</a>. The 12V is used for the 23" Monitor and the LED Stripe. For the rPi i used a <a href="https://www.amazon.de/LM2596-Converter-0-40V-5-35V-Stromversorgung/dp/B01GJ0SC2C/ref=pd_lpo_vtph_107_bs_t_1?_encoding=UTF8&amp;psc=1&amp;refRID=SGBEDD8BNWSJQ7439R3C" target="_blank" rel="noopener noreferrer nofollow ugc">Step Down Converter</a> and put it to 5.1V</p>
<p dir="auto">Next time i hang the mirror up, i will take some pics from behind ;)</p>
<p dir="auto">Installed modules:</p>
<p dir="auto">calendar_monthly<br />
MMM-EasyPix (for Wifi-QR-Code)<br />
MMM-GoogleMapsTraffic<br />
MMM-MyCalendar<br />
MMM-PIR-Sensor<br />
MMM-MyCommute<br />
MMM-NOAA<br />
MMM-Scrobbler<br />
MMM-Remote-Control<br />
MMM-Remote-Control-Repository<br />
MMM-SystemStats<br />
MMM-Watchdog<br />
MMM-Wunderlist<br />
MMM-internet-monitor (not visible)</p>
<p dir="auto">I also have a <a href="http://alexba.in/blog/2015/01/14/automatically-reconnecting-wifi-on-a-raspberrypi/" target="_blank" rel="noopener noreferrer nofollow ugc">wifi watchdog</a> installed because my wifi connection sometimes breaks off.<br />
It automatically turn the wifi controller off and on again, when the pi can’t ping my router.</p>
<p dir="auto">I found the LED Stripe somewhere in my house. It is a RGB Stripe 5050.<br />
Since there is no Module for this Stripe i used some mosfet’s and an <a href="https://dordnung.de/raspberrypi-ledstrip/" target="_blank" rel="noopener noreferrer nofollow ugc">external Application</a> and wrote a script to turn it slowly on and off when movement is detected by the PIR.</p>
<p dir="auto">For the Wifi-QR code i used <a target="_blank" rel="noopener noreferrer nofollow ugc">this guide</a> and let the picture show via MMM-EasyPix (thanks to <a class="plugin-mentions-user plugin-mentions-a" href="/user/mykle1" aria-label="Profile: mykle1">@<bdi>mykle1</bdi></a> ;) ).</p>
<p dir="auto">For the background image i used the custom.css</p>
<p dir="auto">Hope you enjoy :)</p>
<p dir="auto"><a href="https://youtu.be/DHIKPTTG0q4" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/DHIKPTTG0q4</a></p>
<p dir="auto"><img src="/assets/uploads/files/1514833165788-img_2072jpg.jpg" alt="0_1514833163710_IMG_2072JPG.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1514833182797-img_2073jpg.jpg" alt="0_1514833178666_IMG_2073JPG.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1514833199893-img_2068jpg.jpg" alt="0_1514833197194_IMG_2068JPG.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1514833217487-img_2064jpg.jpg" alt="0_1514833215032_IMG_2064JPG.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1514833241964-img_2071jpg.jpg" alt="0_1514833239937_IMG_2071JPG.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/topic/6048/my-first-mirror-until-now</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 03:35:08 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/6048.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Jan 2018 19:03:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Sat, 21 Dec 2019 08:54:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/blackeaglece" aria-label="Profile: blackeaglece">@<bdi>blackeaglece</bdi></a> said in <a href="/post/66115">My First Mirror... until now ^^</a>:</p>
<blockquote>
<p dir="auto">I have your own PIR, could you give me a hand, help me? Thank you very much</p>
</blockquote>
<p dir="auto"><a href="https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app?page=1">https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app?page=1</a></p>
<p dir="auto">;)<br />
Try to find a solution in this post. Otherwise ask again, if you need more help :)<br />
And Merry X-Mas</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kusselin" aria-label="Profile: kusselin">@<bdi>kusselin</bdi></a> said in <a href="/post/66066">My First Mirror... until now ^^</a>:</p>
<blockquote>
<p dir="auto">Hi, can you post the Wallpapers here please</p>
</blockquote>
<p dir="auto">Sorry, but i don’t have them anymore :(</p>
]]></description><link>https://forum.magicmirror.builders/post/66336</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/66336</guid><dc:creator><![CDATA[cruunnerr]]></dc:creator><pubDate>Sat, 21 Dec 2019 08:54:14 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Tue, 17 Dec 2019 09:24:55 GMT]]></title><description><![CDATA[<p dir="auto">Hello and congratulations. Very beautiful. I also intend to do something like this but without LEDs and audio … unfortunately I stopped on the operation of the PIR. I have a smart tv lg with HDMI / cec I followed all the tutorials but I can’t make it work! every time MM has to restart, the screen turns black and I can’t even access the raspbian to make changes and I have to format it again! :-( I have your own PIR, could you give me a hand, help me? Thank you very much</p>
]]></description><link>https://forum.magicmirror.builders/post/66115</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/66115</guid><dc:creator><![CDATA[blackeaglece]]></dc:creator><pubDate>Tue, 17 Dec 2019 09:24:55 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Mon, 16 Dec 2019 14:55:20 GMT]]></title><description><![CDATA[<p dir="auto">Hi, can you post the Wallpapers here please</p>
]]></description><link>https://forum.magicmirror.builders/post/66066</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/66066</guid><dc:creator><![CDATA[kusselin]]></dc:creator><pubDate>Mon, 16 Dec 2019 14:55:20 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Fri, 08 Nov 2019 13:18:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cruunnerr" aria-label="Profile: cruunnerr">@<bdi>cruunnerr</bdi></a> My PIR doesn’t trigger or do anything. When I try to execute python script below is the error message.</p>
<p dir="auto"><img src="https://i.imgur.com/PFktAEC.png" alt="Error Message" class=" img-fluid img-markdown" /></p>
<p dir="auto">All of sudden my monitor started going to sleep so I made below changes,</p>
<pre><code>sudo nano /etc/lightdm/lightdm.conf
</code></pre>
<p dir="auto">Add the following lines to the [SeatDefaults] section:</p>
<pre><code>xserver-command=X -s 0 dpms
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/64022</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/64022</guid><dc:creator><![CDATA[Newbie007]]></dc:creator><pubDate>Fri, 08 Nov 2019 13:18:15 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Sat, 14 Sep 2019 05:30:28 GMT]]></title><description><![CDATA[<p dir="auto">Meanwhile i changed my background but cannot find the girl-wallpaper. Sorry bro :(</p>
<p dir="auto">Here is my whole css</p>
<pre><code>/*****************************************************
 * Magic Mirror                                      *
 * Custom CSS                                        *
 *                                                   *
 * By Michael Teeuw http://michaelteeuw.nl           *
 * MIT Licensed.                                     *
 *                                                   *
 * Add any custom CSS below.                         *
 * Changes to this files will be ignored by GIT. *
 *****************************************************/

 body {
	background-image: url("background2.jpg");
	background-size: cover;
	margin-left: 0px;
	margin-right: 30px;
	margin-top: 15px;
	margin-bottom: 15px;
  	position: absolute;
  	height: calc(100% - 28px);
  	width: calc(100% - 22px);
}
.MMM-SystemStats  {
        color: #CEF6CE;
        } 
.MMM-MyCalendar {
  max-width: 300px;
}
.MMM-MovieListings {
  max-width: 400px;
}
.left header {
    border-bottom: none; /* instead of 1px solid #666; to remove all lines from all the headers */
    width: 70%;          /* add this to change the width of all module headers */
}
.right header {
    border-bottom: none; /* instead of 1px solid #666; to remove all lines from all the headers */
    width: 70%;          /* add this to change the width of all module headers */
}
.newsfeed .small{
  color: #FFFFFF;
}
.newsfeed .medium{
  color: #D8D8D8;
}
.newsfeed {
 max-width: 280px;
}
.region.top.right {
 max-width: 330px;
}
.MMM-ioBroker {
 width: 550px;
 zoom: 75%;
}

</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/61272</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61272</guid><dc:creator><![CDATA[cruunnerr]]></dc:creator><pubDate>Sat, 14 Sep 2019 05:30:28 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Thu, 12 Sep 2019 17:11:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cruunnerr" aria-label="Profile: cruunnerr">@<bdi>cruunnerr</bdi></a> Hi, Can you show me your css of Newsfeed, I am interested in make it smaller (width) like on your mirror…<br />
thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/61190</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61190</guid><dc:creator><![CDATA[Stoffbeuteluwe]]></dc:creator><pubDate>Thu, 12 Sep 2019 17:11:18 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Thu, 12 Sep 2019 14:23:14 GMT]]></title><description><![CDATA[<p dir="auto">I like the background picture (the girl). Does anyone know where to find that one?</p>
]]></description><link>https://forum.magicmirror.builders/post/61189</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61189</guid><dc:creator><![CDATA[andyyy]]></dc:creator><pubDate>Thu, 12 Sep 2019 14:23:14 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Fri, 30 Aug 2019 23:30:03 GMT]]></title><description><![CDATA[<p dir="auto">The mirror looks amazing and I’ve been able to glean some inspiration. Thanks for posting!</p>
]]></description><link>https://forum.magicmirror.builders/post/60577</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/60577</guid><dc:creator><![CDATA[Fr8Trayne]]></dc:creator><pubDate>Fri, 30 Aug 2019 23:30:03 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Tue, 27 Aug 2019 07:17:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cruunnerr" aria-label="Profile: cruunnerr">@<bdi>cruunnerr</bdi></a>  hello sir,<br />
I have pir sensor &amp; relay. I followed exactly step 5.2 in your tutorial (<a href="https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app/2?page=1">https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app/2?page=1</a>).  but it doesn’t work for me.<br />
The relay is off but when there is movement through the sensor, the relay does not turn back on.  please help me.<br />
I’m sorry my English is not very good</p>
]]></description><link>https://forum.magicmirror.builders/post/60431</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/60431</guid><dc:creator><![CDATA[kennydio]]></dc:creator><pubDate>Tue, 27 Aug 2019 07:17:19 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Mon, 22 Apr 2019 08:45:17 GMT]]></title><description><![CDATA[<p dir="auto">Ja mach schon Spass…<br />
Wollte auch einen openhub installieren … auf einem raspi Zero… Mal schauen ob das was wird… Meine ESP usb serial programmer hardware kommt erst noch.<br />
Wollte die Temperaturwerte mit mmm-rest auslesen… Mal schauen… Ich danke dir jedenfalls für die tips</p>
]]></description><link>https://forum.magicmirror.builders/post/56286</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56286</guid><dc:creator><![CDATA[metalldetector]]></dc:creator><pubDate>Mon, 22 Apr 2019 08:45:17 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Mon, 22 Apr 2019 08:32:19 GMT]]></title><description><![CDATA[<p dir="auto">Blau und schwarz beschreibt nur die Farbe des Streifens selber (nicht der LED). Also für die Funktion egal.</p>
<p dir="auto">Naja, also die Temperaturen kommen von meinem IoBroker Server. Um ehrlich zu sein habe ich schon länger nicht mehr an meinem Spiegel gearbeitet, sondern andere Projekte gestartet und vollendet.<br />
Mein ganzes Haus ist mittlerweile steuerbar (Licht, Thermostate, Lautsprecher etc…). Unter anderem habe ich eben auch Temperatursensoren von Xiaomi im Einsatz, die ihre Werte an meinen Server schicken.<br />
Auf dem Spiegel zeige ich die Werte dann mit dem <a href="https://github.com/ioBroker/MMM-ioBroker" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-iobroker</a> Modul an.</p>
<p dir="auto">Aber ich habe auch viel mit ESP’s gemacht. Habe derzeit ca. 8 Stück im Einsatz. Einer steuert meine komplette Heizung. Einer steuert meine Klingel. Einer wertet meine Alarmanlage aus. Zwei sind für meinen Infinity Tisch… etc. pp… ^^<br />
Macht ziemlich viel Spaß</p>
<hr />
<p dir="auto">Blue and black only describes the color of the strip itself (not the LED). So no matter for the function.</p>
<p dir="auto">Well, so the temperatures come from my IoBroker server. To be honest, I have not worked on my mirror for some time, but started and completed other projects.<br />
My whole house is now controllable (lights, thermostats, speakers etc …). Among other things, I have also used temperature sensors from Xiaomi, which send their values to my server.<br />
On the mirror I then display the values with the [MMM-iobroker] (<a href="https://github.com/ioBroker/MMM-ioBroker" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ioBroker/MMM-ioBroker</a>) module.</p>
<p dir="auto">But I also did a lot of ESP’s. Currently have about 8 pieces in use. One controls my entire heater. One controls my bell. One evaluates my alarm system. Two are for my infinity table … etc. pp … ^^<br />
It’s a lot of fun</p>
]]></description><link>https://forum.magicmirror.builders/post/56285</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56285</guid><dc:creator><![CDATA[cruunnerr]]></dc:creator><pubDate>Mon, 22 Apr 2019 08:32:19 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Mon, 22 Apr 2019 07:56:52 GMT]]></title><description><![CDATA[<p dir="auto">Mensch… du sprichst bestimmt deutsch…<br />
Wie hast du die Temperatur Module angebunden?</p>
<p dir="auto">Etwa mit wlan esp’s ?</p>
]]></description><link>https://forum.magicmirror.builders/post/56281</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56281</guid><dc:creator><![CDATA[metalldetector]]></dc:creator><pubDate>Mon, 22 Apr 2019 07:56:52 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Mon, 22 Apr 2019 07:36:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cruunnerr" aria-label="Profile: cruunnerr">@<bdi>cruunnerr</bdi></a> very good deal.<br />
But what is the difference in the product options… blue or black pcm …</p>
]]></description><link>https://forum.magicmirror.builders/post/56280</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56280</guid><dc:creator><![CDATA[metalldetector]]></dc:creator><pubDate>Mon, 22 Apr 2019 07:36:19 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Mon, 22 Apr 2019 06:29:25 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://de.aliexpress.com/item/1m-2m-3m-4m-5m-ws2812b-ws2812-led-strip-individually-addressable-smart-led-strip-black-white/32682015405.html?spm=a2g0x.search0104.3.9.4eef3dc9EKAZdz&amp;ws_ab_test=searchweb0_0,searchweb201602_3_10065_10068_10547_319_317_10548_10696_10084_453_10083_454_10618_10304_10307_10820_10821_537_10302_536_10843_10059_10884_10887_321_322_10103,searchweb201603_6,ppcSwitch_0&amp;algo_expid=b24b32fc-d347-41f0-b20b-702e47e2d79c-1&amp;algo_pvid=b24b32fc-d347-41f0-b20b-702e47e2d79c&amp;transAbTest=ae803_3" target="_blank" rel="noopener noreferrer nofollow ugc">https://de.aliexpress.com/item/1m-2m-3m-4m-5m-ws2812b-ws2812-led-strip-individually-addressable-smart-led-strip-black-white/32682015405.html?spm=a2g0x.search0104.3.9.4eef3dc9EKAZdz&amp;ws_ab_test=searchweb0_0,searchweb201602_3_10065_10068_10547_319_317_10548_10696_10084_453_10083_454_10618_10304_10307_10820_10821_537_10302_536_10843_10059_10884_10887_321_322_10103,searchweb201603_6,ppcSwitch_0&amp;algo_expid=b24b32fc-d347-41f0-b20b-702e47e2d79c-1&amp;algo_pvid=b24b32fc-d347-41f0-b20b-702e47e2d79c&amp;transAbTest=ae803_3</a></p>
<p dir="auto">I have got this one. 5m with 60 LEDs per meter for about 17€</p>
]]></description><link>https://forum.magicmirror.builders/post/56279</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56279</guid><dc:creator><![CDATA[cruunnerr]]></dc:creator><pubDate>Mon, 22 Apr 2019 06:29:25 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Mon, 22 Apr 2019 06:25:50 GMT]]></title><description><![CDATA[<p dir="auto">Yes. But what is the difference between WS2812, WS2812, neopixel…<br />
What is the best stripe with a good price…<br />
I think a meter for 60 euro is to much…</p>
<p dir="auto">Greetings from Saxony, Germany</p>
]]></description><link>https://forum.magicmirror.builders/post/56278</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56278</guid><dc:creator><![CDATA[metalldetector]]></dc:creator><pubDate>Mon, 22 Apr 2019 06:25:50 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Sun, 21 Apr 2019 10:33:44 GMT]]></title><description><![CDATA[<p dir="auto">Well, if i had to do that project gain, i would not choose the RGB-5050 stripes again…</p>
<p dir="auto">I would directly get WS2812, because u just need one PWM Pin and with that you were able to do things like animations…</p>
<p dir="auto">In another project (infinity table) i choosed this one and was pretty amused :)</p>
<p dir="auto"><a href="https://youtu.be/IcDjzh03W-4" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/IcDjzh03W-4</a></p>
<iframe width="560" height="315" src="https://www.youtube.com/embed/IcDjzh03W-4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"></iframe>]]></description><link>https://forum.magicmirror.builders/post/56249</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56249</guid><dc:creator><![CDATA[cruunnerr]]></dc:creator><pubDate>Sun, 21 Apr 2019 10:33:44 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Sun, 21 Apr 2019 07:26:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cruunnerr" aria-label="Profile: cruunnerr">@<bdi>cruunnerr</bdi></a> ok I think this is the right way and I understand it with the led pin on Pin16<br />
… Just the flickering looks not good… I try a other power consumption…</p>
<p dir="auto">…can I only fade the LEDs or can I make a light like a animation around my mirror?</p>
<p dir="auto">Thanks for your help … And so fast.</p>
<p dir="auto">This is a good forum for me…</p>
<p dir="auto">Thx to all guys</p>
]]></description><link>https://forum.magicmirror.builders/post/56245</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56245</guid><dc:creator><![CDATA[metalldetector]]></dc:creator><pubDate>Sun, 21 Apr 2019 07:26:59 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Sun, 21 Apr 2019 07:08:29 GMT]]></title><description><![CDATA[<p dir="auto">LED-Pin just shows, if the PIR detects motion. You don’t need to use it.</p>
<p dir="auto">The <a href="http://pir.py" target="_blank" rel="noopener noreferrer nofollow ugc">pir.py</a> script starts the other shell scripts when motion is detected.</p>
<p dir="auto">So all commands for the RGB-Stripe are within the shell scripts (monitor_on / <a href="http://off.sh" target="_blank" rel="noopener noreferrer nofollow ugc">off.sh</a>).<br />
And as u can see, i used GPIO 17,22 and 24.<br />
17 = red<br />
22 = green<br />
24 = blue</p>
<p dir="auto">To control the LEDs i used PIGPIOD and it’s commands, as i wrote.</p>
<p dir="auto">So after installing PIGIOD u can start it with:<br />
<code>sudo pigpiod</code></p>
<p dir="auto">Commands like <code>pigs p 22 128</code> will set green to 50%.<br />
<code>pigs p 24 255</code> will set blue to 100%</p>
<p dir="auto">in the shell script i fade all colors from 1 to 12% with sleeps.</p>
<p dir="auto">Edit:</p>
<p dir="auto">As i wrote before u need to Autostart pigpiod via rc.local.</p>
<p dir="auto"><code>sudo nano /etc/rc.local</code></p>
<p dir="auto">Mine looks like this:</p>
<pre><code>#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

iwconfig wlan0 power off &amp;

sleep 5 &amp;

/usr/local/bin/pigpiod

sleep 10 &amp;

/usr/bin/python /home/pi/pir.py &amp;

exit 0
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/56244</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56244</guid><dc:creator><![CDATA[cruunnerr]]></dc:creator><pubDate>Sun, 21 Apr 2019 07:08:29 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Sun, 21 Apr 2019 06:49:17 GMT]]></title><description><![CDATA[<p dir="auto">@c:face_with_steam_from_nose: ruunnerr ok that works…<br />
-What ist the Funktion of LED_PIN = 16 .<br />
Only one pin …<br />
Do I need RGB pins in the script?</p>
<p dir="auto">-And then the led stripe start it’s flickering…<br />
Thx4yourhelp</p>
]]></description><link>https://forum.magicmirror.builders/post/56243</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56243</guid><dc:creator><![CDATA[metalldetector]]></dc:creator><pubDate>Sun, 21 Apr 2019 06:49:17 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Sun, 21 Apr 2019 05:32:02 GMT]]></title><description><![CDATA[<p dir="auto">Well, meanwhile i changed my background, but still love it  :P</p>
<p dir="auto"><img src="https://i.postimg.cc/0Qb3VDGD/screenshot-Magic-Mirror.png" alt="Bild Text" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/56240</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56240</guid><dc:creator><![CDATA[cruunnerr]]></dc:creator><pubDate>Sun, 21 Apr 2019 05:32:02 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Sat, 20 Apr 2019 20:48:26 GMT]]></title><description><![CDATA[<p dir="auto">If you told me that your background wasn’t a stock photo I would upvote this!  Nice work!</p>
]]></description><link>https://forum.magicmirror.builders/post/56225</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56225</guid><dc:creator><![CDATA[swvalenti]]></dc:creator><pubDate>Sat, 20 Apr 2019 20:48:26 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Sat, 20 Apr 2019 19:07:20 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="/user/metalldetector" aria-label="Profile: metalldetector">@<bdi>metalldetector</bdi></a></p>
<p dir="auto">I already did somewhere in the forum ^^</p>
<p dir="auto">You need to install PIGPIOD.</p>
<p dir="auto"><code>sudo apt-get install build-essential python-dev unzip wget</code></p>
<p dir="auto"><code>wget http://abyz.me.uk/rpi/pigpio/pigpio.zip &amp;&amp; unzip pigpio.zip &amp;&amp; cd PIGPIO &amp;&amp; sudo make install</code></p>
<p dir="auto">Connect the PIR like shown at Part 2.2 and follow the guide:<br />
<a href="https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app?page=1">https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app?page=1</a></p>
<p dir="auto">When creating the <a href="http://pir.py" target="_blank" rel="noopener noreferrer nofollow ugc">pir.py</a> and fill ist with this code:</p>
<pre><code>#!/usr/bin/env python

import sys
import time
import RPi.GPIO as io
import subprocess
import pigpio

io.setmode(io.BCM)
SHUTOFF_DELAY = 119 # seconds
PIR_PIN = 25       # 22 on the board
LED_PIN = 16

def main():
    io.setup(PIR_PIN, io.IN)
    io.setup(LED_PIN, io.OUT)
    turned_off = False
    last_motion_time = time.time()

    while True:
        if io.input(PIR_PIN):
            last_motion_time = time.time()
            io.output(LED_PIN, io.LOW)
            print ".",
            sys.stdout.flush()
            if turned_off:
                turned_off = False
                turn_on()
        else:
            if not turned_off and time.time() &gt; (last_motion_time + 
                                                 SHUTOFF_DELAY):
                turned_off = True
                turn_off()
            if not turned_off and time.time() &gt; (last_motion_time + 1):
                io.output(LED_PIN, io.HIGH)
        time.sleep(.1)

def turn_on():
	subprocess.call("sh /home/pi/monitor_on.sh", shell=True)

def turn_off():
	subprocess.call("sh /home/pi/monitor_off.sh", shell=True)

if __name__ == '__main__':
    try:
        main()
    except KeyboardInterrupt:
        io.cleanup()

</code></pre>
<p dir="auto">For the monitor_on.sh use this:</p>
<pre><code>vcgencmd display_power 1

pigs p 17 1
pigs p 22 1
pigs p 24 1

sleep 0.06s

pigs p 17 2
pigs p 22 2
pigs p 24 2

sleep 0.06s

pigs p 17 3
pigs p 22 3
pigs p 24 3

sleep 0.06s

pigs p 17 4
pigs p 22 4
pigs p 24 4

sleep 0.06s

pigs p 17 5
pigs p 22 5
pigs p 24 5

sleep 0.06s

pigs p 17 6
pigs p 22 6
pigs p 24 5

sleep 0.06s

pigs p 17 7
pigs p 22 7
pigs p 24 6

sleep 0.06s

pigs p 17 8
pigs p 22 8
pigs p 24 7

sleep 0.06s

pigs p 17 9
pigs p 22 9
pigs p 24 8

sleep 0.06s

pigs p 17 10
pigs p 22 10
pigs p 24 9

sleep 0.06s

pigs p 17 11
pigs p 22 11
pigs p 24 10

sleep 0.06s

pigs p 17 12
pigs p 22 12
pigs p 24 11

</code></pre>
<p dir="auto">For monitor_off.sh use this:</p>
<pre><code>pigs p 17 12
pigs p 22 12
pigs p 24 11

sleep 0.06s

pigs p 17 11
pigs p 22 11
pigs p 24 10

sleep 0.06s

pigs p 17 10
pigs p 22 10
pigs p 24 9

sleep 0.06s

pigs p 17 9
pigs p 22 9
pigs p 24 8

sleep 0.06s

pigs p 17 8
pigs p 22 8
pigs p 24 7

sleep 0.06s

pigs p 17 7
pigs p 22 7
pigs p 24 6

sleep 0.06s

pigs p 17 6
pigs p 22 6
pigs p 24 5

sleep 0.06s

pigs p 17 5
pigs p 22 5
pigs p 24 5

sleep 0.06s

pigs p 17 4
pigs p 22 4
pigs p 24 4

sleep 0.06s

pigs p 17 4
pigs p 22 4
pigs p 24 4

sleep 0.06s

pigs p 17 3
pigs p 22 3
pigs p 24 3

sleep 0.06s

pigs p 17 2
pigs p 22 2
pigs p 24 2

vcgencmd display_power 0

sleep 0.06s

pigs p 17 1
pigs p 22 1
pigs p 24 1

sleep 0.06s

pigs p 17 0
pigs p 22 0
pigs p 24 0

</code></pre>
<p dir="auto">Hope that helps. Try to find your best way and ask, if u need more help :)</p>
<p dir="auto">Edit:<br />
Oh and u need to start Pigpio on reboot with rc.local. ;)</p>
]]></description><link>https://forum.magicmirror.builders/post/56221</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56221</guid><dc:creator><![CDATA[cruunnerr]]></dc:creator><pubDate>Sat, 20 Apr 2019 19:07:20 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Fri, 19 Apr 2019 14:15:04 GMT]]></title><description><![CDATA[<p dir="auto">hi… i have motion detector pir.  and a led5050 strip.<br />
can you please provide the software part between pir and led… for dimming and on off feature … pleeeese<br />
thx</p>
]]></description><link>https://forum.magicmirror.builders/post/56187</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56187</guid><dc:creator><![CDATA[metalldetector]]></dc:creator><pubDate>Fri, 19 Apr 2019 14:15:04 GMT</pubDate></item><item><title><![CDATA[Reply to My First Mirror... until now ^^ on Sat, 06 Jan 2018 15:33:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cruunnerr" aria-label="Profile: cruunnerr">@<bdi>cruunnerr</bdi></a></p>
<p dir="auto">ah yes alright, thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/33442</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/33442</guid><dc:creator><![CDATA[fischi87]]></dc:creator><pubDate>Sat, 06 Jan 2018 15:33:20 GMT</pubDate></item></channel></rss>