<?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 Dashboards and graphical view problems in 2.7.10 and Custom Dashboards 3.0.1]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Firstly, I would like to thank everyone in this forum for help and the development team of Mango Automation for working fast on user communication and solving problems rapidly.</p>
<p dir="auto">I started playing with Custom Dashboards and noticed a few problems which I could not understand what is causing them.</p>
<ul>
<li>The login page</li>
</ul>
<p dir="auto">I am using the public-dashboards/login.htm as a template for my custom made login page. When I try to log in through the template then everything works fine but on my custom made page "loginError" does nothing on Chrome but on Firefox it executes an error: "Failed to login: null".</p>
<p dir="auto">Sometimes it lets me log in but this is happening in random sequence. It seems that Mango has trouble getting the data through to the system from the login page.</p>
<p dir="auto">Maybe someone can help me understand why it is behaving like that. The page is located in /overrides/web/modules/dashboards/web/test/. Maybe I should change it ?</p>
<p dir="auto">I'm gonna add the login "index.html" to this post also. <a href="/forum/uploads/files/1461226199103-index.html">index.html</a></p>
<ul>
<li>Graphical views</li>
</ul>
<p dir="auto">When trying to make a new graphical view everything works fine until I save it. After that I can only see how the saved view looks like but I can't seem to change it. When clicked edit then the view is empty and the select box of the components is also empty. When clicked on iconify components then an alert pops up: " Cannot read property 'Saved Conent' of null.</p>
<p dir="auto">When I stay on the page after the alerts for some time then the console writes an error:</p>
<pre><code>ERROR 2016-04-21 11:23:53,852 (com.serotonin.m2m2.util.timeout.TimeoutTask.run:71) - Uncaught Task Exception org.eclipse.jetty.websocket.api.WebSocketException: RemoteEndpoint unavailable, current state [CLOSING], expecting [OPEN or CONNECTED] at org.eclipse.jetty.websocket.common.WebSocketSession.getRemote(WebSocketSession.java:252) at com.serotonin.m2m2.web.mvc.websocket.MangoPingPongTracker.scheduleTimeout(MangoPingPongTracker.java:55) at com.serotonin.m2m2.util.timeout.TimeoutTask.run(TimeoutTask.java:69) at com.serotonin.timer.TimerTask.runTask(TimerTask.java:148) at com.serotonin.timer.OrderedTimerTaskWorker.run(OrderedTimerTaskWorker.java:29) at com.serotonin.timer.OrderedThreadPoolExecutor$OrderedTask.run(OrderedThreadPoolExecutor.java:278) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 
</code></pre>
<p dir="auto">The view consists of one html code which is displaying a picture.</p>
<ul>
<li>Some questions about ma-point-values</li>
</ul>
<p dir="auto">When setting time for the ma-point-values there are presets like: "LAST_6_HOURS". I would like to know how to statically insert LAST_6_HOURS. Because right now I have tried to solve it like this:</p>
<pre><code>&lt;md-input-container class="no-errors-spacer"&gt;
&lt;ma-date-range-picker from="from" to="to" preset="LAST_6_HOURS" update-interval="{{updateInterval}} {{updateIntervalType}}" style="visibility:hidden;"&gt;
    &lt;/md-input-container&gt;

