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.

  • Mango Server stops storing data.

    6
    0 Votes
    6 Posts
    1k Views
    phildunlapP
    Sure, email a zip of your ma.log files to support @ infiniteautomation.com
  • Strange delta calculations

    2
    0 Votes
    2 Posts
    625 Views
    P
    Forgot to add that the values the mango is calculating don't even seem to make sense. If this is running every 5 minutes I would expect that it's either going to be correct or double what I expect. What's weird also is that it's wrong a few times in a row and then it's correct, then wrong, then correct again...
  • Action on the Data source trigger is timing out

    2
    0 Votes
    2 Posts
    897 Views
    phildunlapP
    Hi runnikri, Sometimes when the old UI is running slowly, you have many events. Can you try purging your events from the Purge Settings section of the system settings page, and see if that resolves the issue?
  • Alarm Notification - Alternatives to Email

    2
    0 Votes
    2 Posts
    944 Views
    phildunlapP
    Hi Wingnutz, You have many options! If you use a set point event handler, you can script up an arbitrary bunch of sets to whatever kind of point you wish. This could be points published by a Twilio publisher, or any other kind of publisher, or you could set a value to a TCP/IP point and do arbitrary work, or you could use the HttpBuilder to issue a request somewhere. Anything that isn't possible through these mechanisms would probably be possible through a Process Handler. As far as just sending out alarms through the HttpSender, you can simply have a virtual alphanumeric point that you publish, then use the set point handler to set your alarm message into the alphanumeric point. For another system's API, you can definitely look into coding scripts with the HttpBuilder, or post a snippet of the API and I can provide a starting point.
  • SQL Data Source - Query

    2
    0 Votes
    2 Posts
    2k Views
    phildunlapP
    Hi runnikri, Mango should be able to do this! What do you mean "import all of the descriptions as separate entries in the Mango"? When we spoke on the phone, I understood all the descriptions as being different point values of the same point, and so that is how my answer is crafted. Did that change? Because you want all the descriptions in the same point, you'll want to select the IDs as the same string which you can use as the identifier, something like, SELECT 'description' AS eventId, description FROM events Now we can use description as our Alphanumeric point's Row Identifier. if we select now, we'll see all the values quickly be set to the point, but when we check the history we'll only see one. This is because without providing timestamp information the data source gave all those point values the same timestamp, and Mango only supports a single value for a point at a time. So, we'll need to select for that timestamp information. If there is an additional Date column in this table, you can use that. Otherwise, you may want to use functions built into your SQL server for getting a timestamp. For a MySQL server, you could also select a column like unix_timestamp(current_timestamp-id) as date which would guarantee every row in the result had a different timestamp. However, this would not get the same timestamp for the same event on two different calls, so this could introduce false records at odd times. It would also be a good idea to ORDER BY date ASC so that Mango properly processes values meant for the same point (all of them) without deciding any of them have come from the past. To prevent false records, I would also return the current max(id) from the table, then use another SQL point that 'Modify table only' to delete all events with IDs below the max read. Were it possible to have a parameter in the SQL data source's select statement this would not be necessary, but we can't prevent selecting records we've already read - so either they must have the same timestamp every read or we must purge them. To select the max id in the same statement, you can try a statement like... select 'description' as EventID, description, unix_timestamp(current_timestamp-id) as date from events union select 'maxId' as EventID, max(id) as description, unix_timestamp(current_timestamp) as date from testData order by date asc; Which is then selected into a point with row identifier maxId, This point has a change detector or point link to the SQL "Modify table only" point that clears the read events from the table.
  • Mango stopped reading data

    4
    0 Votes
    4 Posts
    985 Views
    P
    Hmm, most of my other Mangos in that group of buildings are already V3 and aren't doing BACnet, these two are actually the only V2s I have in that group :) Perhaps I will take the opportunity to swap them.
  • HTTP retriever - regex matching multiple values

    4
    0 Votes
    4 Posts
    2k Views
    jeremyhJ
    Brilliant, thanks Phil. Appreciate your explanation. That second regex works perfectly!
  • 0 Votes
    2 Posts
    2k Views
    T
    Now i can insert data to mySql ready. but data will insert to mysql when i Click set data. How to automatic insert by time interval or when data change? [image: Screen_Shot_2560_11_24_at_14_50_40.png]
  • Pulling multiple parameters from a single JSON result

    6
    0 Votes
    6 Posts
    2k Views
    phildunlapP
    Very powerful! I've definitely done many quick things by serializing data into an alphanumeric point with JSON.stringify(object) and getting it back elsewhere with JSON.parse(string)
  • Excel report pivot table

    2
    0 Votes
    2 Posts
    1k Views
    phildunlapP
    Hi psysak, I admit to having just tried to learn about pivot tables. It seems to me that if your pivot table were defined in terms of the named ranges, it should work. But, I attempted this with Google sheets and discovered one cannot tie a pivot table to a named range. If this is what you have tried (which, I actually think Excel would do automatically), then it's probably not possible. Looking into the documentation for Apache POI, I didn't see anything that suggested a notion of recomputing, only defining again. While it is possible in Apache POI to define a pivot table, the relevant configuration is not offered through Mango and so this would be somewhat of a feat to achieve, currently.
  • Disable System Events for (simple) Users

    4
    0 Votes
    4 Posts
    1k Views
    phildunlapP
    No worries! I think I found something else important anyway in the course of answering, so thanks for asking a good question.
  • Can i change localhost port in Mango?

    3
    0 Votes
    3 Posts
    2k Views
    phildunlapP
    Thanks for contributing Thirawad! Hi Nikospps, Thirawad is correct about how to change the port. If you haven't already you'll want to copy your Mango/classes/env.properties file into Mango/overrides/properties/ and then edit it there. This was, if you update Mango your env.properties is not overwritten with the default. You need to restart Mango for a port change to take effect.
  • Is there a way to assign a point an alias or "human readable name"?

    7
    0 Votes
    7 Posts
    2k Views
    P
    @jared-wiltshire said in Is there a way to assign a point an alias or "human readable name"?: @psysak The good news is that data point tagging will be coming soon (v3.3.0) for the very reason you have described. Very cool!
  • Delete extreme values on a case by case basis

    2
    0 Votes
    2 Posts
    998 Views
    phildunlapP
    Hi rshah, You can clean the data up by exporting it using the download arrow in the image you shared, then using the add/modify/delete column to specify you wish to delete those values, then you can use the /dataImport.shtm page to have those changes processed. Then, on the data point itself, you can use the "Discard extreme values" settings to avoid having extreme values in the data to begin with. Edit: Yes it would be possible to review existing values and clean them from a script. I think it would look a lot like this.... //Untested var toDelete = []; var pntId = 1; var pvd = com.serotonin.m2m2.Common.databaseProxy.newPointValueDao(); //Do the query pvd.getPointValuesBetween(pntId, 0, new Date().getTime(), function(item, index) { //Find the values to delete in the callback if(item.value > 123) toDelete.push(item); }); for(var k =0; k < toDelete.length; k+=1) { pvd.deletePointValuesBetween(pntId, toDelete[k].time, toDelete[k].time+1) }
  • MangoESv3 How to Delete 340,000 Critical Events from Terminal?

    3
    0 Votes
    3 Posts
    886 Views
    M
    Thanks Joel, everything's back under control now.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Connection to Historical point value DB (postgreSQL)

    2
    0 Votes
    2 Posts
    736 Views
    Jared WiltshireJ
    @eksantrik The SQL Data Source should accomplish what you need. https://help.infiniteautomation.com/configuring-data-sources-and-data-points/ Once you have added a SQL Data Source, click the blue help icon for more documentation.
  • How to force data bi-direction between HTTP Sender and HTTP Receiver

    5
    0 Votes
    5 Posts
    2k Views
    T
    Thank you for your advice and checking about publisher's format. yes, i'm worry about the secure too. Thank you again Mr. Phildunlap
  • Setting Data Points in Modbus IP using HEX Addresses

    12
    0 Votes
    12 Posts
    3k Views
    danD
    @nikospps said in Setting Data Points in Modbus IP using HEX Addresses: [SOLVED] Hopefully that i found the solution, which was easy. I converted hex->decimal and used the result as offset gave me values. I will finish my effort and keep you informed. Yeh I've found I have had to convert the hex address to decimal (using Google's friendly calculator) and it works almost every time. Dan
  • [Solved] Disable new UI?

    4
    0 Votes
    4 Posts
    2k Views
    danD
    yep that worked, thanks heaps. Loads much quicker on a lovely remote 3G mobile connection ;)