-
Notifications
You must be signed in to change notification settings - Fork 7
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
Comments
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 |
For working around this dependency would you suggest modifying the URL in |
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. |
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:
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](https://private-user-images.githubusercontent.com/6163553/285617208-931f922a-f143-4da7-a2a2-45c8cc5bb039.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxNjkwNDMsIm5iZiI6MTcyMjE2ODc0MywicGF0aCI6Ii82MTYzNTUzLzI4NTYxNzIwOC05MzFmOTIyYS1mMTQzLTRkYTctYTJhMi00NWM4Y2M1YmIwMzkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjhUMTIxMjIzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTIxYWE0ODEyMGMxMmNlODJlODJmNDRhZTJjZTdlYmM2OTM5MTEzNDZlZDFlYWU1YWY4OTE1N2U1ZWY1YWY2MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.L_qWdarILXZ3xIX2Ogc8yhhZtYXRj-6tfYskno55ieI)
The text was updated successfully, but these errors were encountered: