tehybug
tehybug copied to clipboard
Webpage of new C/C++ firmware won't load if TeHyBug website is down
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.
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
For working around this dependency would you suggest modifying the URL in Webinterface.h to a locally-accessibly server with the same HTML files?
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.