tehybug icon indicating copy to clipboard operation
tehybug copied to clipboard

Webpage of new C/C++ firmware won't load if TeHyBug website is down

Open upnix opened this issue 2 years ago • 3 comments

I flashed the new TeHyBug C/C++ firmware to an ESP-01. It got a local IP (which I assume is from a previous configuration?). When going to the IP on port 80 the website stays on the following message:

Loading... If the page doesnt load: make sure that you are connected to your local home network and then open this ip: 192.168.15.187 with your browser

It just so happened the TeHyBug website (https://tehybug.com) was down during this time. A screenshot of the network connections being attempted, as seen via the Web Developer console, is attached. Once the TeHyBug website was back, the page loaded fine.

This can be easily reproduced by adding the following to your local /etc/hosts file: 127.0.0.1 localhost tehybug.com

Then, try going to the local IP of the TeHyBug. Screenshot_20231125_144029

upnix avatar Nov 25 '23 21:11 upnix

Hi, its loading html files from external source to save local space on chip and use more better styled web interface since there is no memory limit, in this case from tehybug.com website. you can check the https://github.com/gumslone/tehybug/blob/master/tehybug/Webinterface.h Thanks

gumslone avatar Nov 25 '23 22:11 gumslone

For working around this dependency would you suggest modifying the URL in Webinterface.h to a locally-accessibly server with the same HTML files?

upnix avatar Jan 12 '24 21:01 upnix

Hi, you don't need to modify this file, just provide the tehybug ip to the websocket connection of your local html files and it will work too.

gumslone avatar Jan 13 '24 08:01 gumslone