Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Is it possible to customize or remove the webvisu loading screen/animation?

sloob
2021-05-23
2021-05-25
  • sloob - 2021-05-23

    I'm working on a project on a raspberry pi and I would like the screen to remain completely black when the webvisu is loading. I'm talking about the white page with the spinning red circle whenever you're starting the visualization. My guess was the webvisu.js file but I have no javascript knowledge and the file is an enormous wall of text with no break or comments.

    Any help is appreciated.

     

    Last edit: sloob 2021-05-23
  • hermsen

    hermsen - 2021-05-24

    Sorry, but I don't think this is possible at all. I also highly doubt you will be able to to do this in future versions.

     
    • sloob - 2021-05-24

      Not possible at all might be a bit harsh no? Changing the background to black should just be a color value in the htm or .js file and removing the animation maybe removing a few lines in the .js file?

      EDIT: Yep, that was it. See solution below.

       

      Last edit: sloob 2021-05-24
  • sloob - 2021-05-24

    Ok so I was able to do it. I edited the webvisu.js file with the find/replace function. The animation is still there but it's all black so it's impossible to see.

    Here are the colours I replaced
    "#F4F4F4" TO "#000000"
    "#a90018" TO "#000000"
    "#CD001C" TO "#000000"
    "#FFFFFF" TO "#000000"

    This solution might not work for everyone but since I've not used any white text/shape/lines etc I have not seen any issues.

     
    πŸ‘
    1

    Last edit: sloob 2021-05-24
  • hermsen

    hermsen - 2021-05-24

    Not possible at all might be a bit harsh no? -> you are right but I really doubt your tweak is officially supported. That is why I said it isn't "possible" since a "backdoor" edit will only help temporarily. Therefore I have some questions;

    Where is the file located at (path)?
    What happens after a (init) download?
    What happens after a firmware update?
    When will this file be overwritten by a fresh updated copy by CODESYS?
    In other words: in what common situations will your tweak "survive" or not.

    Anyway, I am glad you have solved your problem :-)

     

    Last edit: hermsen 2021-05-24
    • sloob - 2021-05-24
      • The file is located on the root folder on my pi

      • You'll have to re-do it every time you download a new program. But it only takes a minute and once the program is done I don't plan on updating it so it works for me.

      • Any re-download from codesys will break it and you'll have to re-do it. otherwise it'll stay there forever. Like I said I don't plan to keep updating my code so once it's final I'll download it to the pi, change the colors and leave it there forever so it should never break.

       

      Last edit: sloob 2021-05-24
      • sgronchi - 2021-05-24

        Obligatory XKCD: https://xkcd.com/1172/

         
        πŸ‘
        1
        • sloob - 2021-05-25

          Sometimes the sloppy solution is the only solution! Especially when it's for yourself and when look matters as much as functionality.

           

Log in to post a comment.