REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login
    1. Home
    2. TCELE
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    TCELE

    @TCELE

    0
    Reputation
    2
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    TCELE Unfollow Follow

    Latest posts made by TCELE

    • RE: Redirecting HMI from studio

      @ondrej_severa

      I believe there was a misunderstanding, the logic changing screens was already done with the hide_by parameters and worked, it's just that some components happened to be timing out. This didn't happen before in other projects done the same way.

      Neverminding that, I reworked the project to use javascript as you suggested, I like the fact that .hmi.svg files are split, it keeps things organized. After some prolonged tests, there are no more timeouts.

      There is one last flaw that I would like to work out. The chromium instance allows the user to use gestures and go back and forth in the history of pages. In some cases get to a restricted page this way.

      I googled vigorously to solve this issue, but so far to no avail. Any advice on this topic?

      Thanks for all the help so far!

      chromium flags I tried:

      --user-data-dir=/tmp/hmi-chromium
      --kiosk
      --incognito
      --disable-pinch
      --overscroll-history-navigation=0 #This should fix it but it doesn't
      --disable-overscroll-edge-effect #Tried this one too
      --no-sandbox
      --start-fullscreen
      --window-size=$SIZE
      --window-position=0,0
      --no-first-run
      --disable-translate
      --noerrdialogs
      --disable-infobars
      --disable-component-update
      
      posted in REXYGEN Studio
      T
      TCELE
    • RE: Redirecting HMI from studio

      @ondrej_severa

      Thanks for the example, it works as intended, I'm guessing, except that I am still missing the service.html and land on an Error 404 - Not Found page.

      Any dependencies I could be missing? I am running your example on a new Raspbian lite image with fresh rex core and HMI chromium installation.

      posted in REXYGEN Studio
      T
      TCELE
    • RE: Redirecting HMI from studio

      @ondrej_severa

      Hello,

      The alert is there, custom.js is included. All the screens work now as before, it's just that the components that switch them time out after a short while and are disabled.

      Ignoring that I also force switched to the servis.html but no page is there, I checked the directory over ssh too.

      I've also updated rexygen studio to 2.50.10.13072, mentioning it just in case.

      hmisrc.zip

      posted in REXYGEN Studio
      T
      TCELE
    • RE: Redirecting HMI from studio

      @ondrej_severa
      I have done as instructed, but I don't get redirected to the service.html page, I tried to use a button component as well as a slider component. Any more advice?

      The reason behind this behaviour is correct, I think, when I set the refresh rate higher/slower it takes a longer time before the components get a timeout, but it still happens even on 500 ms (default).

      posted in REXYGEN Studio
      T
      TCELE
    • RE: Redirecting HMI from studio

      @cechurat

      So after implementing a solution with the hide_by option we are getting a bug where most input components set their state from ONLINE to ERROR, visually they are disabled (greyed out), after a short period of running. No other functional problems, just buttons/sliders not working.

      HMI log set on TRACE option:

      Periodic reading failed! Request 7559 timed out
      State changed to ERROR (multiple times, for reach HMI component)
      Request 7559 timed out
      Remaining commands: 0 message length: 0
      State changed to ONLINE (multiple times, for reach HMI component)
      Periodic reading failed! Request 5038 timed out
      

      Ive used the hide_by parameter in the same manner before without problems. Any idea to the cause? Thanks in advance!

      posted in REXYGEN Studio
      T
      TCELE
    • Redirecting HMI from studio

      Hello,

      Ive developed my project with multiple pages according to the tutorial with multiple .hmi.svg files which is working great.

      The project includes a key switch that is supposed to open a setting page upon high edge. What would be the easiest way to redirect startx chromium-browser instance to a different page from a rexygen studio block. Im guessing running a bash command is the only way, but am totally lost at doing it this way.

      TLDR: Chromium page redirection from a function block

      posted in REXYGEN Studio
      T
      TCELE