Skip to content

Commit

Permalink
Updates from Theo (#218)
Browse files Browse the repository at this point in the history
* Update manifest links

* Update index.html

* Update manifests

* Fix manifest names

* Update release.tasmota-sensors.manifest.json

* Add more manifests

* Add favicon

Co-authored-by: Theo Arends <11044339+arendst@users.noreply.github.com>
  • Loading branch information
Jason2866 and arendst authored Jul 10, 2021
1 parent 55209e2 commit 3d86308
Show file tree
Hide file tree
Showing 14 changed files with 255 additions and 50 deletions.
Binary file added favicon.ico
Binary file not shown.
91 changes: 65 additions & 26 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,56 +1,95 @@
<!DOCTYPE html>
<html>
<html lang="en" class="">
<head>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/>
<title>Install Tasmota</title>
<style>
body {
font-family: sans-serif;
}
.pick-variant {
margin-bottom: 16px;
}
div,fieldset,input,select{padding:5px;font-size:1em;}
fieldset{background:#4f4f4f;}
p{margin:0.5em 0;}
input{width:100%;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#dddddd;color:#000000;}
input[type=checkbox],input[type=radio]{width:1em;margin-right:6px;vertical-align:-1px;}
input[type=range]{width:99%;}
select{width:100%;background:#dddddd;color:#000000;}
textarea{resize:vertical;width:98%;height:318px;padding:5px;overflow:auto;background:#1f1f1f;color:#65c115;}
body{text-align:center;font-family:verdana,sans-serif;background:#252525;}
td{padding:0px;}
button{border:0;border-radius:0.3rem;background:#1fa3ec;color:#faffff;line-height:2.4rem;font-size:1.2rem;width:100%;-webkit-transition-duration:0.4s;transition-duration:0.4s;cursor:pointer;}
button:hover{background:#0e70a4;}
.bred{background:#d43535;}
.bred:hover{background:#931f1f;}
.bgrn{background:#47c266;}
.bgrn:hover{background:#5aaf6f;}
a{color:#1fa3ec;text-decoration:none;}
.p{float:left;text-align:left;}
.q{float:right;text-align:right;}
.r{border-radius:0.3em;padding:2px;margin:6px 2px;}
.pick-variant{margin-bottom:16px;}
</style>
<script
type="module"
src="https://unpkg.com/esp-web-tools@3.4.2/dist/web/install-button.js?module"
></script>
</head>
<body>
<div style='display:inline-block;color:#eaeaea;min-width:340px;'>

<h1>Install Tasmota</h1>

<div class="pick-variant">
<p>
To install Tasmota, connect your ESP device to your computer, pick your
selected variant and click the install button.
To install Tasmota, connect your ESP device</br>
to your computer, pick your selected variant</br>
and click the install button.
</p>
</br>
<select>
<optgroup label="ESP32">
<option
value="firmware/tasmota32/tasmota32.manifest.json"
>
Tasmota32
</option>


<optgroup label="Release">
<option value="manifest/release.tasmota.manifest.json">Tasmota</option>
<option value="manifest/release.tasmota-display.manifest.json">Tasmota Display</option>
<option value="manifest/release.tasmota-lite.manifest.json">Tasmota Lite</option>
<option value="manifest/release.tasmota-sensors.manifest.json">Tasmota Sensors</option>
<option value="manifest/release.tasmota-de.manifest.json">Tasmota Deutsch</option>
</optgroup>
<optgroup label="ESP8266">
<option
value="firmware/tasmota/tasmota.manifest.json"
>
Tasmota
</option>


<optgroup label="Development">
<option value="manifest/development.tasmota.manifest.json">Tasmota</option>
<option value="manifest/development.tasmota-display.manifest.json">Tasmota Display</option>
<option value="manifest/development.tasmota-lite.manifest.json">Tasmota Lite</option>
<option value="manifest/development.tasmota-sensors.manifest.json">Tasmota Sensors</option>
<option value="manifest/development.tasmota-de.manifest.json">Tasmota Deutsch</option>
</optgroup>
</select>
<p>
<input type="checkbox" id="erase" name="erase" onchange="toggleErase()">
<label for="erase">Reset settings to default</label>
</p>

</div>
<esp-web-install-button></esp-web-install-button>
<esp-web-install-button id="inst"></esp-web-install-button>
<script>
const selectEl = document.querySelector(".pick-variant select");
const installEl = document.querySelector("esp-web-install-button");
installEl.manifest = selectEl.value;
selectEl.addEventListener("change", () => {
installEl.manifest = selectEl.value;
});

function toggleErase() {
if (document.getElementById('erase').checked) {
document.getElementById('inst').setAttribute('erase-first','');
} else {
document.getElementById('inst').removeAttribute('erase-first');
}
}
</script>
</br>
</br>
<div style='text-align:right;font-size:11px;'>
<hr/>
<a href="https://esphome.github.io/esp-web-tools/" target='_blank' style='color:#aaa;'>Tasmota Installer powered by ESP Web Tools</a>
</div>

</div>
</body>
</html>
19 changes: 19 additions & 0 deletions manifest/development.tasmota-de.manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Development Tasmota Deutsch",
"builds": [
{
"chipFamily": "ESP32",
"improv": false,
"parts": [
{ "path": "../static/esp32/bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "../static/esp32/partitions.bin", "offset": 32768 },
{ "path": "../static/esp32/boot_app0.bin", "offset": 57344 },
{ "path": "../firmware/tasmota32/languages/tasmota32-DE.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP8266",
"parts": [{ "path": "../firmware/tasmota/languages/tasmota-DE.bin", "offset": 0 }]
}
]
}
19 changes: 19 additions & 0 deletions manifest/development.tasmota-display.manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Development Tasmota Display",
"builds": [
{
"chipFamily": "ESP32",
"improv": false,
"parts": [
{ "path": "../static/esp32/bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "../static/esp32/partitions.bin", "offset": 32768 },
{ "path": "../static/esp32/boot_app0.bin", "offset": 57344 },
{ "path": "../firmware/tasmota32/tasmota32-display.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP8266",
"parts": [{ "path": "../firmware/tasmota/tasmota-display.bin", "offset": 0 }]
}
]
}
19 changes: 19 additions & 0 deletions manifest/development.tasmota-lite.manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Development Tasmota Lite",
"builds": [
{
"chipFamily": "ESP32",
"improv": false,
"parts": [
{ "path": "../static/esp32/bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "../static/esp32/partitions.bin", "offset": 32768 },
{ "path": "../static/esp32/boot_app0.bin", "offset": 57344 },
{ "path": "../firmware/tasmota32/tasmota32.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP8266",
"parts": [{ "path": "../firmware/tasmota/tasmota-lite.bin", "offset": 0 }]
}
]
}
19 changes: 19 additions & 0 deletions manifest/development.tasmota-sensors.manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Development Tasmota Sensors",
"builds": [
{
"chipFamily": "ESP32",
"improv": false,
"parts": [
{ "path": "../static/esp32/bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "../static/esp32/partitions.bin", "offset": 32768 },
{ "path": "../static/esp32/boot_app0.bin", "offset": 57344 },
{ "path": "../firmware/tasmota32/tasmota32.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP8266",
"parts": [{ "path": "../firmware/tasmota/tasmota-sensors.bin", "offset": 0 }]
}
]
}
19 changes: 19 additions & 0 deletions manifest/development.tasmota.manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Development Tasmota",
"builds": [
{
"chipFamily": "ESP32",
"improv": false,
"parts": [
{ "path": "../static/esp32/bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "../static/esp32/partitions.bin", "offset": 32768 },
{ "path": "../static/esp32/boot_app0.bin", "offset": 57344 },
{ "path": "../firmware/tasmota32/tasmota32.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP8266",
"parts": [{ "path": "../firmware/tasmota/tasmota.bin", "offset": 0 }]
}
]
}
19 changes: 19 additions & 0 deletions manifest/release.tasmota-de.manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Release Tasmota Deutsch",
"builds": [
{
"chipFamily": "ESP32",
"improv": false,
"parts": [
{ "path": "../static/esp32/bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "../static/esp32/partitions.bin", "offset": 32768 },
{ "path": "../static/esp32/boot_app0.bin", "offset": 57344 },
{ "path": "../release-firmware/tasmota32/languages/tasmota32-DE.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP8266",
"parts": [{ "path": "../release-firmware/tasmota/languages/tasmota-DE.bin", "offset": 0 }]
}
]
}
19 changes: 19 additions & 0 deletions manifest/release.tasmota-display.manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Release Tasmota Display",
"builds": [
{
"chipFamily": "ESP32",
"improv": false,
"parts": [
{ "path": "../static/esp32/bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "../static/esp32/partitions.bin", "offset": 32768 },
{ "path": "../static/esp32/boot_app0.bin", "offset": 57344 },
{ "path": "../release-firmware/tasmota32/tasmota32-display.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP8266",
"parts": [{ "path": "../release-firmware/tasmota/tasmota-display.bin", "offset": 0 }]
}
]
}
19 changes: 19 additions & 0 deletions manifest/release.tasmota-lite.manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Release Tasmota Lite",
"builds": [
{
"chipFamily": "ESP32",
"improv": false,
"parts": [
{ "path": "../static/esp32/bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "../static/esp32/partitions.bin", "offset": 32768 },
{ "path": "../static/esp32/boot_app0.bin", "offset": 57344 },
{ "path": "../release-firmware/tasmota32/tasmota32.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP8266",
"parts": [{ "path": "../release-firmware/tasmota/tasmota-lite.bin", "offset": 0 }]
}
]
}
19 changes: 19 additions & 0 deletions manifest/release.tasmota-sensors.manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Release Tasmota Sensors",
"builds": [
{
"chipFamily": "ESP32",
"improv": false,
"parts": [
{ "path": "../static/esp32/bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "../static/esp32/partitions.bin", "offset": 32768 },
{ "path": "../static/esp32/boot_app0.bin", "offset": 57344 },
{ "path": "../release-firmware/tasmota32/tasmota32.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP8266",
"parts": [{ "path": "../release-firmware/tasmota/tasmota-sensors.bin", "offset": 0 }]
}
]
}
19 changes: 19 additions & 0 deletions manifest/release.tasmota.manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Release Tasmota",
"builds": [
{
"chipFamily": "ESP32",
"improv": false,
"parts": [
{ "path": "../static/esp32/bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "../static/esp32/partitions.bin", "offset": 32768 },
{ "path": "../static/esp32/boot_app0.bin", "offset": 57344 },
{ "path": "../release-firmware/tasmota32/tasmota32.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP8266",
"parts": [{ "path": "../release-firmware/tasmota/tasmota.bin", "offset": 0 }]
}
]
}
9 changes: 0 additions & 9 deletions manifest/tasmota.manifest.json

This file was deleted.

15 changes: 0 additions & 15 deletions manifest/tasmota32.manifest.json

This file was deleted.

0 comments on commit 3d86308

Please sign in to comment.