&lt;ma-point-values point="point1" values="point1Values" from="from" to="to" rollup="AVERAGE" rollup-interval="1 MINUTES"&gt;
&lt;/ma-point-values&gt;
</code></pre>
<p dir="auto">This is a robust way to solve it. As i understand the preset sets values to variables: from &amp; to. But is there a better solution on setting the date-range. I would also like to point out that I am still learning AngularJS and custom dashboards so forgive me if I am using Dashboard module wrongly/incorrectly.</p>
<p dir="auto">I would like to solve these pointed out problems and Thank You for your help.</p>
]]></description><link>https://forum.mango-os.com/topic/2223/custom-dashboards-and-graphical-view-problems-in-2-7-10-and-custom-dashboards-3-0-1</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 03:33:16 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2223.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Apr 2016 08:40:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Custom Dashboards and graphical view problems in 2.7.10 and Custom Dashboards 3.0.1 on Thu, 28 Apr 2016 15:57:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi Thomas,</p>
<p dir="auto">I looked into it, as per your description, and have determined this to be a bug specifically with the HTML component on the edit page. Can you confirm that you have a message in your browser's developer console "angular is not defined"?</p>
<p dir="auto">I have opened a Github issue for this: <a href="https://github.com/infiniteautomation/ma-core-public/issues/713" rel="nofollow ugc">https://github.com/infiniteautomation/ma-core-public/issues/713</a></p>
<p dir="auto">Thanks for bringing it to our attention.</p>
]]></description><link>https://forum.mango-os.com/post/11490</link><guid isPermaLink="true">https://forum.mango-os.com/post/11490</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 28 Apr 2016 15:57:17 GMT</pubDate></item><item><title><![CDATA[Reply to Custom Dashboards and graphical view problems in 2.7.10 and Custom Dashboards 3.0.1 on Thu, 28 Apr 2016 15:08:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi Thomas,</p>
<p dir="auto">I think I understand now. Yes, &lt;ma-point-values&gt; consumes the to/from provided by &lt;ma-date-range-picker&gt; using the time range and set by the preset.</p>
<p dir="auto">But I agree it is a hack and I am actually having issues on this exact problem on my project. There should be a way of of providing a time range preset directly to &lt;ma-point-values&gt; and not having to use the display none / visibility hidden on the &lt;ma-data-range-picker&gt;</p>
<p dir="auto">I will bring it up with the team as a high priority issue / feature request.</p>
]]></description><link>https://forum.mango-os.com/post/11482</link><guid isPermaLink="true">https://forum.mango-os.com/post/11482</guid><dc:creator><![CDATA[Will Geller]]></dc:creator><pubDate>Thu, 28 Apr 2016 15:08:17 GMT</pubDate></item><item><title><![CDATA[Reply to Custom Dashboards and graphical view problems in 2.7.10 and Custom Dashboards 3.0.1 on Tue, 26 Apr 2016 11:21:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi Will,</p>
<p dir="auto">Thanks for you prompt reply. I may have explained the question wrongly. I understood the preset functions and am familiar with preset strings.</p>
<p dir="auto">When using ma-date-range-picker then I have to use the select box and choose between the preset strings that ma-date-range-picker has. If i am not using md-input-container then the date-range-picker fails. Hence the style="visibility:hidden;".</p>
<p dir="auto">When I tried using ng-bind preset="LAST_6_HOURS" then the ma-point-values does not work with the preset time value of last 6 hours. And thats why I have the question which I was having is how do I put statically to ma-point-values "LAST_6_HOURS".</p>
<p dir="auto">Does the preset string update "from" and "to" values which I am using in ma-point-values? Because I cant see the syntax of time value in my ma-point-values.</p>
<p dir="auto">Hi Phil,</p>
<p dir="auto">No, there is no trace in the command prompt when using the iconify function.</p>
]]></description><link>https://forum.mango-os.com/post/11481</link><guid isPermaLink="true">https://forum.mango-os.com/post/11481</guid><dc:creator><![CDATA[ThomasEinasto]]></dc:creator><pubDate>Tue, 26 Apr 2016 11:21:02 GMT</pubDate></item><item><title><![CDATA[Reply to Custom Dashboards and graphical view problems in 2.7.10 and Custom Dashboards 3.0.1 on Thu, 21 Apr 2016 16:21:39 GMT]]></title><description><![CDATA[<p dir="auto">Hi Thomas,</p>
<p dir="auto">Pertaining to the Graphical Views issue, is there a stack trace in the command prompt / terminal when you open the page / iconify the components?</p>
]]></description><link>https://forum.mango-os.com/post/11462</link><guid isPermaLink="true">https://forum.mango-os.com/post/11462</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 21 Apr 2016 16:21:39 GMT</pubDate></item><item><title><![CDATA[Reply to Custom Dashboards and graphical view problems in 2.7.10 and Custom Dashboards 3.0.1 on Thu, 21 Apr 2016 16:20:39 GMT]]></title><description><![CDATA[<p dir="auto">Hi Thomas,</p>
<p dir="auto">I am not too familiar with Graphic views but my be able to clue you in on the other two issues.</p>
<p dir="auto">The code you attached is for the older method of logging in via a custom dashboard. This method uses the old JS API and may be deprecated. In the new mdAdmin dashboard there is  a view with a custom login page. Check it out at /modules/dashboards/web/mdAdmin/#/login</p>
<p dir="auto">I will talk to the team about making a guide on how to customize this login page but basically if you set this as the page for your custom login in your system settings you will get this nice looking custom login page.</p>
<p dir="auto">The date picker question:<br />
I think you misunderstand the <strong>update-interval</strong> attribute on <strong>&lt;ma-date-range-picker&gt;</strong> this doesn't set the time range period; it sets how often the 'to'/'from' time will update with the current time. So if you had a <strong>preset</strong>="LAST_1_DAYS" <strong>update-interval</strong>="5 seconds" it would give you the time range of the last 24 hour period, updating every 5 seconds to stay current.</p>
<p dir="auto">It looks like you are wanting to specify a custom preset attribute with angular variables. I don't think this can be done currently, as there is only a set number of <strong>preset</strong> strings that <strong>&lt;ma-data-range-picker&gt;</strong> will recognize. I will list them here:</p>
<p dir="auto">LAST_5_MINUTES<br />
LAST_15_MINUTES<br />
LAST_30_MINUTES<br />
LAST_1_HOURS<br />
LAST_3_HOURS<br />
LAST_6_HOURS<br />
LAST_12_HOURS<br />
LAST_1_DAYS<br />
LAST_1_WEEKS<br />
LAST_2_WEEKS<br />
LAST_1_MONTHS<br />
LAST_3_MONTHS<br />
LAST_6_MONTHS<br />
LAST_1_YEARS<br />
LAST_2_YEARS<br />
DAY_SO_FAR<br />
WEEK_SO_FAR<br />
MONTH_SO_FAR<br />
YEAR_SO_FAR<br />
PREVIOUS_DAY<br />
PREVIOUS_WEEK<br />
PREVIOUS_MONTH<br />
PREVIOUS_YEAR</p>
<p dir="auto">The options starting with 'LAST...' will give you the a range up until the current time time, given that you specify an update-interval with how often you want it to refresh. Those ending with '...SO_FAR' would give you from the start of the day/week/month/year up till now. 'Previous...' will give you yesterday/last week/last month/last year (and update-interval won't do anything).</p>
<p dir="auto">I will talk to the team about the potentially making <strong>&lt;ma-data-range-picker&gt;</strong> more flexible with excepting custom presets but currently it is not possible as you are trying to do.</p>
<p dir="auto">Hope this helps.</p>
]]></description><link>https://forum.mango-os.com/post/11461</link><guid isPermaLink="true">https://forum.mango-os.com/post/11461</guid><dc:creator><![CDATA[Will Geller]]></dc:creator><pubDate>Thu, 21 Apr 2016 16:20:39 GMT</pubDate></item></channel></rss>