BrewManiacEsp8266 icon indicating copy to clipboard operation
BrewManiacEsp8266 copied to clipboard

How to make changes to the web interface

Open Symbol95 opened this issue 1 year ago • 9 comments

Hello! I need to make changes to the web interface. I want to change names, for this I make changes in html /src/locales/english.json, save the file, compile the project, load the bin file into the controller ESP8266. I open the web interface and see no changes, refresh the page, clear browser cache, I clear the browser cache but nothing changes. What am I doing wrong? Perhaps you need to make changes to some other file?

Symbol95 avatar Mar 28 '23 11:03 Symbol95

You will need some basic programming knowledge. https://github.com/vitotai/BrewPiLess/tree/master/htmljs

vitotai avatar Apr 24 '23 02:04 vitotai

Thanks I got it. So I thought that something was missing in the environment

Symbol95 avatar Apr 24 '23 07:04 Symbol95

Installed mpn and gem, run grunt build in html directory. A dist folder appeared in the project, then I compile and send it to the controller, I go to the site and see no changes. What else needs to be done?

Symbol95 avatar May 03 '23 11:05 Symbol95

refresh the browser.

vitotai avatar May 03 '23 15:05 vitotai

Of course, I restarted the browser and cleared the cache

Symbol95 avatar May 03 '23 15:05 Symbol95

How did you send it to the controller? What exactly did you send?

vitotai avatar May 04 '23 11:05 vitotai

In the platformio below I click on the arrow and send it to the controller. Need to do it differently?

Symbol95 avatar May 04 '23 11:05 Symbol95

Well. You have to convert the bm.htm.gz file into a C header file, and put it in "locales/" in the right name. There is no automation for this. Or, you can upload the result bm.htm.gz by file manager, which is http://[address of the controller]:8008/filemanager

vitotai avatar May 04 '23 13:05 vitotai

Thanks for the answer. I will try

Symbol95 avatar May 04 '23 14:05 Symbol95