• cbyrne

    @elena Hmm, seems to be working fine for me. I'm a bit behind with the mango UI module 3.7.3. What's happening when you try add emails using the new ui?

    posted in Mango feedback read more
  • cbyrne

    @craigweb Ah grand, thanks for your help! Also, the mailing list button on the admin home page doesn't seem to be clickable. Perhaps related, perhaps not!

    posted in Mango feedback read more
  • cbyrne

    @terrypacker @CraigWeb Sorry to tag you guys specifically but can anyone confirm that this is indeed a bug?

    posted in Mango feedback read more
  • cbyrne

    @dan Yeah I do the same thing, put each user in their own permissions group. Unfortunately it doesn't seem to be working for the Mailing Lists.

    posted in Mango feedback read more
  • cbyrne

    When logged in as a test user, I can see all mailing lists regardless of their "Roles that can read".

    posted in Mango feedback read more
  • cbyrne

    "Saves historic" (UI) vs "Sets Historical" (help)

    0_1594630421360_cc593049-ba0e-4f8d-a422-bc26a9ac40a3-image.png

    I'd vote for "Sets Historical" for what it's worth.

    posted in Mango feedback read more
  • cbyrne

    Just a little one, while debugging a meta data script the log file path gives an incorrect filename.

    0_1594289614601_05df1bf4-9c70-47e8-980d-4e57390c0520-image.png

    Where the actual file is metaPoint-59.log. The datapointid is 59 so the error is just on the front end.

    posted in Mango feedback read more
  • cbyrne

    @terrypacker Hi Terry, yup that's exactly what we've done in the meantime. Thanks for your help.

    I'm running into trouble when new data gets imported though. See https://forum.infiniteautomation.com/topic/4867/meta-point-classcastexception

    posted in User help read more
  • cbyrne

    @terrypacker Hi Terry, just wondering if there's something we can do from our end to help solve the issue. We're currently in the process of introducing new clients but as our main interest is consumption, the incorrect deltas are detrimental to us.

    posted in User help read more
  • cbyrne

    Hi all,

    I'm doing a pretty simple meta data point that just scales a data point.
    Once an hour, the original data point is updated with 4 readings.

    Upon doing a simple:

    // original is the external context point
    return original.value/100;
    

    This works great for history generation but when triggered by the actual point, I end up with 4 entries with the correct timestamps but all having the same value as the most recent reading. Not entirely sure why.

          Original Point                           Meta Point
    -------------------------------       ----------------------------
    TS                   Value       =>   TS                   Value
    -------------------------------       ----------------------------
    7/7/2020 12:00:00    503633.00        7/7/2020 12:00:00    5036.3
    7/7/2020 11:45:00    503584.00        7/7/2020 11:45:00    5036.3
    7/7/2020 11:30:00    503520.00        7/7/2020 11:30:00    5036.3
    7/7/2020 11:15:00    503383.00        7/7/2020 11:15:00    5036.3
    

    I then tried to be a bit more verbose with:

    // scaled is my meta data point
    scaled.set(original.value/100, original.time);
    

    but this causes a ClassCastException when generating historic data

    ERROR 2020-07-07T11:42:44,559 (com.serotonin.m2m2.meta.MetaPointLocatorRT.execute:301) - Meta script failed for point Water com.serotonin.ShouldNeverHappenException: java.lang.ClassCastException at 
    com.infiniteautomation.mango.spring.service.MangoJavaScriptService.execute(MangoJavaScriptService.java:466) ~[mango-3.7.7.jar:?] at 
    com.infiniteautomation.mango.spring.service.MangoJavaScriptService.execute(MangoJavaScriptService.java:482) ~[mango-3.7.7.jar:?] at 
    com.infiniteautomation.mango.util.script.CompiledMangoJavaScript.execute(CompiledMangoJavaScript.java:240) ~[mango-3.7.7.jar:?] at 
    com.serotonin.m2m2.meta.JavaScriptPointLocatorRT.executeImpl(JavaScriptPointLocatorRT.java:92) ~[?:?] at 
    com.serotonin.m2m2.meta.HistoricalMetaPointLocatorRT.executeImpl(HistoricalMetaPointLocatorRT.java:159) ~[?:?] at 
    com.serotonin.m2m2.meta.MetaPointLocatorRT.execute(MetaPointLocatorRT.java:283) ~[?:?] at 
    com.serotonin.m2m2.meta.MetaPointLocatorRT$ExecutionDelayTimeout.run(MetaPointLocatorRT.java:242) ~[?:?] at 
    com.serotonin.timer.Task.runTask(Task.java:179) ~[mango-3.7.7.jar:?] at 
    com.serotonin.timer.SimulationTimer.fastForwardTo(SimulationTimer.java:89) ~[mango-3.7.7.jar:?] at 
    com.serotonin.m2m2.meta.HistoricalContextPointRT.consumeHistorical(HistoricalContextPointRT.java:59) ~[?:?] at 
    com.infiniteautomation.mango.rest.v2.MetaDataSourceRestController$MetaHistoryGenerationTask.chunkHistoryGeneration(MetaDataSourceRestController.java:792) ~[?:?] at 
    com.infiniteautomation.mango.rest.v2.MetaDataSourceRestController$MetaHistoryGenerationTask.lambda$run$6(MetaDataSourceRestController.java:589) ~[?:?] at 
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?] at 
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?] at 
    java.lang.Thread.run(Thread.java:834) [?:?] Caused by: java.lang.ClassCastException 
    

    After a bit more testing, it seems that the meta data script gets run the correct amount of times but only uses the most recent value for each execution.

    edit 2:
    After a bit more debugging, I can confirm that the script will run for each new entry but only uses the value of the most recent entry.

    posted in User help read more