• phildunlap

    Thanks for sharing what you came up with!

    I will offer calling the component "userComponent" could lead to confusion in the future, but maybe that's just for the sake of the example.

    Maybe also for posterity i'll offer the script permission being used is "admin" instead of "superadmin", in case someone tries leveraging this and doesn't have an "admin" permission group defined.

    Thanks!

    posted in User help read more
  • phildunlap

    Okay, it sounds like there are two questions to be investigated, then.

    First, that the points stop receiving COV notifications after some amount of time working without issue. You captured one of these events in the wiresharks you sent in, yes?

    The second question concerns why the poll time would just to 48000-ish milliseconds. That number would suggest to me that some of the requests are timing out, and that to poll all those points the requests are being split up. Your Local Device has a timeout of 6000 and a retries of 3, so 48000 would be 8 timeouts, which may or may not all be in retrying one request. If they all did occur in requesting a single set of points, that would produce the event you have a picture of there. It could be that the device is more easily overwhelmed by the large read requests, or perhaps it is generating some kind of log messages about why it isn't responding to certain read requests.

    posted in User help read more
  • phildunlap

    Hi cwangv,

    Thanks for sending in the captures. I did take a look at them and raise the issue, but did not yet resolve the matter. Can you fully describe the replication steps you've found?

    posted in User help read more
  • phildunlap

    All those stty outputs are the same. Were those correlated with the data source not working?

    posted in User help read more
  • phildunlap

    Hi v8dave,

    I found some code that Jared had posted previously for a 360 deg component and I am trying to get it to work but the value is not being shown.

    Always good to link to the source material; is it this https://forum.infiniteautomation.com/topic/3915/very-basic-dashboard-designer-help ?

    posted in Mango Automation general Discussion read more
  • phildunlap

    Hi Turbo,

    Hmm. The packaged version of Modbus4J did go from 3.0.4 to 3.0.5 so there were a few changes. But, that it works sometimes and after restarts and whatnot is confusing detail.

    1. When does it not work? After some amount of time, some percentage of restarts, etc

    2. Does this apply even in cases like (6) where the restart seems to make the responses appear?

    If it is a serial port issue, I think it could be interesting to see from the command line what the setting of the serial port is when in each state to see if the port is being configured differently: stty -F /dev/ttyUSB0 -a

    I found this issue while investigating this question, and it would be a difference between 3.5 and 3.6, so perhaps it is the issue at hand: https://github.com/infiniteautomation/ma-core-public/issues/1497

    If so, thanks for bringing it to our attention! Perhaps you could use stty command to manually tinker with the flow control settings when you are observing the issue.

    posted in User help read more
  • phildunlap

    FTL itself has a lot of quality reference material on its website: https://freemarker.apache.org/

    If you mean what is included by Mango in the model passed to the template, the most authoritative place is the code: https://github.com/infiniteautomation/ma-modules-public/blob/main/Reports/src/com/serotonin/m2m2/reports/web/ReportChartCreator.java#L148

    So we'd have to look somewhere else to see what's available in a context other than the reports, like here's the email handler building its model: https://github.com/infiniteautomation/ma-core-public/blob/main/Core/src/com/serotonin/m2m2/rt/event/handlers/EmailHandlerRT.java#L269

    posted in User help read more
  • phildunlap

    Hi Frank,

    You are providing a custom FTL template for an email event handler, correct?

    FreeMarker Template Language has some built-in functions and special variables that would help you to achieve this, specifically the .now special variable.

    See here for how to transform that into human readable strings if necessary: https://freemarker.apache.org/docs/ref_builtins_date.html
    See here for a list of special variables in FTL: https://freemarker.apache.org/docs/ref_specvar.html

    posted in How-To read more
  • phildunlap

    Hi techalton,

    Yes, we were able to replicate the issue and reached out to the developer who was working on the changes between BACnet4J 4 and 5, which is predominantly work toward getting a BACnet BTL Compliance certification.

    The cause is that the device in question deviates from the BACnet specification with regards to the data type of its protocol version (section 12.11 specifies the protocol version to be an unsigned integer). The device in question provides a character string as its protocol version, The BTL specification stipulates how to respond to deviations from the specification, but I have not had access to the BTL compliance specification to ensure this is intended behavior, and the developer who did the work has not yet responded.

    posted in MangoES Hardware read more
  • phildunlap

    Certainly! Thanks for the kind words, we do try to keep this a helpful place!

    posted in How-To read more