<?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[ALERT: setting the display time individually]]></title><description><![CDATA[<p dir="auto">If there’s a alert, I’d like to be able to tell how long the alert should stay. At present I understand this is a global variable in the config.js (<code>display_time</code>). It would be nice, if this global variable could be overwritten, if I call the function.<br />
I tried:<br />
<code>this.sendNotification("SHOW_ALERT", {type: "notification", display_time: "10000", title: "Title", message: "Message"});</code></p>
<p dir="auto">But still, the global display_time was used. Did I miss something?</p>
]]></description><link>https://forum.magicmirror.builders/topic/1757/alert-setting-the-display-time-individually</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 23:56:47 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/1757.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Feb 2017 13:48:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ALERT: setting the display time individually on Wed, 15 Feb 2017 10:14:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/strawberry-3.141" aria-label="Profile: strawberry-3.141">@<bdi>strawberry-3.141</bdi></a> said in <a href="/topic/1757/alert-setting-the-display-time-individually/2">ALERT: setting the display time individually</a>:</p>
<blockquote>
<p dir="auto">if you want to set the duration you have to use an alert instead of notification:<br />
this.sendNotification(“SHOW_ALERT”, {timer: 10000, title: “Title”, message: “Message”});</p>
</blockquote>
<p dir="auto">ok, that did it. The Alerts are now shown as given in the “timer”-argument.<br />
Nevertheless my usecase would be to have also multiple notifications staying on top like “washing machine ready” and “dryer ready” or something which needs some action done.</p>
<p dir="auto">So it would be nice to have either notification also displayed “on event” and not globally or to have notifications smoothed out, if the item action is done. As I can see, the alert-module doesn’t allow fading the notifications on a action?</p>
]]></description><link>https://forum.magicmirror.builders/post/14595</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/14595</guid><dc:creator><![CDATA[binderth]]></dc:creator><pubDate>Wed, 15 Feb 2017 10:14:04 GMT</pubDate></item><item><title><![CDATA[Reply to ALERT: setting the display time individually on Tue, 14 Feb 2017 15:03:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/binderth" aria-label="Profile: binderth">@<bdi>binderth</bdi></a> a notification display time cannot be set in a notification itself, it’s up to the user to define the notification time for the alert module.</p>
<pre><code>{
  module: 'alert',
  config: {
    display_time: 10000
  }
}
</code></pre>
<p dir="auto">if you want to set the duration you have to use an alert instead of notification:</p>
<p dir="auto"><code>this.sendNotification("SHOW_ALERT", {timer: 10000, title: "Title", message: "Message"});</code></p>
]]></description><link>https://forum.magicmirror.builders/post/14528</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/14528</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Tue, 14 Feb 2017 15:03:16 GMT</pubDate></item></channel></rss>