• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. rshah

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 15
    • Posts 68
    • Best 9
    • Controversial 0
    • Groups 0

    rshah

    @rshah

    9
    Reputation
    919
    Profile views
    68
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    rshah Unfollow Follow

    Best posts made by rshah

    • Retrieve last 12 hours of data

      Hi All,

      Does anyone catch anything wrong with the following? It works without the maNow / maMoment stuff using DatePicker but I'd like to use the moment / maNow

       <!-- Get current time, output to "to" -->
      <ma-now update-interval="1 minutes" output="to"></ma-now>
       <!-- Calculate last 12 hours from current time, output to "from" -->
      <ma-calc input="to | maMoment:'subtract':12:'hours'" output="from"></ma-calc>
       <!-- Get last 12 hours worth of data, average it per minute -->
      <ma-point-values point-xid="leaderCascadeCurrentPower" values="point1Values" from="from" to="to" rollup="AVERAGE" rollup-interval="1 minutes">
      </ma-point-values>
      
      <p>There are {{point1Values.length}} rows to display.</p>
      
      
      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • Angular Errors - Possible Bug

      Hi All,

      Very strange issue / possible bug:

      I was working on a dashboard in VSCode, copying and pasting the code into the Edit Pages menu (from VSCode)-- everything was working fine for some time (albeit kind of slow).

      However, now, whenever I try to paste into the Edit Markup window of Edit Pages, it doesn't paste what is on my clipboard but rather pastes a URL to the dashboard I am working on.....

      We checked /opt/mango/logs/ma.log and found some errors ( included below ).

      I've also included a quick video which demos the issue. Edit: Turns out I don't have permissions to upload videos, but I can PM one to anyone if they need it

      We are running the latest version of Mango with all updates applied (you also have access to our system remotely - @mihairosu can assist if needed)

      Thanks!

      Error Log:

      ERROR 2018-04-17T17:46:23,913 (com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager$StatusProvider.scheduleTimeout:738) - 1 BWB Task Failures, first is: Task Queue Full 
      ERROR 2018-04-17T20:33:49,801 (com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager$StatusProvider.scheduleTimeout:738) - 5 BWB Task Failures, first is: Task Queue Full 
      ERROR 2018-04-17T20:34:29,613 (com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager$StatusProvider.scheduleTimeout:738) - 2 BWB Task Failures, first is: Task Queue Full 
      ERROR 2018-04-17T22:25:28,914 (com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager$StatusProvider.scheduleTimeout:738) - 1 BWB Task Failures, first is: Task Queue Full 
      WARN  2018-04-17T23:13:33,558 (com.infiniteautomation.mango.rest.v2.ServerRestV2Controller.postClientError:215) - Client error
      [user=guest, cause=, location=http://historian/ui/data-point-details/LibraryThermostatHeatMode, userAgent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36, language=en-US, date=2018-04-17T23:13:33.559-05:00, timezone=America/Chicago]
      Error: [ngRepeat:dupes] http://errors.angularjs.org/1.6.9/ngRepeat/dupes?p0=value%20in%20realtimePointValues%20%7C%20orderBy%3A%20myOrder%20track%20by%20value.timestamp&p1=1524024810000&p2=%7B%22value%22%3A1%2C%22rendered%22%3A%22Heat%20On%22%2C%22timestamp%22%3A1524024810000%2C%22annotation%22%3Anull%7D
      	at null (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:7:76)
      	at null (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:317:375)
      	at null (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:147:302)
      	at m.$digest (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:148:398)
      	at m.$apply (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:151:355)
      	at null (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:144:53)
      	at e (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:48:441)
      	at null (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:51:299) 
      rshah@historian:/opt/mango/logs$ 
      
      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • RE: Angular Errors - Possible Bug

      Update: a restart does fix this issue, but I think it will come back as it has in the past.

      Anyone have any ideas?

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • RE: Angular Errors - Possible Bug

      Hi Phil,

      Would that lead to the error I am seeing with not being able to copy and paste into the code editor?

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • RE: Angular Errors - Possible Bug

      @phildunlap said in Angular Errors - Possible Bug:

      No, it's hard to believe that can be caused by anything other than you having that URL on the clipboard, and not what you thought. But, I will see what Jared thinks, if there may be some fanciness in that editor to the copy / paste, but I doubt it.

      It for sure wasn't on the clipboard -- we tested it across different computers, across different browsers etc.

      It only pasted the URL of the page.

      I opened a different application and pasted into that and got the right stuff, and back to the Historian and it was the URL again.

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • Event Detector - get point by XID

      Hi,

      Is it possible to get the value of event detectors (I assume they return a binary 0 or 1) by XID?

      I tried ma-get-point for the XID of the event detector and it looks like it just returns an empty object.

      Thanks!

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • RE: Angular Errors - Possible Bug

      @jared-wiltshire said in Angular Errors - Possible Bug:

      Can you please post more information as per https://help.infiniteautomation.com/reporting-bugs/
      Specifically the browser you are using, please try another browser to try and isolate the issue.

      Hi Jared:

      I have tried in:
      OSX 10.13.4 Safari 11.1, Chrome: 65.0.3325.181 (with and without incognito)
      Windows 7: Chrome 66.0.3359.117 (with and without incognito) -> totally different computer

      We are running the latest version of Mango and the dashboards module.

      The issue was resolved after a restart of Mango. I had a video which I unfortunately deleted which showed the issue very clearly, but I do have a slightly worse video which somewhat demonstrates it which I can PM or Email you if you like.

      You also have access to our mango instance via SSH and WebGUI if needed.

      Please feel free to let me know if you need any further information

      Edit: there was only one (likely) unrelated error in the console about a variable I had misnamed.

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • RE: Angular Errors - Possible Bug

      @jared-wiltshire Sent via chat since I couldn't find any other way to PM you.

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • RE: Event Detector - get point by XID

      Thank you, @Jared-Wiltshire .

      Is it in the development plan to introduce something which would allow us to get the value of an event detector similar to how we get the value of a point?

      I see that event-detectors already have their own XID, so a way to get a binary 1 / 0 from that XID with something like <ma-point-values point-xid="eventDetectorXID"></ma-point-values> would be great.

      Although I'm not sure how technically difficult it would be, or if it is even a good solution.

      It looks like the component you wrote above actually does just that, except I'm not sure how it deals with multiple events for one point-- haven't tried it yet.

      Do we have to use promises? Or can we use async/await?

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah

    Latest posts made by rshah

    • RE: Difficulty Graphing for custom date / time range

      No problem!

      Here's another screenshot which might give you some ideas as well -- left the dashboard open on my PC overnight and it crashed -- it crashes much faster on our display PCs, but they do have fairly good specs.

      0_1532533684320_image.png

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • RE: Difficulty Graphing for custom date / time range

      Hi @Jared-Wiltshire

      Just want to confirm you rec'd the PM with the chrome profiler?

      Thanks!

      RS

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • RE: Difficulty Graphing for custom date / time range

      Looks like we are using it:

      0_1532043624828_b5a06ae4-76a9-4c6d-aa94-c7e26b322136-image.png

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • RE: Difficulty Graphing for custom date / time range

      @jared-wiltshire said in Difficulty Graphing for custom date / time range:

      How slow is "very slow"? What else is on the page? Are you using the Mango TSDB?

      I guess slow is relative to our other pages, this one is about 4second load time vs the rest which are <1s

      Nothing else on the page except what is in the screenshot above

      Not sure what Mango TSDB is

      Link PMd, thanks!

      RS

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • Difficulty Graphing for custom date / time range

      Hi All,

      I've asked a similar question before but we're still having some trouble understanding the best way to create a serial chart for the past 12 hours.

      What we are doing now works BUT, if you graph "too many" points (one of our dashboard pages has 7 points across two graphs), the page loads very slow and crashes frequently. I believe the way we are doing it now is not the best way, so I'm hoping for some advice.

      Is there a more efficient way to achieve what we want?

      This is a small sample of what we are doing now:

      <!-- We only want to obtain last 12 hours of data, so use Angular Moment Library to do figure out what last 12 hours are-->
      <ma-now update-interval="1 minutes" output="to"></ma-now>
      <ma-calc input="to | maMoment:'subtract':12:'hours'" output="from"></ma-calc>
      
      <!-- Get last 12 hour of flow, suction, and output pressure data, averaged over 1 minute -->
      <ma-point-values 
          point-xid="leaderOutdoorTemperature"
          rendered="true" 
          values="leaderOutdoorTemperatureHistorical" 
          from="from" 
          to="to" 
          rollup="AVERAGE" 
          rollup-interval="1 minutes">
      </ma-point-values> 
      

      Here's the dasboard:
      0_1532018916179_c6e84fc5-a7af-4e47-b13d-f47e5f2f224a-image.png

      Some further info:
      0_1532019039042_cfd5ec52-8d61-447d-b04b-c51c7baa7d13-image.png

      0_1532019092491_80209cd4-11dd-44a4-b942-1dd685f95a3a-image.png

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • RE: Dashboard Allow Embedded

      All:

      Error:

      Viewer.html?type=schedule&id=7fd6408d-8982-4e29-9d27-60866b1da8fd:1 Refused to display 'http://historian.internal.sheridanpoint.org/ui/updated-waterfall-information-screen' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

      posted in User help
      R
      rshah
    • RE: Git Hooks

      @jared-wiltshire said in Git Hooks:

      flex layout="column"

      That did it! Thanks!

      What did you notice that caused you to think that was the solution @Jared-Wiltshire ?

      Also thanks for your help @MattFox -- If you ever have time I'd love to send you some of our code to pick your brain on how we're handling ma-serial-chart.

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • RE: Git Hooks

      Doesn't look like there are a ton of styles being applied to the div that would mess with anything, we used inline styles everywhere so they should have priority.
      Do you see anything that catches your eye?

      0_1528740085148_ddc9d8d9-a4da-409d-850e-3d9e20f49f47-image.png

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • RE: Git Hooks

      Hey @MattFox / @Jared-Wiltshire / @phildunlap ,

      Wondering if you guys have run into an issue with using ng-include in a div with it changing the page size?

      I am assuming the div has a default style being applied to it which is making things larger, but I haven't been able to find anything. Screenshots below:

      Version 1 - code stored in overrides, included with ng-include in a div (as you can see, everything is larger and a scroll bar is added to the page since the content doesn't fit)

      Code:
      0_1528734086400_b5b4ea24-a1ee-4ccb-a81b-dab4dda3fd4e-image.png

      Screen:
      0_1528733961415_2018-06-11 11_14_53-Updated Waterfall Information Screen - Mango v3.png


      Version 2 - Code pasted directly into the edit pages menu, scroll bar is gone, everything fits fine:

      Code:
      0_1528734025570_d04da120-446d-4eb1-b2a7-cbd4b6ffb550-image.png

      Screen (as you can see scroll bar is gone, everything fits)
      0_1528734044649_2018-06-11 11_15_39-Updated Waterfall Information Screen - Mango v3.png

      posted in Dashboard Designer & Custom AngularJS Pages
      R
      rshah
    • RE: Point Values

      @leoboeng said in Point Values:

      "Values of points limited to 5001 values, please shorten the time interval or adjust the rollup interval"

      Are you trying to view these points on a chart? That's the only time I've seen this message come up.

      I do not think you are limited on the number of point values you can store (though that possibly varies based on your license?) , but you are limited on the number you can show on a chart at any given time.

      posted in User help
      R
      rshah