Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
upnix opened this issue Nov 25, 2023 · 3 comments
Open

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

upnix opened this issue Nov 25, 2023 · 3 comments

Comments

@upnix
Copy link

upnix commented Nov 25, 2023

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

@gumslone
Copy link
Owner

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

@upnix
Copy link
Author

upnix commented Jan 12, 2024

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

@gumslone
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants