• MattFox MattFox

    @sean said in Point variable use index:

    <div ng-repeat="x in [].constructor(10) track by index">
    <ma-get-point-value point-xid="DP_c{{index}}_temperature" point="c{{index}}_temperature"></ma-get-point-value>
    <div class="value">C{{index}} Temperature: <span ng-bind="c{{index}}_temperature.value"></span></div>
    </div>

    Right idea, wrong execution:
    You cannot make a point variable from a text string.
    Use an object on init. Assuming your constructor generates a list of integers...

    <div ng-init="pts={}"><!-- create storage object for point items -->
        
    <div ng-repeat="idx in [0,1,2,3,4,5,6,7,8,9,10] track by $index">
      <ma-get-point-value point-xid="DP_c{{idx}}_temperature" point="pts['c'+idx+'_temperature']"></ma-get-point-value><!-- Initialist object index-->
      <div class="value">C{{idx}} Temperature: <span ng-bind="pts['c{{idx}}_temperature'].value"></span><!-- Bind from established index --></div>
      
    </div>
    
    </div>
    

    Fox

    posted in User help read more
  • MattFox MattFox

    Please wrap log information in code tags. Makes it clearer to read.

    posted in User help read more
  • MattFox MattFox

    Thanks Terry, Ill take up your suggestion of using internal points to gain more insight into our system's behaviour.

    Hopefully from here I can better tune our system....

    Fox

    posted in User help read more
  • MattFox MattFox

    I have got my 3.77 booti.ng with 1000.,So you are telling me the extra threads do not account for anything?

    posted in User help read more
  • MattFox MattFox

    I was a bit off the mark.
    It relates to using the cloud connect module:
    https://docs-v3.mango-os.com/cloud-connect?rq=sessioncookie

    if you want a secure flag on your browser, set up SSL or a reverse proxy with ssl at the front.

    Fox

    posted in User help read more
  • MattFox MattFox

    I believe that is the case, yes.
    Sorry I have not looked at the help docs to give you a better answer

    posted in User help read more
  • MattFox MattFox

    Looking at how our systems are growing exponentially, what guidelines are best advised regarding thread pool counts for ensuring good system health?

    Thanks

    Fox

    posted in User help read more
  • MattFox MattFox

    Use a text editor to escape them with another backslash. Its likely trying to treat the * as a control character...

    \\
    

    Fox

    posted in Mango feedback read more
  • MattFox MattFox

    Its likely used in conjuction with the ssl settings Id imagine, going off of the name of the property

    Fox

    posted in User help read more
  • MattFox MattFox

    {"data":{"mangoStatusCode":-1,"mangoStatusName":null,"localizedMessage":"Internal Server Error — com.serotonin.ShouldNeverHappenException: java.io.EOFException"},"status":500,"config":{"method":"GET","transformRequest":[null],"jsonpCallbackParam":"callback","timeout":{},"url":"/rest/v2/data-points","params":{},"headers":{"Accept":"application/json, text/plain, */*","X-Requested-With":"XMLHttpRequest","X-XSRF-TOKEN":"b622d220-b468-45f8-8a9c-8f37ce3a0079"},"cached":false},"statusText":"Server Error","xhrStatus":"complete","mangoStatusText":"Internal Server Error — com.serotonin.ShouldNeverHappenException: java.io.EOFException","mangoStatusTextShort":"Internal Server Error — com.serotonin.ShouldNeverHappenException: java.io.EOFException","resource":[]}
    
    ERROR 2021-02-16T12:05:19,645 [main] - java.io.EOFException
    com.serotonin.ShouldNeverHappenException: java.io.EOFException
            at com.serotonin.util.SerializationHelper.readObjectInContext(SerializationHelper.java:93) ~[mango-3.7.7.jar:?]
            at com.serotonin.m2m2.db.dao.DataSourceDao$DataSourceRowMapper.mapRow(DataSourceDao.java:146) ~[mango-3.7.7.jar:?]
            at com.serotonin.m2m2.db.dao.DataSourceDao$DataSourceExtractor.extractData(DataSourceDao.java:123) ~[mango-3.7.7.jar:?]
            at com.serotonin.m2m2.db.dao.DataSourceDao$DataSourceExtractor.extractData(DataSourceDao.java:115) ~[mango-3.7.7.jar:?]
            at org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:439) ~[spring-jdbc-5.1.7.RELEASE.jar:5.1.7.RELEASE]
            at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:375) ~[spring-jdbc-5.1.7.RELEASE.jar:5.1.7.RELEASE]
            at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:451) ~[spring-jdbc-5.1.7.RELEASE.jar:5.1.7.RELEASE]
            at com.serotonin.db.DaoUtils.query(DaoUtils.java:254) ~[mango-3.7.7.jar:?]
            at com.serotonin.m2m2.db.dao.DataSourceDao.getDataSources(DataSourceDao.java:88) ~[mango-3.7.7.jar:?]
            at com.serotonin.m2m2.rt.RuntimeManagerImpl.initialize(RuntimeManagerImpl.java:134) ~[mango-3.7.7.jar:?]
            at com.serotonin.m2m2.Lifecycle.runtimeManagerInitialize(Lifecycle.java:791) ~[ma-priv-3.7.7.jar:?]
            at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:330) ~[ma-priv-3.7.7.jar:?]
            at com.serotonin.m2m2.Main.main(Main.java:159) ~[ma-priv-3.7.7.jar:?]
    Caused by: java.io.EOFException
            at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2890) ~[?:?]
            at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3385) ~[?:?]
            at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:942) ~[?:?]
            at java.io.ObjectInputStream.<init>(ObjectInputStream.java:385) ~[?:?]
            at com.serotonin.util.SerializationHelper$ClassLoaderObjectInputStream.<init>(SerializationHelper.java:138) ~[mango-3.7.7.jar:?]
            at com.serotonin.util.SerializationHelper.readObjectInContext(SerializationHelper.java:90) ~[mango-3.7.7.jar:?]
            ... 12 more
    

    Has anyone seen this before??

    EDIT: It gets worse. No users can access their data.... DAMNIT

    posted in User help read more
  • MattFox MattFox

    You can configure mango to save and read from a mysql database. Perhaps that might be easier for you.

    Fox

    posted in User help read more
  • MattFox MattFox

    If you are going to do an upgrade, copy the entire mango directory, bzip it if you have to so then you have a working backup on the mango unit itself. You can do this over ssh assuming you have remote shell access.

    Alternatively, stick with Firefox as its only google chrome that is pulling this jazz.

    To be honest though, I would stay with 3.5 as there are still a number of issues on 3.7 that haven't been fixed as the dev team are swamped with mango 4Beta.

    Just use a different web browser.

    Fox

    posted in Mango General read more
  • MattFox MattFox

    Mango does not use flash

    posted in User help read more
  • MattFox MattFox

    Create other checks and balances to get the feedback you need and make your script smarter.
    Use those values to tell the system to run another script if the scheduler has set a value high/low and feedback hasn't been updated then use that as a means to resend the commands after the event.
    Basically use another script to check the status of the advanced scheduler status and use it to act accordingly.

    Fox

    posted in How-To read more
  • MattFox MattFox

    Yes it will work since the advanced scheduler can be used to run a script on fire.

    Fox

    posted in How-To read more
  • MattFox MattFox

    Its likely all the datasources. I have a similar set up to yourself but have given the system plenty of grunt. In doing so mango starts in less than 5 mins, prob around 3. Plenty of ram is the story with java applications.

    Fox

    posted in User help read more
  • MattFox MattFox

    Would have helped if you had mentioned the remote desktop part a bit sooner...
    If you want remote access, use a VPN. It is secure and easy to set up.

    Fox

    posted in Mango General read more