<?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[Compliments module is killing my other module.]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am using compliments module and Widget module(MMM-Widget) together on the same screen. Compliments module basically refreshes every 30 sec. once 30 sec cycle ends(updateInterval), my module widget gets blank :frowning_face:</p>
<p dir="auto">Here is the widget module that I’m using. (this is the out of the box one that’s provided, I didn’t modify anything here. I changed the references in config.js file only).</p>
<pre><code>/* Magic Mirror
* Module: MMM-Widget
*
* By eouia
*/

const DefaultWidgetFormat = {
  url: "",
  position: "top_left",
  width: "200px",
  height: "200px",
  backgroundColor: "#000"
}


Module.register("MMM-Widget",{
  defaults: {
    widgets: []
  },

  start: function() {
    this.sendSocketNotification("INIT", this.config)
  },

  notificationReceived: function(noti, payload, sender) {
    if (noti == "DOM_OBJECTS_CREATED") {
      this.sendSocketNotification("START")
    }
  },

  socketNotificationReceived: function(noti, payload) {
    if (noti == "READY") {
      this.loadWidgets()
    }
  },


  loadWidgets: function() {
    var widgets = this.config.widgets
    for (i in widgets){
      var widget = Object.assign({}, DefaultWidgetFormat, widgets[i])

      var iFrame = document.createElement("iframe")
      iFrame.id = "WIDGET_" + i
      iFrame.className = "widget_item"
      iFrame.style.width = widget.width
      iFrame.style.height = widget.height
      iFrame.style.border = "none"
      iFrame.style.display = "block"
      iFrame.style.overflow = "hidden"
      iFrame.style.backgroundColor = widget.backgroundColor
      iFrame.scrolling = "no"
      iFrame.src = "/widget/" + i
      var position = "." + widget.position.replace("_", ".") + " &gt; .container"
      var regionContainer = document.querySelector(position)
      regionContainer.appendChild(iFrame)
      if (regionContainer.style.display == "none") {
        regionContainer.style.display = "block"
      }
    }
  },

  suspend: function() {
    var doms = document.getElementsByClassName("widget_item")
    if (doms.length &gt; 0) {
      for (let dom of doms) {
        dom.style.display = "none"
      }
    }
  },

  resume: function() {
    var doms = document.getElementsByClassName("widget_item")
    if (doms.length &gt; 0) {
      for (let dom of doms) {
        dom.style.display = "block"
      }
    }
  }
})
</code></pre>
<p dir="auto">the compliments module that I’m using is also one that is provided out of the box.</p>
<p dir="auto">Here is my config file.</p>
<pre><code>modules: [

		{
			module: "compliments",
			position: "top_center"
		},

		{
			module: "MMM-Widget",
			config: {
				widgets: [

					{
						html: `
								&lt;a class="twitter-timeline" href="https://twitter.com/adidas?ref_src=twsrc%5Etfw" data-aria-polite="assertive"&gt;Tweets by Salesforce&lt;/a&gt; 
								&lt;script async src="https://platform.twitter.com/widgets.js" charset="utf-8"&gt;&lt;/script&gt; 
				`,
						position: "top_left",
						width: "400px",
						height: "500px",
					},

					{
						html: `
								&lt;!-- TradingView Widget BEGIN --&gt;
		&lt;div class="tradingview-widget-container" &gt;
		  &lt;script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-single-quote.js" async&gt;
		  {
		  "symbol": "NYSE:CRM",
		  "width": "100%",
		  "colorTheme": "light",
		  "isTransparent": false,
		  "locale": "en"
		}
		  &lt;/script&gt;
		&lt;/div&gt;
		&lt;!-- TradingView Widget END --&gt;
								`,
						position: "bottom_left",
						width: "400px",
						height: "111px",
						backgroundColor: "#FFF"
					},
				]
			}
		},
</code></pre>
<p dir="auto">please let me know on how can I fix this, this is very confusing.</p>
<p dir="auto">Also need some help on auto refreshing this MMM-Widget module for every 30 seconds to show latest feed.</p>
<p dir="auto">Thanks,<br />
Sunny</p>
]]></description><link>https://forum.magicmirror.builders/topic/10419/compliments-module-is-killing-my-other-module</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 01:16:32 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/10419.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 May 2019 14:05:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compliments module is killing my other module. on Fri, 10 May 2019 08:01:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sunnykeerthi" aria-label="Profile: sunnykeerthi">@<bdi>sunnykeerthi</bdi></a><br />
I think it is fixed. Update and try again.</p>
]]></description><link>https://forum.magicmirror.builders/post/56893</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56893</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Fri, 10 May 2019 08:01:55 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module is killing my other module. on Thu, 09 May 2019 18:26:41 GMT]]></title><description><![CDATA[<p dir="auto">Thanks very much @Sean :slightly_smiling_face:</p>
]]></description><link>https://forum.magicmirror.builders/post/56877</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56877</guid><dc:creator><![CDATA[sunnykeerthi]]></dc:creator><pubDate>Thu, 09 May 2019 18:26:41 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module is killing my other module. on Thu, 09 May 2019 17:43:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sunnykeerthi" aria-label="Profile: sunnykeerthi">@<bdi>sunnykeerthi</bdi></a><br />
I’ll look inside tomorrow.</p>
]]></description><link>https://forum.magicmirror.builders/post/56875</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56875</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 09 May 2019 17:43:44 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module is killing my other module. on Thu, 09 May 2019 17:11:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> ,</p>
<p dir="auto">Here is my update config.js.</p>
<pre><code>{
			module: "compliments",
			position: "top_right"
		},

		{
			module: "MMM-Widget",
			config: {
				widgets: [

					{
						html: "&lt;a class=\"twitter-timeline\" href=\"https://twitter.com/adidas?ref_src=twsrc%5Etfw\" data-aria-polite=\"assertive\"&gt;Tweets by Adidas&lt;/a&gt; &lt;script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"&gt;&lt;/script&gt;",
						position: "top_left",
						width: "400px",
						height: "500px",
					},


				]
			}
		},
