GUI modification #867
-
I want to edit the GUI to my liking. But when updating/editing in the gui folder(modify html & css) and saving, I tried restarting and it wasn't effected. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hmm, that would be a bit hard. Or that would mean you have to create a new gui from scratch. The GUI is made with svelte framework. So that means no plain javascript code anymore. If you want to change the GUI, you should first have installed node.js. Run The GUI code is in the folder Use npm in the root folder to test you changes with: So that means development on your desktop. For that you have to change file So all with all it is not that easy to change the GUI if you have not a full development setup. And it will take a lot of time to explain it all. So you can try to play around with the code, but it will be hard to make GUI changes, if you are not familiar with JS frameworks. |
Beta Was this translation helpful? Give feedback.
Hmm, that would be a bit hard. Or that would mean you have to create a new gui from scratch.
The GUI is made with svelte framework. So that means no plain javascript code anymore.
If you want to change the GUI, you should first have installed node.js.
Run
npm install --force
in the root folder to install all the needed libraries.The GUI code is in the folder
gui
. When you build a production version of the GUI, it will be placed in the folderpublic
.Use npm in the root folder to test you changes with:
npm run dev
. But this works only on the Pi it self by default, which is not powerful enough to do GUI development. And as there is a version conflict in the packages, you need to use the--…