Browse Source

Added configurator gzip contents. This will save huge amount of streaming memory and flash space

master
Englebert 3 years ago
parent
commit
25c0298aca
  1. 10
      configurator/README.md
  2. BIN
      configurator/gzip/bootstrap.min.css.gz
  3. BIN
      configurator/gzip/bootstrap.min.css.map.gz
  4. BIN
      configurator/gzip/bootstrap.min.js.gz
  5. BIN
      configurator/gzip/bootstrap.min.js.map.gz
  6. BIN
      configurator/gzip/index.html.gz
  7. BIN
      configurator/gzip/jquery-3.6.0.min.js.gz
  8. BIN
      configurator/gzip/sticky-footer-navbar.css.gz
  9. 15
      configurator/upload.py

10
configurator/README.md

@ -0,0 +1,10 @@
### How to upload
This is to upload the web configurator to the device. In order to serve the html pages correctly.
Below is the command to push the files to the ESP32 once is connected to the device via WiFi.
for i in $(ls gzip/*); do echo "Pushing [$i]...."; ./upload.py http://192.168.1.1/webupload $i; done
### How to delete
To delete it is easy:
curl -s http://192.168.1.1/erase?filename=the_filename

BIN
configurator/gzip/bootstrap.min.css.gz

BIN
configurator/gzip/bootstrap.min.css.map.gz

BIN
configurator/gzip/bootstrap.min.js.gz

BIN
configurator/gzip/bootstrap.min.js.map.gz

BIN
configurator/gzip/index.html.gz

BIN
configurator/gzip/jquery-3.6.0.min.js.gz

BIN
configurator/gzip/sticky-footer-navbar.css.gz

15
configurator/upload.py

@ -0,0 +1,15 @@
#!/usr/bin/python3
import requests
import sys
### print (sys.argv)
### print(len(sys.argv))
if len(sys.argv) < 3:
print("Invalid parameters\n")
exit
filename = sys.argv[2]
url = sys.argv[1]
files = {'file': open(filename, 'rb')}
final_resp = requests.post(url, files=files)
Loading…
Cancel
Save