• 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
  • B
    bullitbd

    Thanks, @Jared-Wiltshire. The problem seems to be as follows:

    If started from root (which I don't want to do, of course) with the --no-sandbox switch, everything works fine.

    if started from regular user, it appears there is an X server bug -

    Fatal server error:
    (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
    

    Dealt with permissions, but then another similar permissions error...

    After fixing permissions on the tty files, it works now without having to run as root.

    Any experience with minimal Firefox kiosk use? Couldn't find much of value out there. Thanks again.

    edit: for anyone who comes across this, and keeping in mind that I have only vague knowledge of how xserver works, the environment needs access to a number of /dev/tty files. I had to change permissions (a+rw) in tty files in 3 successive attempts, until successful. In my case it was tty0, tty7, tty2. This is specific at least to xorg compiled with raspberian stretch lite as of 12/20/2018.

    posted in Mango Automation general Discussion read more
  • B
    bullitbd

    We are trying to use Raspberry pi 3 B+ boards as HMI touchscreen devices in kiosk mode. For some reason, chromium-browser loads to a blank screen, instead of the given url. We tried midori, which worked perfectly (but doesn't work with Mango).

    We're using stretch lite (no GUI), and have tried a number of WM's (matchbox, openbox...) without success with Chromium.

    Has anyone successfully set up a kiosk display for Mango on rpi? Thanks

    posted in Mango Automation general Discussion read more