• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. JoHn-Beer
    3. Topics

    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
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 22
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by JoHn-Beer

    • J

      Scripting control to Publishers

      Dashboard Designer & Custom AngularJS Pages
      • • • JoHn-Beer
      2
      0
      Votes
      2
      Posts
      1.1k
      Views

      phildunlapP

      Hi JoHn-Beer,

      It does seem like those functions should exist for completeness. Currently there would be two ways to do this,

      Use the JsonEmport tool. You could export the publishers JSON, find the publisher you wished to toggle, change the 'enabled' property appropriately and reimport. Go through the actual runtime manager, like function enablePublisher(xid, enabled) { var publisher = com.serotonin.m2m2.db.dao.PublisherDao.getByXid(xid); publisher.enabled = enabled; com.serotonin.m2m2.Common.runtimeManager.savePublisher(publisher); }

      And then call it as needed. I'll create a git issue about putting such a function into the script environments' RuntimeManager utility.

    • J

      I'm stuck in writing problems.

      Dashboard Designer & Custom AngularJS Pages
      • • • JoHn-Beer
      2
      0
      Votes
      2
      Posts
      985
      Views

      phildunlapP

      Hi JoHn-Beer,

      It sounds like a time to use the PointValueQuery.

      var endDate = CONTEXT.getTimestamp(); var startDate = endDate - CONTEXT.millisInPast(DAY, 30); //handles DST shenanigans var results = []; var callback = function(idValueTime) { results.push(idValueTime); }; var pointsToQuery = [ p1.getDataPointWrapper().getId() ]; PointValueQuery.rollupQuery( pointsToQuery, startDate, endDate, callback, LAST, 1, DAY); print(results); //Do want you want now with the results, or in the callback function

      Run on cron 0 0 8 * * ?

    • J

      MANGO Problem

      Mango General
      • • • JoHn-Beer
      4
      0
      Votes
      4
      Posts
      1.8k
      Views

      phildunlapP

      I would not expect 2000 - 3000 Modbus points polled perhaps every 5 seconds to overwhelm the ES from a data acquisition standpoint. Were you able to get it started and running again?

    • J

      Excel Report cannot be opened

      Dashboard Designer & Custom AngularJS Pages
      • • • JoHn-Beer
      14
      0
      Votes
      14
      Posts
      3.7k
      Views

      phildunlapP

      Can you check the contents of the /opt/mango/web/modules/excelReports/report-data over SSH or webmin? If there are file extensions there (and looking at the code I cannot imagine there are not) then the issue must either be your computer/browser, or however you're downloading the file. Maybe circle in a screenshot where you're downloading the file from?

      I was not able to reproduce what you described, and further I cannot see any way in the code for the files on the ES not to have the proper extension, and there is certainly nothing that would be stripping that extension off when you download the file.

    • J

      Google map can not be used and can not add datasource

      Dashboard Designer & Custom AngularJS Pages
      • • • JoHn-Beer
      5
      0
      Votes
      5
      Posts
      1.5k
      Views

      phildunlapP

      Did you try deleting your Mango/work/jsp directory?

    • J

      Publishers send to events

      Dashboard Designer & Custom AngularJS Pages
      • • • JoHn-Beer
      2
      0
      Votes
      2
      Posts
      869
      Views

      phildunlapP

      Hi John-Beer,

      I don't think you are using Mango's names for things. Publishers make the point values of data points available to other machines. Tags are key value pairs associated with data points. The HTTP Sender sends data point values that occur while it is running over HTTP to a configured URL in a format discussed in this thread: https://forum.infiniteautomation.com/topic/2187/how-to-use-publishers-http-sender

      Events are either detected by data sources or data points, and tracked independently whether a condition was met or a thing didn't function as expected. These can be handled in such a way to set a point value to a data point, which can be send by the publisher.

      The HTTP Sender does not make any use of what Mango calls 'tags'

    • J

      how to export event alarm to excel report?

      Dashboard Designer & Custom AngularJS Pages
      • • • JoHn-Beer
      8
      0
      Votes
      8
      Posts
      2.2k
      Views

      J

      @phildunlap
      Thank you for support

    • J

      Event detector

      Dashboard Designer & Custom AngularJS Pages
      • • • JoHn-Beer
      6
      0
      Votes
      6
      Posts
      1.9k
      Views

      Jared WiltshireJ

      @john-beer said in Event detector:

      1.Event detector. If event detector is alert I can do it on dashboards. For example, event detector is alert.I want to use the color of the graph flashing when the acknowledge does not blink.

      There is no support for this built into the components just yet. Please see @phildunlap 's answer

      You could write your own component and put it in the user module. To get events for a data point you would use the maEvents service using code like this

      maEvents.buildQuery() .eq('dataPointId', 123) .eq('active', true) .query().then(result => { // do something with events });