<?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[Can I control a relay on MagicMirror2?]]></title><description><![CDATA[<p dir="auto">I would love to control a relay.<br />
So I want to turn on and turn off a bulb.<br />
If you know a way, can you tell me the way?</p>
]]></description><link>https://forum.magicmirror.builders/topic/2528/can-i-control-a-relay-on-magicmirror2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 13:16:00 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2528.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 09 May 2017 17:43:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can I control a relay on MagicMirror2? on Mon, 22 May 2017 07:17:41 GMT]]></title><description><![CDATA[<p dir="auto">Using WebIOPI is simple way to control GPIOs . The followings is my solution.</p>
<ol>
<li>
<p dir="auto">To install WebIOPI  to your raspberry Pi.<br />
<a href="http://webiopi.trouch.com/INSTALL.html" target="_blank" rel="noopener noreferrer nofollow ugc">webiopi Installation</a><br />
Note: if you use webiopi 0.7 and rasp 2, you have to run the patch.</p>
</li>
<li>
<p dir="auto">In the node_help.js of your module, use ‘http  post’ to control the GPIOs.<br />
<a href="http://webiopi.trouch.com/RESTAPI.html" target="_blank" rel="noopener noreferrer nofollow ugc">WebIOPI rest api</a><br />
ex:<br />
SET ‘GPIO 3’ to ‘IN’ , the request as below:<br />
HTTP POST<br />
http:/192.168.1.200:8000/GPIO/3/function/in</p>
</li>
</ol>
]]></description><link>https://forum.magicmirror.builders/post/21907</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21907</guid><dc:creator><![CDATA[johnsonkao]]></dc:creator><pubDate>Mon, 22 May 2017 07:17:41 GMT</pubDate></item><item><title><![CDATA[Reply to Can I control a relay on MagicMirror2? on Wed, 10 May 2017 11:09:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maengmarco" aria-label="Profile: MaengMarco">@<bdi>MaengMarco</bdi></a> Check the voice control software you’re going to use… I’m sure they have some sort of instructions on how to…</p>
]]></description><link>https://forum.magicmirror.builders/post/21383</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21383</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Wed, 10 May 2017 11:09:01 GMT</pubDate></item><item><title><![CDATA[Reply to Can I control a relay on MagicMirror2? on Wed, 10 May 2017 04:48:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a><br />
Yes. I saw. But I make to turn on &amp; turn off a bulb on MagicMirror2.<br />
I use to voice control used ‘annyang API’.<br />
If I say " Turn on the light.", a bulb will turn on.<br />
I think to make a new module about voice and relay control, right?<br />
But It is very difficult…</p>
]]></description><link>https://forum.magicmirror.builders/post/21370</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21370</guid><dc:creator><![CDATA[MaengMarco]]></dc:creator><pubDate>Wed, 10 May 2017 04:48:21 GMT</pubDate></item><item><title><![CDATA[Reply to Can I control a relay on MagicMirror2? on Wed, 10 May 2017 02:50:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maengmarco" aria-label="Profile: MaengMarco">@<bdi>MaengMarco</bdi></a> said in <a href="/post/21367">Can I control a relay on MagicMirror2?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shbatm" aria-label="Profile: shbatm">@<bdi>shbatm</bdi></a>  Thank you.<br />
Can I use a bulb instead of a monitor?</p>
</blockquote>
<p dir="auto">Sure why not?  They’ve been doing it a while</p>
<p dir="auto">example:  <a href="https://www.raspberrypi.org/forums/viewtopic.php?f=44&amp;t=82316" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.raspberrypi.org/forums/viewtopic.php?f=44&amp;t=82316</a></p>
]]></description><link>https://forum.magicmirror.builders/post/21368</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21368</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Wed, 10 May 2017 02:50:15 GMT</pubDate></item><item><title><![CDATA[Reply to Can I control a relay on MagicMirror2? on Wed, 10 May 2017 02:24:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shbatm" aria-label="Profile: shbatm">@<bdi>shbatm</bdi></a>  Thank you.<br />
Can I use a bulb instead of a monitor?</p>
]]></description><link>https://forum.magicmirror.builders/post/21367</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21367</guid><dc:creator><![CDATA[MaengMarco]]></dc:creator><pubDate>Wed, 10 May 2017 02:24:05 GMT</pubDate></item><item><title><![CDATA[Reply to Can I control a relay on MagicMirror2? on Tue, 09 May 2017 21:58:34 GMT]]></title><description><![CDATA[<p dir="auto">You may want to take a look at the <a href="https://github.com/paviro/MMM-PIR-Sensor" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-PIR-Sensor</a> module and see if you can adapt it for your needs. It includes the ability to control a relay for turning on/off the monitor.</p>
]]></description><link>https://forum.magicmirror.builders/post/21363</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21363</guid><dc:creator><![CDATA[shbatm]]></dc:creator><pubDate>Tue, 09 May 2017 21:58:34 GMT</pubDate></item><item><title><![CDATA[Reply to Can I control a relay on MagicMirror2? on Tue, 09 May 2017 17:55:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/unbored" aria-label="Profile: Unbored">@<bdi>Unbored</bdi></a><br />
Thank you for your answer.<br />
I checked your URL.<br />
But this code is Python script.<br />
Do you know what should I do for use this Python script?</p>
]]></description><link>https://forum.magicmirror.builders/post/21354</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21354</guid><dc:creator><![CDATA[MaengMarco]]></dc:creator><pubDate>Tue, 09 May 2017 17:55:46 GMT</pubDate></item><item><title><![CDATA[Reply to Can I control a relay on MagicMirror2? on Tue, 09 May 2017 17:50:43 GMT]]></title><description><![CDATA[<p dir="auto">I recently worked through a similar issue.</p>
<p dir="auto"><a href="https://forum.magicmirror.builders/topic/2452/python-one-momentary-switch-led-and-a-shut-off-timer">https://forum.magicmirror.builders/topic/2452/python-one-momentary-switch-led-and-a-shut-off-timer</a></p>
]]></description><link>https://forum.magicmirror.builders/post/21353</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21353</guid><dc:creator><![CDATA[Unbored]]></dc:creator><pubDate>Tue, 09 May 2017 17:50:43 GMT</pubDate></item></channel></rss>