-
Notifications
You must be signed in to change notification settings - Fork 797
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Web upload factorizing and ESP Web Tools update (#1862)
Update esp web tools Simplify scripts Add serial console
- Loading branch information
1 parent
8fa47d2
commit d7d5d08
Showing
9 changed files
with
232 additions
and
345 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// index.styl | ||
div.table-generated-page | ||
main | ||
div.content__default, | ||
footer.page-edit, | ||
div.page-nav | ||
// Display full with the API pages | ||
max-width: 65% | ||
|
||
.sidebar | ||
z-index 6 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
import string | ||
|
||
mf_temp32 = string.Template('''{ | ||
"name": "OpenMQTTGateway", | ||
"new_install_prompt_erase": true, | ||
"builds": [ | ||
{ | ||
"chipFamily": "ESP32", | ||
"improv": false, | ||
"parts": [ | ||
{ "path": "$cp$bl", "offset": 4096 }, | ||
{ "path": "$cp$part", "offset": 32768 }, | ||
{ "path": "$cp$boot", "offset": 57344 }, | ||
{ "path": "$cp$bin", "offset": 65536 } | ||
] | ||
} | ||
] | ||
}''') | ||
|
||
mf_temp32c3 = string.Template('''{ | ||
"name": "OpenMQTTGateway", | ||
"new_install_prompt_erase": true, | ||
"builds": [ | ||
{ | ||
"chipFamily": "ESP32-C3", | ||
"improv": false, | ||
"parts": [ | ||
{ "path": "$cp$bl", "offset": 0 }, | ||
{ "path": "$cp$part", "offset": 32768 }, | ||
{ "path": "$cp$boot", "offset": 57344 }, | ||
{ "path": "$cp$bin", "offset": 65536 } | ||
] | ||
} | ||
] | ||
}''') | ||
|
||
mf_temp32s3 = string.Template('''{ | ||
"name": "OpenMQTTGateway", | ||
"new_install_prompt_erase": true, | ||
"builds": [ | ||
{ | ||
"chipFamily": "ESP32-S3", | ||
"improv": false, | ||
"parts": [ | ||
{ "path": "$cp$bl", "offset": 0 }, | ||
{ "path": "$cp$part", "offset": 32768 }, | ||
{ "path": "$cp$boot", "offset": 57344 }, | ||
{ "path": "$cp$bin", "offset": 65536 } | ||
] | ||
} | ||
] | ||
}''') | ||
|
||
mf_temp8266 = string.Template('''{ | ||
"name": "OpenMQTTGateway", | ||
"new_install_prompt_erase": true, | ||
"builds": [ | ||
{ | ||
"chipFamily": "ESP8266", | ||
"parts": [{ "path": "$cp$bin", "offset": 0 }] | ||
} | ||
] | ||
}''') | ||
|
||
wu_temp_opt = string.Template(''' | ||
<option | ||
value="$mff" | ||
> | ||
$mfn | ||
</option> | ||
''') | ||
|
||
wu_temp_p1 = '''<template> | ||
<div align="center"> | ||
<select> | ||
<optgroup label="ESP32">''' | ||
|
||
wu_temp_p2 = ''' | ||
</optgroup> | ||
<optgroup label="ESP32C3">''' | ||
|
||
wu_temp_p3 = ''' | ||
</optgroup> | ||
<optgroup label="ESP32S3">''' | ||
|
||
wu_temp_p4 = ''' | ||
</optgroup> | ||
<optgroup label="ESP8266">''' | ||
|
||
wu_temp_end = ''' | ||
</optgroup> | ||
</select><br><br> | ||
<esp-web-install-button erase-first></esp-web-install-button> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
mounted () { | ||
const espWebInstallButton = document.querySelector("esp-web-install-button"); | ||
espWebInstallButton.addEventListener("state-changed", (ev) => { console.log(ev.detail) }); | ||
const selectFW = document.querySelector("select"); | ||
espWebInstallButton.manifest = selectFW.value; | ||
selectFW.addEventListener("change", () => { | ||
espWebInstallButton.manifest = selectFW.value; | ||
}); | ||
} | ||
} | ||
</script>''' | ||
|
||
manif_path = 'docs/.vuepress/public/firmware_build/' | ||
vue_path = 'docs/.vuepress/components/' | ||
cors_proxy = '' # 'https://cors.bridged.cc/' | ||
esp32_boot = 'https://github.com/espressif/arduino-esp32/raw/2.0.7/tools/partitions/boot_app0.bin' |
Oops, something went wrong.