• D
    Dan M

    Tried installing mango 4 to play with it a bit on linux. Found a couple potential issues. When running the script, it stopped and said:

    install-mango.sh: 144: cannot create /opt/mango/overrides/properties/env.properties: Directory nonexistent
    

    Had to add mkdir overrides and mkdir properties to the install script for it to finish..

    Mango configured to use latest MySQL. After setting it up, mango went into a restart loop. Found this in the log:

    Caused by: java.sql.SQLException: The server time zone value 'EDT' is unrecognized or represents more than one time zone. You must configure either the server or JDBC>
    

    To fix, I had to add "?serverTimezone=UTC" to the env.properties

    db.url=jdbc:mysql://localhost/mango?useSSL=false&serverTimezone=UTC
    

    posted in Mango General read more
  • D
    Dan M

    ok i just found it. I did not see event detectors when I went to edit the data point. I had to click on the 3 vertical bullets on the right hand side of the list of points, and click event detectors.
    Suggest to put an event detectors tab when editing a data point if possible.
    Thanks.

    posted in Mango General read more
  • D
    Dan M

    Using latest version of Mango Enterprise. Does the Event Detectors button not supposed to work under Admin Home? Its there, but doesn't work as a link..

    posted in Mango General read more
  • D
    Dan M

    I'm looking to see if I can port my previous project from Mango 2.8 to the current version. I have a custom dashboard that is quite customized and would prefer to keep using it. Using the admin-template, I've gotten it ported over but css is being forced into the <head> even though I've removed the cssInjector from app.js. Is there any way to disable this?

    posted in User help read more
  • D
    Dan M

    Is there a way to restart the mango server from a script (like a RuntimeManager.restartInstance command)? I've been playing around with Mango (2.8.6 version) on a raspberry pi 3 and after a while, memory goes down. Once the JVM shows around 160MB free memory left, it will occasionally crash requiring a hard reboot. Is there a cheap and easy fix for now to just do a server restart? Not the ideal or finish solution, but will work for the time being..

    posted in Mango General read more
  • D
    Dan M

    @phildunlap said in Scripting to reset serial (MODBUS) data source:

    RuntimeManager.sleep(200)

    @phildunlap I tried to use the sleep code for something else but I get this:

    TypeError: { dataSourceEnabled(xid): boolean, enableDataSource(xid): -1 0 1, disableDataSource(xid): -1 0 1, dataPointEnabled(xid): boolean, enableDataPoint(xid): -1 0 1, disableDataPoint(xid): -1 0 1, } has no such function "Sleep" in at line number 3
    at line:

    is RuntimeManager.sleep(XXXX) a valid function? I've seen it posted elsewhere but its not working for me..

    posted in Scripting general Discussion read more
  • D
    Dan M

    I made a script data source to do this..

    if(RuntimeManager.isDataSourceEnabled('DS_Modbus') === true)
    {
        if (--Condition that occurs that means you need to reset, i.e slave monitor shows datasource is offline--)
        {
             RuntimeManager.disableDataSource('DS_Modbus');  // disable DataSource 
             while (RuntimeManager.isDataSourceEnabled('DS_Modbus') === true) {}    //loops until DataSource is disabled since it might take a few seconds to disable depending on your timeouts, etc..
             RuntimeManager.enableDataSource('DS_Modbus');    // re-enable DataSource  
            }
    }
    

    posted in Scripting general Discussion read more
  • D
    Dan M

    Thanks, that's what I was going to try this weekend.

    posted in Hardware read more