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.

  • How to get event instance data as object using Script Event Handler

    3
    1 Votes
    3 Posts
    1k Views
    terrypackerT
    @mert sorry for the delay. Another option would be to use the Service that is injected into the context like this: const dataSourceService = services.dataSourceService; const ip = dataSourceService.get('xid'); Also here is a collection of example scripts for the new environment and a few for the legacy one: https://github.com/infiniteautomation/script-examples
  • How can I define a permission to a new role to view all global scripts?

    3
    0 Votes
    3 Posts
    983 Views
    M
    Is there any plan to give permission to Global Scripts? Because user can view Global Scripts page and scripting permissions can be defined on system permissions.
  • Config Import

    6
    0 Votes
    6 Posts
    2k Views
    T
    @joelhaggar said in Config Import: To set a PTCP data point it will send the set command down to the originating data point. Ah! That's very good to know, thanks for that note. I wasn't aware the PTCP points are working in both directions like that.
  • Is there any way to export an event detector?

    9
    0 Votes
    9 Posts
    2k Views
    T
    @cwangv Yes, thanks. Seems like there is no harm in just importing it over the existing one that I receive through the Persistent TCP data source.
  • Create a graph with selectable points

    2
    0 Votes
    2 Posts
    769 Views
    JoelHaggarJ
    I think there is a component similar to what you are asking about in this demo https://github.com/infiniteautomation/mango-demo The demo is for Mango v4 and is a bit outdated but might give you some ideas on how to get it done.
  • permissions for new role to end points

    5
    0 Votes
    5 Posts
    1k Views
    nmartinezN
    @jared-wiltshire Yes, my bad. Oh i see, well thx for the help again.
  • Update on Tutorial

    6
    0 Votes
    6 Posts
    2k Views
    cwangvC
    @tungthanh500 yes, there are buttons on the top right hand corner of the page that you can use to create folders and files.
  • Mango 4 couple questions

    2
    0 Votes
    2 Posts
    966 Views
    U
    1.Administration-Dashboard designer 2.enable componenet list 3. in component list click on Basic component-Link link button appears on page 4. in property editor open Element specific list 5.open link-to-state list 6.find page to link and set
  • How to recalculate a meta data point for entire history of context var

    4
    0 Votes
    4 Posts
    1k Views
    T
    @till Found it! Generate History When creating a new Meta Point sometimes it is helpful to backfill values for it. This can be done by the generate history link in the Data Points table. The most recent saved value for all Context Points is found and that date is used for the Starting date for the simulation. (If any context point has no saved values the Generation will fail here) The oldest saved value for the Meta Point is found and that is used as the Ending date for the simulation. (If no values exist the current time is used) The simulation is run from Starting to Ending times and a values are created and saved according to the Meta Point settings. This means that a history can only be generated for times before the earliest Meta Point value. Calls to set() tell the database to save this value regardless of logging type and do not send it out through the data source
  • 0 Votes
    7 Posts
    2k Views
    MattFoxM
    var pointValues = myContextPoint.getPointValuesBetween(fromTimestampInMilliseconds,toTimestampInMilliseconds); print(pointValues); Fox
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Mango v4 - System Permission to "View" other users for Non-superadmin

    5
    0 Votes
    5 Posts
    2k Views
    ricardoR
    Hi Joel, I am able to confirm the function is working in v4.0.0 Beta.14. Many thanks for your reply.
  • OPC Point individual value of specific bit

    1
    0 Votes
    1 Posts
    634 Views
    No one has replied
  • Setting Several Data Points at once

    36
    0 Votes
    36 Posts
    26k Views
    MattFoxM
    Message sent
  • Writting to JSON store from a Global Script

    json scripting
    6
    0 Votes
    6 Posts
    2k Views
    ThomasEinastoT
    Can you show your whole method instead of the error? Cant really help otherwise. Also version of Mango would also be helpful to know as 4.x has some major changes in scripting env.
  • How to disable Unknown Topic in ma.log for MQTT?

    1
    0 Votes
    1 Posts
    474 Views
    No one has replied
  • Mango 4.0 language translation file problem

    1
    0 Votes
    1 Posts
    533 Views
    No one has replied
  • Mqtt datasource command

    4
    0 Votes
    4 Posts
    2k Views
    MattFoxM
    1)make a virtual datasource binary datapoint, add it to the script context points. Tick the checkbox that this point triggers the script. we shall call the context point switch. Then add your mqtt point to the context. We shall call it toggle. It does not need the checkbox to the right filled. Ensure the mqtt point is settable This is the script. if(switch.value===true) { toggle.set("on"); } if(switch.value===false) { toggle.set("off"); } See how you go. I do not use the mqtt client myself, but generally all points can be set - some which send the value back out the data source. I am hoping this is the latter... Hope this helps Fox
  • Calling JSON store item in scripting datasource

    4
    0 Votes
    4 Posts
    2k Views
    ricardoR
    Hi @CraigWeb , I was successful in following the suggestion and get access to JSON store in scripting data source. However, I cannot do the same in script area of Event Handler. I get the following error when trying to validate. java.lang.RuntimeException: java.lang.ClassNotFoundException: com.serotonin.m2m2.Common.getBean Any ideas? BR, Ricardo
  • Simple Heat Control Sample

    1
    0 Votes
    1 Posts
    754 Views
    No one has replied