-
Notifications
You must be signed in to change notification settings - Fork 1
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
HTML pages won't load #1
Comments
Hi kylix34 , I fixed the compilation issue of RF69 (thanks). The web interface is not hosted in the ESP8266 firmware compared to the official version. Indeed, in my version, I'm using a websocket server to expose the thermostat services and the web interface is available in this directory: https://github.com/Jean-Emile/ESP8266_Thermostat/blob/master/html In particular the thermostat.html file is important, the other ones are not finished. You can upload these files on a web server. NOTE: the esp8266 have to hosted in the same network (see https://github.com/Jean-Emile/ESP8266_Thermostat/blob/master/html/wifi.js#L2) NOTE: this is still a unstable version even if this is deployed in my home since almost 2 years. Best regards, |
Thanks for the updates!!! |
Hello again, Jean-Emile!
I understand it's still a work in progress project ;) |
Hi, (1)=> Great. (2) => By default, the thermostat firmware did not have any schedule. I did not yet add the files in the src/data folder. Before to execute the script, you have install the dependency (3) => this is not implemented yet :( but you can change the config.json file and pio run -t uploadfs |
Hi Jean-Emile! Any update on the source code? |
Hi Jean-Emille!
I managed to compile (there was some error about RFM69 library not having the promiscuous mode defined but I downloaded v1.4.0 of the library and it worked. I think v1.4.2 doesn't have anymore the promiscuous mode). The ESP8266 successfully connects to my WiFi network but I get: "404: File Not Found" error when accessing ESP8266's IP address into the browser.
PS C:\Users\Kylix\Desktop\ESP8266_Thermostat> pio run -t uploadfs Processing thermostat (platform: espressif8266; framework: arduino; board: esp12e) --------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via
-v, --verbose` optionCONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html
PLATFORM: Espressif 8266 (2.6.2) > Espressif ESP8266 ESP-12E
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 36 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 6.11.3+sha.a6f029d
|-- 2.6.0+sha.3416616
|-- 3.1.0+sha.9dc9ad1
|-- 1.4.2+sha.8814040
| |-- 101.1.3
| | |-- 1.0
| |-- 1.0
|-- 2.1.1+sha.2626b26
| |-- 1.0
| |-- <Ethernet(esp8266)> 1.0.4
| | |-- 1.0
| |-- 1.0
| |-- 1.0
|-- 0.0.0+sha.1574db4
|-- 1.0
|-- 1.0
| |-- 1.0
| |-- 1.2
| | |-- 1.0
|-- 1.0
| |-- 1.0
|-- 1.2
| |-- 1.0
|-- 1.0
|-- 1.0
|-- 101.1.3
| |-- 1.0
Building in release mode
Warning! '-Wl,-T' option for specifying linker scripts is deprecated. Please use 'board_build.ldscript' option in your 'platformio.ini' file.
Building file system image from 'src\data' directory to .pio\build\thermostat\spiffs.bin
/config.json
/schedule.json
/thermostat.json
Looking for upload port...
Auto-detected: COM4
Uploading .pio\build\thermostat\spiffs.bin
esptool.py v2.8
Serial port COM4
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: a0:20:a6:12:15:01
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 65536 bytes to 691...
Writing at 0x000eb000... (100 %)
Wrote 65536 bytes (691 compressed) at 0x000eb000 in 0.0 seconds (effective 23832.2 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
========================================================== [SUCCESS] Took 6.48 seconds ==========================================================
Environment Status Duration
thermostat SUCCESS 00:00:06.482`
The text was updated successfully, but these errors were encountered: