mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 05:06:32 +00:00
Add more informaiton to comment in .py file
This commit is contained in:
parent
cb71466bd4
commit
b2faa1cc6c
@ -1,7 +1,4 @@
|
|||||||
import unishox
|
###############################################################
|
||||||
from os import listdir
|
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
# compresses all files found in ..\..\tasmota\html_uncompressed
|
# compresses all files found in ..\..\tasmota\html_uncompressed
|
||||||
# write compressed C code to ..\..\tasmota\html_compressed
|
# write compressed C code to ..\..\tasmota\html_compressed
|
||||||
# Instructions:
|
# Instructions:
|
||||||
@ -10,7 +7,23 @@ from datetime import datetime
|
|||||||
# run:
|
# run:
|
||||||
# python compress-html-uncompressed.py
|
# python compress-html-uncompressed.py
|
||||||
#
|
#
|
||||||
|
# The intent it to commit both uncompressed and compressed to the repo
|
||||||
|
# else this script would need to be run at build.
|
||||||
#
|
#
|
||||||
|
# Example Tasmota code:
|
||||||
|
# #ifdef USE_UNISHOX_COMPRESSION
|
||||||
|
# #include "./html_compressed/HTTP_SCRIPT_CONSOL.h"
|
||||||
|
# #else
|
||||||
|
# #include "./html_uncompressed/HTTP_SCRIPT_CONSOL.h"
|
||||||
|
# #endif
|
||||||
|
#
|
||||||
|
###############################################################
|
||||||
|
|
||||||
|
import unishox
|
||||||
|
from os import listdir
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
||||||
files = listdir('..\\..\\tasmota\\html_uncompressed')
|
files = listdir('..\\..\\tasmota\\html_uncompressed')
|
||||||
|
|
||||||
totalIn = 0
|
totalIn = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user