<?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[Topics tagged with template]]></title><description><![CDATA[A list of topics that have been tagged with template]]></description><link>http://forum.mycontroller.org/tags/template</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 22:22:52 GMT</lastBuildDate><atom:link href="http://forum.mycontroller.org/tags/template.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[Custom widget - dynamic images on dashboard]]></title><description><![CDATA[<p dir="auto">There is a request on <a href="https://github.com/mycontroller-org/mycontroller/issues/405" rel="nofollow ugc">https://github.com/mycontroller-org/mycontroller/issues/405</a> to show dynamic images on dashboard.</p>
<p dir="auto">We can achieve this by using the custom widget.</p>
<p dir="auto">Create an HTML template as follows, replace this url with your actual URL.</p>
<pre><code class="language-html">&lt;div&gt;
    &lt;img  ng-src="https://static.pexels.com/photos/2487${dynamicImage}/pexels-photo-2487${dynamicImage}.jpeg" alt="test image" class="adf-myc-dsi-image"/&gt;
&lt;/div&gt;
</code></pre>
<p dir="auto">Create a javascript as follows, Use UIDTag to map your <code>Custom</code> &gt;&gt; <code>VAR1</code> senor variable</p>
<pre><code class="language-javascript">var myImports = new JavaImporter(java.io, java.lang, java.util, java.text);

with(myImports) {
  //var dynamicImage = mcApi.uidTag().getByUid("image-var1").getResource();
  var dynamicImage = 98;
}
</code></pre>
<p dir="auto">Add your HTML template and script on dashboard with custom widget,<br />
<img src="https://user-images.githubusercontent.com/1004403/31325413-7e808538-acda-11e7-9513-56d39ecfd516.png" alt="image" class=" img-fluid img-markdown" /></p>
]]></description><link>http://forum.mycontroller.org/topic/201/custom-widget-dynamic-images-on-dashboard</link><guid isPermaLink="true">http://forum.mycontroller.org/topic/201/custom-widget-dynamic-images-on-dashboard</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Display text based on sensor value, is that possible?]]></title><description><![CDATA[@jkandasa
Just tested and it works like a charm!!!
Really great examples, that are easy to implement.
Mycontroller was already great, now it is even better!!.
Thank you!!
]]></description><link>http://forum.mycontroller.org/topic/124/display-text-based-on-sensor-value-is-that-possible</link><guid isPermaLink="true">http://forum.mycontroller.org/topic/124/display-text-based-on-sensor-value-is-that-possible</guid><dc:creator><![CDATA[Tag]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>