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.

  • Trendline Chart bug

    8
    0 Votes
    8 Posts
    2k Views
    S
    @mattfox Thank you for sharing that code. As of this project, I don't think it would be cost effective for me to learn and redo all the pages just for the drag to zoom function on a chart.
  • Assigning Event Handler (Set Point) output to multiple targets

    4
    0 Votes
    4 Posts
    1k Views
    phildunlapP
    That enables one to handle multiple event types with the same event handler, not only point event detector event types. There is not a way through the UI to configure that sort of situation yet, but you can import it already and it'll work. It would be many-events-to-single-handler instead of single-handler-to-many-points. Looping over points and using the set() function is the only way to set multiple values from a set point handler. You can still construct the context (which should work automatically with the snippet I shared) through JSON via the "additionalContext" property of the set point handler.
  • Exporting in CSV

    4
    0 Votes
    4 Posts
    1k Views
    P
    You guys are awesome :) Thank you
  • How to broadcast BACnet IP?

    7
    0 Votes
    7 Posts
    2k Views
    J
    It worked perfectly! The module is working now. Thank you.
  • I need help to enter mango with a web address

    5
    0 Votes
    5 Posts
    2k Views
    M
    @jared-wiltshire Thank you very much, now I am clear on what I will do thanks to your help.
  • Mango 3.4.4 on Windows 2012

    2
    0 Votes
    2 Posts
    659 Views
    phildunlapP
    Hi BG, That looks like a fine boot (ignoring the connection timeout to the store). I would wonder if perhaps he has a browser extension like an adblocker that maybe blocked a script? You could try the /login.htm page (although that may only get you one step farther, as you'd probably have to navigate to an old UI page like /data_point_details.shtm or you'll be loading the new UI again, that spinning circle on grey). To find the cause, you probably need to have them open their browser developer tools and examine if there is an error while they are loading the grey spinning circle and report back.
  • Data File importer duplicate values

    3
    0 Votes
    3 Posts
    1k Views
    phildunlapP
    Hi psysak, I think having the importer check to see if the value exists is a possible and not incorrect direction. You should be able to import whatever classes you like and use them however you like. This may be the right time to use a com.serotonin.m2m2.rt.dataImage.PointValueFacade: https://github.com/infiniteautomation/ma-core-public/blob/main/Core/src/com/serotonin/m2m2/rt/dataImage/PointValueFacade.java There would be a hacky way of getting that information more available to the CSV importer somewhat simply by adding a point to the data file data source in question, and then updating that point's "Identifier in import document" through a meta point triggered by the new data imported. var timePoint = JSON.parse(JsonEmport.dataPointQuery("eq(xid,DP_time_informer)"))["dataPoints"][0] timePoint.pointLocator.fromIdentifier = String( targetPoint.time ); JsonEmport.doImport( JSON.stringify( { "dataPoints": [timePoint] } )); Then changing the importer with something like... private long lastImportTime; @Override public boolean takesPointIdentifiers() { return true; } @Override public void setIdentifiers(String[] identifiers) { //super.setIdentifier(identifiers) if you want this.identifiers = identifiers for(String s : identifiers) if( !"".equals(s) ) { //Presuming all other identifier fields are empty lastImportTime = Long.valueOf(s); break; } } It could also be that the best solution is to modify the data file importer to import a digested data set into an alphanumeric point. Say, pick some format to encode the last ten days into an alphanumeric point, and then use a script to digest it farther and check if the value for that day / time already existed. var valuesList = alphanum.value.split("~"); //5@15~10@20 //iterate valuesList, split the time from the value and set to the end point for(var k = 0; k < valuesList.length; k+=1) { var valuePair = valuesList[k].split("@"); output.set( Number(valuePair[0]), Number(valuePair[1]) ); } I didn't test any of that, but it should work.... Edit: Also, if using NoSQL this shouldn't be an issue. The date should always resolve to the same millisecond and it should overwrite the previous value at that millisecond.
  • Custom Page disappeared

    9
    0 Votes
    9 Posts
    2k Views
    Jared WiltshireJ
    @sbaik said in Custom Page disappeared: I believe it was on an earlier version than 3.2. Perhaps it was deleted before I updated to 3.4 last week and just noticed it after. Ah OK, that's probably it then. I feel confident we fixed the issue, let me know if you see anything odd again.
  • Data type change via upload

    3
    0 Votes
    3 Posts
    930 Views
    CraigWebC
    Hi Phildunlap, Thank you for the response. I have a whole lot of meta data points used to scale a value, which are alphanumeric. I want to change to numeric. Not to worried about losing data. Just wanted to make sure It is safe to do a bulk update with out anything else going wrong.
  • Convert from H2 to mySQL Database guidelines

    7
    0 Votes
    7 Posts
    4k Views
    pierjsapP
    Thank so much @Jared-Wiltshire and @phildunlap ;)
  • Momentary Button

    17
    0 Votes
    17 Posts
    3k Views
    S
    @jared-wiltshire Thank you, that is exactly what I was missing. I tried ma-get-point-value, but did not know to put "point.setValue(true)" in the ma-button markup.
  • Excel Report Stuck in Running State

    6
    0 Votes
    6 Posts
    1k Views
    phildunlapP
    Oh, and the timezone on the system settings page is gotten from the operating system. So, in Linux you would want to modify /etc/timezone
  • Mango's Out of Memory Problem

    19
    0 Votes
    19 Posts
    6k Views
    phildunlapP
    If there were, it would be a nightmare to investigate it through console screenshots. You can email your logs and your latest Mango/backup/core-database-H2-...zip file to support@infiniteautomation.com and I'll give it a look.
  • event handlers

    3
    0 Votes
    3 Posts
    1k Views
    CraigWebC
    Awesome! i'll give it a shot... Thank you.
  • Charts disappear in watch list

    14
    0 Votes
    14 Posts
    3k Views
    phildunlapP
    Hmm. Rereading the description, it sounds like maybe the websockets were still getting updates appropriately but for whatever reason the CSRF token was missing from the chart data request? Are you accessing it through a proxy? Without some clearer direction and it being, "fixed" we're unlikely to keep thinking about it. If you notice it again, be sure to recount what you were doing in the system for some time prior. I would not expect the existence of users to be the affecting factor. If it were, restarting would be sufficient to blow out any caching, and user session information is not stored in the database.
  • DNP3 analog input

    5
    0 Votes
    5 Posts
    2k Views
    phildunlapP
    Hi Felipe, I'm not sure what you mean. The Modbus4J library will already handle the conversion from a numeric point value (a double) in Mango to whatever data type it needs to be. You can see the exact code for this here: https://github.com/infiniteautomation/modbus4j/blob/50d7dfe6c0330bf720ae97492c9213c21fdb8d5f/Modbus4J/src_cdc/com/serotonin/cdc/modbus4j/locator/NumericLocator.java#L201 I can assure you many people have set values to integer registers through the Mango interface. I am not sure what this means, Considering all tests and results, I think the problem is that the float values (regulator outputs) are not compatible with the 2 byte integer data, which is the type that Arduino can read and process.
  • Possible reason for server error using the point hierarchy editor

    4
    0 Votes
    4 Posts
    1k Views
    phildunlapP
    Hi Phillip, I suspect you need to delete your Mango/work/jsp directory.
  • Multistate from analog ranges

    5
    0 Votes
    5 Posts
    2k Views
    P
    Thanks Phil, Your logic was sound. I was trying to set this remotely over a very slow connection I wonder if that was the problem?? Went to site and deleted the point and started again, everything worked fine. Cheers!
  • SQL DataSource

    3
    0 Votes
    3 Posts
    1k Views
    phildunlapP
    Hi pierjsap, I too am somewhat confused. It sounds like you're asking if the SQL data source can read data? The answer is yes, it can store data from the data source's select statement or it can be configured only to update the table (which it must be if you wish to set the point to some dynamic value in the update statement, a point that isn't "Modify Table Only" will only have a constant update statement), You either have to match the 'Column name' property of the point to the column names returned, or do a "row based query" and have the column name match the value in the first column of the results, then its value in the second column. There are a few examples scattered around the forum. If you can say more, perhaps I can recall a relevant thread for you.
  • The charts can not be viewed in watchlist

    4
    0 Votes
    4 Posts
    1k Views
    phildunlapP
    @pierjsap He's talking about the old /watch_list.shtm page. But, it's good advice when making your own charts from watchlists in the new UI! Hi tangyiping, I would expect that's caused by an NaN or Infinite value in one of the point's series. Do most of them chart individually if you uncheck the other boxes adding those points to the chart? Or, perhaps easier, if you download the data using the green download arrow after the chart has not rendered, do you find NaN and Infinity in the data set? Otherwise I would wonder if there was a message in your logs about what could have failed. But, it looks like the chart generated without showing any values, as in these images where I have a script doing, p.set(Number.POSITIVE_INFINITY); RuntimeManager.sleep(5000); p.set(Number.NEGATIVE_INFINITY); RuntimeManager.sleep(5000); p.set(Number.NaN); I produced these charts: [image: EmIYyJ8.png] [image: BI7etBP.png]