<?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[Custom Data Point Units]]></title><description><![CDATA[<p dir="auto">Hi I am trying to add a data point with a unit kVA in mango 3.1.1 enterprise demo.  It shows in the Unit drop down - <strong>kVA not recognized (in kVA at index 0).</strong> When I save the template, it shows <strong>Invalid unit: java.text.ParseException: kVA not recognized (in kVA at index 0)</strong>. How do I create custom units?</p>
]]></description><link>https://forum.mango-os.com/topic/2848/custom-data-point-units</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 09:38:59 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2848.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Jul 2017 15:21:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Custom Data Point Units on Tue, 11 Jul 2017 10:32:43 GMT]]></title><description><![CDATA[<p dir="auto">Ok, got it. I just set the Text Renderer as I just need to suffix the text .<br />
<img src="https://camo.nodebb.org/e24a555a0222e96a701c167d7495b98ba2a58900?url=https%3A%2F%2Fi.imgur.com%2F27aEpwn.png" alt="0_1499769029556_b4d1e51f-314e-473e-9e04-3b2ee46b5896-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/14864</link><guid isPermaLink="true">https://forum.mango-os.com/post/14864</guid><dc:creator><![CDATA[morris]]></dc:creator><pubDate>Tue, 11 Jul 2017 10:32:43 GMT</pubDate></item><item><title><![CDATA[Reply to Custom Data Point Units on Mon, 10 Jul 2017 14:55:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi morris,</p>
<p dir="auto">The units field is most useful if some kind of conversion is going to apply, otherwise it can feel a little restrictive. The unit you're attempting to use would be written <code>kV*A</code> or <code>kA*V</code> etc. This came up with kWh, which was entered and displayed kW*h, which was not ideal. It's really easy to add custom labels in the code, but we haven't exposed any means of creating a correlation like <code>kVA = kV*A</code> for the sake of getting proper display and the conversion possibilities in the library (also automatic units for integrals).</p>
<p dir="auto">The other option is to use a suffix instead of a unit. The suffix field is just a string, so you can write whatever you like into it and, if your textrenderer is set up not to use the unit as the suffix, it will be displayed after the value.</p>
]]></description><link>https://forum.mango-os.com/post/14855</link><guid isPermaLink="true">https://forum.mango-os.com/post/14855</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 10 Jul 2017 14:55:53 GMT</pubDate></item></channel></rss>