</code></pre>
<p dir="auto">But still no luck :frowning_face:</p>
<p dir="auto"><a class="plugin-mentions-group plugin-mentions-a" href="/groups/module-developers" aria-label="Profile: Module-Developers">@<bdi>Module-Developers</bdi></a> , @Sean  any help please.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/56869</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56869</guid><dc:creator><![CDATA[sunnykeerthi]]></dc:creator><pubDate>Thu, 09 May 2019 17:11:02 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module is killing my other module. on Thu, 09 May 2019 16:58:35 GMT]]></title><description><![CDATA[<p dir="auto">Ah!!! Ohk <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> , Thanks… I’ll update and post you back.</p>
<p dir="auto">Thanks!!!</p>
]]></description><link>https://forum.magicmirror.builders/post/56868</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56868</guid><dc:creator><![CDATA[sunnykeerthi]]></dc:creator><pubDate>Thu, 09 May 2019 16:58:35 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module is killing my other module. on Thu, 09 May 2019 15:11:02 GMT]]></title><description><![CDATA[<p dir="auto">i do not know… it is a 1st step</p>
]]></description><link>https://forum.magicmirror.builders/post/56866</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56866</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 09 May 2019 15:11:02 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module is killing my other module. on Thu, 09 May 2019 14:50:19 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a>,</p>
<p dir="auto">Is that the real reason of this?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/56865</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56865</guid><dc:creator><![CDATA[sunnykeerthi]]></dc:creator><pubDate>Thu, 09 May 2019 14:50:19 GMT</pubDate></item><item><title><![CDATA[Reply to Compliments module is killing my other module. on Thu, 09 May 2019 14:29:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sunnykeerthi" aria-label="Profile: sunnykeerthi">@<bdi>sunnykeerthi</bdi></a> change the single quotes to double… u have the backtic… instead of single quote…</p>
<p dir="auto">just make all quotes the same</p>
]]></description><link>https://forum.magicmirror.builders/post/56863</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56863</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 09 May 2019 14:29:01 GMT</pubDate></item></channel></rss>