<?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[Scheduling a YouTube video to start&#x2F;stop via MMM-Remote-Control]]></title><description><![CDATA[<p dir="auto">Looking for some guidance. I’m using MMM-ModuleScheduler and MMM-Remote-Control to turn my monitor on/off, and to hide certain modules depending on the time of day. Works great.</p>
<p dir="auto">But, I have a YouTube video (white noise) that I’d like to start in the evening, and have stop in the AM.</p>
<p dir="auto">Playing the video is no problem — I’m using MMM-EmbedYoutube) as below:</p>
<pre><code>module: "MMM-EmbedYoutube", 
                position: "middle_center",        
                config: {
                        video_id: "nDqP7kcr-sc",
                        loop: true,
                        autoplay:true,
                        controls:false,
                        }
                },

</code></pre>
<p dir="auto">I tried to hide/show the video via MMM-Remote-Control/MMM-Module-Scheduler, but couldn’t figure out why the sound kept playing. Of course, it’s because hiding/showing doesn’t turn it off/on.</p>
<p dir="auto">So I’m trying to find solution, but am stuck here as modifying the config.js file is about the limit of my technical knowledge.</p>
<p dir="auto">Looking at the page for <a href="https://github.com/eouia/MMM-YouTube" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-YouTube</a> I can see that I can use YouTube’s iFrame API methods to control its player. And this is what I’d want to do:</p>
<pre><code>this.sendNotification("YOUTUBE_CONTROL", {
  command: "playVideo"
})
</code></pre>
<p dir="auto">I’m just not sure how/where to create that notification. Ideally I can use the modules above to playVideo or pauseVideo, at certain times of the day.</p>
<p dir="auto">Any guidance you can provide would be super helpful!</p>
]]></description><link>https://forum.magicmirror.builders/topic/12149/scheduling-a-youtube-video-to-start-stop-via-mmm-remote-control</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 14:44:09 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/12149.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Feb 2020 18:09:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Scheduling a YouTube video to start&#x2F;stop via MMM-Remote-Control on Sun, 09 Feb 2020 16:47:27 GMT]]></title><description><![CDATA[<p dir="auto">@Sean Thanks! I’ll try it out and report back. Really appreciate the assistance.</p>
]]></description><link>https://forum.magicmirror.builders/post/69336</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/69336</guid><dc:creator><![CDATA[madebyelmcity]]></dc:creator><pubDate>Sun, 09 Feb 2020 16:47:27 GMT</pubDate></item><item><title><![CDATA[Reply to Scheduling a YouTube video to start&#x2F;stop via MMM-Remote-Control on Sun, 09 Feb 2020 10:33:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/madebyelmcity" aria-label="Profile: madebyelmcity">@<bdi>madebyelmcity</bdi></a><br />
I was on the way so I couldn’t explain in detailly.<br />
If you are using <a href="https://github.com/ianperrin/MMM-ModuleScheduler" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ianperrin/MMM-ModuleScheduler</a> ,  (Personally, I don’t use it, so I might be wrong)<br />
This could work; Haven’t tested, but…</p>
<pre><code>{
  module: 'MMM-ModuleScheduler',
  config: {
    notification_schedule: {
      notification: 'YOUTUBE_CONTROL', 
      schedule: '30 9 * * *', 
      payload: {
          type: "notification", 
          command: 'pauseVideo'
      }
    }
  }
},
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/69312</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/69312</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 09 Feb 2020 10:33:55 GMT</pubDate></item><item><title><![CDATA[Reply to Scheduling a YouTube video to start&#x2F;stop via MMM-Remote-Control on Sat, 08 Feb 2020 22:18:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/madebyelmcity" aria-label="Profile: madebyelmcity">@<bdi>madebyelmcity</bdi></a><br />
<a href="https://github.com/ianperrin/MMM-ModuleScheduler#scheduling-notifications" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ianperrin/MMM-ModuleScheduler#scheduling-notifications</a><br />
shows how to occur notification with payload.</p>
]]></description><link>https://forum.magicmirror.builders/post/69297</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/69297</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sat, 08 Feb 2020 22:18:35 GMT</pubDate></item></channel></rss>