Page 1 of 1

Reason why some devices show simple web interface?

Posted: 10 Nov 2023, 22:56
by obstbauer
Hello,
what is the reason that the web interface of some of my ESP 8266 devices look like the picture below and not like the normal design?
I know this simple web interface from connecting the first time via access point, afte connecting with my wifi the normal design is shown but now I have the simple design for running and connected devices too ?
Is the design a reason of browser settings or a general problem?
Thanks!
Regards
Thomas

Re: Reason why some devices show simple web interface?

Posted: 10 Nov 2023, 23:06
by TD-er
It seems like when a build was made without pygit2 installed as Python library, you do end up with a CDN url without a Git tag in the URL.
And it looks like jsdelivr is suddenly no longer accepting those URLs.

Re: Reason why some devices show simple web interface?

Posted: 10 Nov 2023, 23:12
by TD-er
I made a quick fix, but you probably need to make a new build for it to work again (assuming you made your own build)

https://github.com/letscontrolit/ESPEasy/pull/4874

Re: Reason why some devices show simple web interface?

Posted: 12 Nov 2023, 22:05
by obstbauer
Hello,
thank you for the answers! I am new so I don't understand everything.

What does that mean for me? What should I change?

"It seems like when a build was made without pygit2 installed as Python library, you do end up with a CDN url without a Git tag in the URL.
And it looks like jsdelivr is suddenly no longer accepting those URLs."

I have another device running with version ESP_Easy_mega_20230507_normal_ESP8266_4M1M May 7 2023 and there everything is ok.

A new build means that I have to flash the ESPs again with a new ESP_Easy version?
This would be bad because the ESPs are hard to reach in their locations. I use ESP-01

Re: Reason why some devices show simple web interface?

Posted: 12 Nov 2023, 22:29
by Ath
obstbauer wrote: 12 Nov 2023, 22:05 A new build means that I have to flash the ESPs again with a new ESP_Easy version?
This would be bad because the ESPs are hard to reach in their locations. I use ESP-01
That's correct. ESP01 and other 1MB Flash units are really hard to keep supported, as we are constantly running out of the .bin size, so 4MB units like the NodeMCU and Wemos D1 mini clones are much easier to use. They also have more GPIO pins available.

For new installations it's better to base your plans on ESP32 devices, for replacing the small ESP01 there are close 'competitors' in size like the ESP32-C3 mini devices (f.e. these, or these). These units usually have 4MB flash, and can be updated via OTA (Over The Air = via the browser).

Edit: There is even an ESP32-C3 that's pin compatible with the ESP01 -> https://aliexpress.com/item/1005003538055090.html 8-)

Re: Reason why some devices show simple web interface?

Posted: 12 Nov 2023, 22:40
by TD-er
When you need to open up those devices with an ESP01, please take the time to solder on a new 4M flash chip as it makes life so much easier.

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 14:57
by obstbauer
ok... bad...
I work now with s2 minis
maybe I change my ESP01 with them


For my understanding:
What happened that it worked before with the normal web interface and now it doesn't wortk anymore?

As I mentioned if I connect the first time via AP I always have the simple look and after connecting with my wifi the normal web interface appears?

It is really necessary to flash it again?
Because my sensor reading is still fine and this is all I need.

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 15:15
by TD-er
We do rely on some external service to host static files like the CSS and JavaScript files.
And all of a sudden those links are no longer working.

N.B. there is also some LillyGo module with an ESP32-C3 with the exact same form factor as the old ESP01.
See: https://templates.blakadder.com/T-01C3.html

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 15:32
by chromo23
obstbauer wrote: 13 Nov 2023, 14:57 It is really necessary to flash it again?
No...

Use "file upload" under "/tools"
and upload the files of the attachment one by one..

Note: you need around 9kb of free space for that.. but that is usually the case

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 22:04
by obstbauer
you mean

"File browser Show files on internal flash file system"

and then upload the *.js files?

Thank you for the help!

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 22:04
by TD-er
On an 1M flash unit this 9k can be challenging...

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 22:06
by TD-er
By the way, I think you can also gzip them and then upload them as .js.gz

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 22:19
by chromo23
This won´t work: "update_sensor_values_device_page.js.gz"
It is to lengthy :)

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 22:29
by obstbauer
is it right what I wrote ?

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 22:39
by chromo23
Yes! :)

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 22:41
by TD-er
Ah yes, have to check the source code as I have made a replacement name for it when serving embedded JS...

Edit:
Rename it to upd_values_device_page.js
or upd_values_device_page.js.gz if you GZipped it..

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 22:58
by obstbauer
ok I uploaded all files but it doesn't work

should I delete the "update_sensor_values_device_page.js" file ?
and upload the renamed file again ?

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 23:02
by obstbauer
I uploaded "upd_values_device_page.js" but it doesn't work

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 23:11
by chromo23
there should be also an esp.css...

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 23:34
by obstbauer
yes it worked :)
Thank you!

Re: Reason why some devices show simple web interface?

Posted: 13 Nov 2023, 23:37
by TD-er
Keep in mind that whenever you have issues saving settings, you may want to remove one or more files as SPIFFS filesystem needs some free space to work on.