• B
    bullitbd

    @bullitbd said in Unexpected date/time display behavior:

    Jan 18, 1970 14:55:02

    Thanks for the quick response, Phil. Right you are on number 2...
    to your third point, actually on GMT-08:00, which does explain that!

    The offsets are right - still trying to sort why the epoch value is off by a couple of days +/-. Will keep mucking about here.

    posted in User help read more
  • B
    bullitbd

    We are querying some epoch times via Modbus/tcp, and are experiencing some unexpected behavior:

    modbus register (a double word, 2 input registers) contains: 1551356992;
    data point as 4 byte signed integer, interprets the value differently as 1551302656 with plain formatting, but displays "Jan 18, 1970 14:55:02" when using date/time formatting;

    further, another register contains the value 0; data point interprets correctly as zero, but displays "Dec 31, 1969 16:00:00".

    No doubt serious pilot error here, but I'm at a loss to make any sense of it.

    posted in User help read more
  • B
    bullitbd

    perfect! Not sure how I missed About Mango Java Script - thank you!

    posted in Development general discussion read more
  • B
    bullitbd

    This may seem evident, but trying to figure out a way to log datapoints ONLY while an external process is running - perhaps by triggering an event in some watchdog point - or by scripting of some sort. Idea is, a process runs for, say, 3 hours per day; for a variety of reasons (charting being one of them), several points are logged at second or even sub-second intervals but don't want them logged when the external process is idle. Communication is via modbus, primarily TCP.

    Perhaps its possible to prevent (or enable, for that matter) modbus reads depending on a datapoint state.

    Any thoughts appreciated!

    posted in Development general discussion read more
  • B
    bullitbd

    Oh, sorry - thought I'd done that. The ma-log and code links are in your chat. Running 3.5.6 on ES.

    Interestingly, I found the culprit. I had recently changed a filter to the wrong syntax in an angular expression per a previous thread (see: @phildunlap said in ma-point-value: number formatting, and that threw the following (note in the ma-log):

    Error: [$parse:syntax] Syntax Error: Token '(' is an unexpected token at column 28 of the expression [tankTemp.value/256 | number(1)]

    When I fixed that error, all pages rendered again. Not sure why it affected rendering of all pages - so just fyi. Thanks.

    posted in Development general discussion read more
  • B
    bullitbd

    Hi, @Jared-Wiltshire - well, I was away from the "first" browser when I made that observation. It turns out that I am no unable to render any custom page in a direct link, edit pages preview or dashboard designer. All other function of the UI work normally. I've sent you one page's markup, but appears to be something else.

    posted in Development general discussion read more
  • B
    bullitbd

    will do, Jared. can I privately post markup to you?

    posted in Development general discussion read more
  • B
    bullitbd

    When attempting to access, say, http://ip.address/ui/some-page with more than one browser, odd behavior occurs (as might be expected with two browsers running angular js...). Over time, the second browser simply shows a blank div, effectively, of the custom page being viewed by the first browser (although it, of course, loads any other pages not with the same route).

    Curious if you have any on using multiple browsers to view the same page. One might be separate 'duplicate' pages, assuming they all have their own application scope. Thanks for your thoughts.

    posted in Development general discussion read more
  • B
    bullitbd

    have you tried any of the lightweight browsers? (Midori doesn't work well at first try). Clearly JS/CSS support is the issue. Such a thing probably doesn't exist - just asking in case any user might have stumbled across such a thing.

    posted in Mango Automation general Discussion read more