forked from timotto/ESPAsyncWebServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LittleFS can be used (a choice for ESP8266 for now)
- To make and upload FS https://github.com/earlephilhower/arduino-esp8266littlefs-plugin - Simply redefine SPIFFS to LittleFS Changes are in src/SPIFFSEditor.cpp including the src/edit.htm See ESP_AsyncFSBrowser and SmartSwitch examples
- Loading branch information
Showing
26 changed files
with
424 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Test |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,19 @@ | ||
<img title="" src="1.PNG" alt="" width="137"> <img title="" src="2.PNG" alt="" width="138"> <img title="" src="3.PNG" alt="" width="150"> <img title="" src="4.PNG" alt="" width="150"> | ||
|
||
## SmartSwitch | ||
|
||
* Remote Temperature Control application with schedule | ||
|
||
(example: car block heater or car battery charger for winter) | ||
|
||
* Based on [ESP_AsyncFSBrowser](https://github.com/lorol/ESPAsyncWebServer/tree/master/examples/ESP_AsyncFSBrowser) example that uses embedded ACE editor | ||
|
||
* Wide browser compatibility, no extra server-side needed | ||
|
||
* HTTP server and WebSocket on same port | ||
|
||
* Standalone, no JS dependencies for the browser from Internet | ||
|
||
* [Ace Editor](https://github.com/ajaxorg/ace) embedded to source but also - editable, upgradeable see [extras folder](https://github.com/lorol/ESPAsyncWebServer/tree/master/extras) | ||
|
||
* Added [ESPAsyncWiFiManager](https://github.com/alanswx/ESPAsyncWiFiManager) and fallback AP mode after timeout | ||
|
||
* Real Time (NTP) w/ Time Zones. Sync from browser time if in AP mode | ||
|
||
* Memorized settings to EEPROM | ||
|
||
* Multiple clients can be connected at same time, they see each other' requests | ||
|
||
* Authentication variants including [Cookie-based](https://github.com/me-no-dev/ESPAsyncWebServer/pull/684) idea | ||
|
||
* Used [this Xtea implementation](https://github.com/franksmicro/Arduino/tree/master/libraries/Xtea) for getting a fancier Cookie token | ||
|
||
* Default credentials **smart : switch** or only **switch** as password | ||
|
||
* OTA included | ||
|
||
* Use the latest ESP8266 ESP32 cores from GitHub | ||
- Remote Temperature Control application with schedule | ||
(example: car block heater or car battery charger for winter) | ||
- Based on [ESP_AsyncFSBrowser](https://github.com/lorol/ESPAsyncWebServer/tree/master/examples/ESP_AsyncFSBrowser) example that uses embedded ACE editor | ||
- Wide browser compatibility, no extra server-side needed | ||
- HTTP server and WebSocket on same port | ||
- Standalone, no JS dependencies for the browser from Internet | ||
- [Ace Editor](https://github.com/ajaxorg/ace) embedded to source but also - editable, upgradeable see [extras folder](https://github.com/lorol/ESPAsyncWebServer/tree/master/extras) | ||
- Added [ESPAsyncWiFiManager](https://github.com/alanswx/ESPAsyncWiFiManager) and fallback AP mode after timeout | ||
- Real Time (NTP) w/ Time Zones. Sync from browser time if in AP mode | ||
- Memorized settings to EEPROM | ||
- Multiple clients can be connected at same time, they see each other' requests | ||
- Authentication variants including [Cookie-based](https://github.com/me-no-dev/ESPAsyncWebServer/pull/684) idea | ||
- Used [this Xtea implementation](https://github.com/franksmicro/Arduino/tree/master/libraries/Xtea) for getting a fancier Cookie token | ||
- Default credentials **smart : switch** or only **switch** as password | ||
- OTA included | ||
- Use the latest ESP8266 ESP32 cores from GitHub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,22 @@ | ||
### Extras | ||
|
||
Additions to facilitate code modifications (for MS Win, similar can be done on Linux) | ||
|
||
**ehg.c (ehg.exe):** Tool to generate C-code array from file' bytes | ||
- **ehg.c (ehg.exe):** Tool to generate C-code array from file' bytes | ||
Based on [bin2array](https://github.com/TheLivingOne/bin2array/) PROGMEM keyword can optionally be added. | ||
|
||
**rehg.c (rehg.exe):** Tool to reverse C-code array generated by **ehg.exe** back to a file | ||
- **rehg.c (rehg.exe):** Tool to reverse C-code array generated by **ehg.exe** back to a file | ||
Based on [c2bin](https://github.com/birkett/cbintools/tree/master/c2bin) | ||
First 4 lines of source are ignored, then parses the 0xHH - formated bytes | ||
until a } is found on separate new line. | ||
|
||
### Tools | ||
|
||
[TCC : Tiny C Compiler](https://bellard.org/tcc/) for **ehg** and **rehg** compiling on MS Win | ||
|
||
[7-Zip](https://www.7-zip.org) Install 7z and use the included gzip as command line tool | ||
[Node.js](https://nodejs.org) Install Node with default settings, then run: | ||
- [TCC : Tiny C Compiler](https://bellard.org/tcc/) for **ehg** and **rehg** compiling on MS Win | ||
- [7-Zip](https://www.7-zip.org) Install 7z and use the included gzip as command line tool | ||
- [Node.js](https://nodejs.org) Install Node with default settings, then run: | ||
|
||
``` npm install html-minifier-terser -g, npm install -g github-files-fetcher ``` | ||
|
||
### Batch files provided | ||
|
||
**do.bat:** Generates **edit.htm.gz.h** file | ||
|
||
**undo.bat:** Reverts **edit.htm** from C array header to file (still minified!) | ||
|
||
**update_ace.bat:** Updates **acefull.js.gz** file from latest GitHub Ace sources | ||
- **do.bat:** Generates **edit.htm.gz.h** file | ||
- **undo.bat:** Reverts **edit.htm** from C array header to file (still minified!) | ||
- **update_ace.bat:** Updates **acefull.js.gz** file from latest GitHub Ace sources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.