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

    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

    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