<?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[working with binary data]]></title><description><![CDATA[<p dir="auto">Hi I am looking for a little help representing a status register on the dashboard.<br />
The register is a unit16 binary for example bit 12 indicates "on" bit 11"off" bit 13 "hold"<br />
I would like to have one value on the dashboard for status that will indicate what value is true</p>
<p dir="auto">"inverter status : ON"</p>
<p dir="auto">I am using dashboard designer</p>
<p dir="auto">Thanks for your help</p>
]]></description><link>https://forum.mango-os.com/topic/2995/working-with-binary-data</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 08:40:51 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2995.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Oct 2017 15:18:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to working with binary data on Tue, 10 Oct 2017 15:45:14 GMT]]></title><description><![CDATA[<p dir="auto">There is now a filter called <code>maExtractBits</code> in the UI module.<br />
You can then use it like this -</p>
<pre><code>&lt;div id="e39fea8a-c64a-4ae6-9e3c-d80d4aa0acb0" style="position: absolute; left: 369px; top: 145px;" ng-switch="point.value | maExtractBits:'0x3800':11"&gt;
    Inverter status:
    &lt;span ng-switch-when="1"&gt;Off&lt;/span&gt;
    &lt;span ng-switch-when="2"&gt;On&lt;/span&gt;
    &lt;span ng-switch-when="4"&gt;Hold&lt;/span&gt;
&lt;/div&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/15779</link><guid isPermaLink="true">https://forum.mango-os.com/post/15779</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 10 Oct 2017 15:45:14 GMT</pubDate></item><item><title><![CDATA[Reply to working with binary data on Tue, 10 Oct 2017 15:44:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tapcon" aria-label="Profile: tapcon">@<bdi>tapcon</bdi></a> There's a couple of ways to go about this, you can create a meta-point which extracts the values you are interested in from the uint16 value or you can just create a display using the dashboards.</p>
<p dir="auto">The advantage to creating the meta point is that you can see the value easily elsewhere in Mango and trend it etc. To do so, create a Meta Data Source and add a point like this -<br />
<img src="https://camo.nodebb.org/d2c04f61d68af43214890ceafc153bc6dbbb1de4?url=https%3A%2F%2Fi.imgur.com%2FDKq6cRb.png" alt="0_1507567303397_8d18bf4a-147c-42fb-a2fe-4d28f39a57d5-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><s>To display the value directly in the dashboard you will need to <a href="https://help.infiniteautomation.com/getting-started-with-a-user-module/" rel="nofollow ugc">add a user module</a> and create a filter to extract the bits you are interested in. Unfortunately you can't put this directly into your markup as an angular expression as the binary operators don't work in angular expressions.</s></p>
<p dir="auto">See edit below, I released a version of the dashboard with this filter built in yesterday.</p>
]]></description><link>https://forum.mango-os.com/post/15759</link><guid isPermaLink="true">https://forum.mango-os.com/post/15759</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 10 Oct 2017 15:44:38 GMT</pubDate></item></channel></rss>