Any help is appreciated.
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.
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.
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.
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 :-)
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.
Obligatory XKCD: https://xkcd.com/1172/
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.