mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-10 18:24:27 +05:00
108 lines
3.7 KiB
HTML
108 lines
3.7 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Upgrade - OpenTherm Gateway</title>
|
|
<link rel="stylesheet" href="/static/pico.min.css">
|
|
<link rel="stylesheet" href="/static/app.css">
|
|
</head>
|
|
|
|
<body>
|
|
<header class="container">
|
|
<nav>
|
|
<ul>
|
|
<li><a href="/"><div class="logo">OpenTherm Gateway</div></a></li>
|
|
</ul>
|
|
<ul>
|
|
<li><a href="https://github.com/Laxilef/OTGateway/wiki" role="button" class="secondary" target="_blank">Help</a></li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="container">
|
|
<article>
|
|
<div>
|
|
<hgroup>
|
|
<h2>Backup & restore</h2>
|
|
<p>
|
|
In this section you can save and restore a backup of ALL settings.
|
|
</p>
|
|
</hgroup>
|
|
|
|
<form action="/api/backup/restore" id="restore">
|
|
<label for="restore-file">
|
|
Settings file:
|
|
<input type="file" name="settings" id="restore-file" accept=".json">
|
|
</label>
|
|
|
|
<div class="grid">
|
|
<button type="submit">Restore</button>
|
|
<button type="button" class="secondary" onclick="window.location='/api/backup/save';">Backup</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</article>
|
|
|
|
<article>
|
|
<div>
|
|
<hgroup>
|
|
<h2>Upgrade</h2>
|
|
<p>
|
|
In this section you can upgrade the firmware and filesystem of your device.<br>
|
|
Latest releases can be downloaded from the <a href="https://github.com/Laxilef/OTGateway/releases" target="_blank">Releases page</a> of the project repository.
|
|
</p>
|
|
</hgroup>
|
|
|
|
<form action="/api/upgrade" id="upgrade">
|
|
<fieldset class="primary">
|
|
<label for="firmware-file">
|
|
Firmware:
|
|
<div class="grid">
|
|
<input type="file" name="firmware" id="firmware-file" accept=".bin">
|
|
<button type="button" class="upgrade-firmware-result hidden" disabled></button>
|
|
</div>
|
|
</label>
|
|
|
|
<label for="filesystem-file">
|
|
Filesystem:
|
|
<div class="grid">
|
|
<input type="file" name="filesystem" id="filesystem-file" accept=".bin">
|
|
<button type="button" class="upgrade-filesystem-result hidden" disabled></button>
|
|
</div>
|
|
</label>
|
|
</fieldset>
|
|
|
|
<ul>
|
|
<li><mark>After a successful upgrade the filesystem, ALL settings will be reset to default values! Save backup before upgrading.</mark></li>
|
|
<li><mark>After a successful upgrade, the device will automatically reboot after 10 seconds.</mark></li>
|
|
</ul>
|
|
|
|
<button type="submit">Upgrade</button>
|
|
</form>
|
|
</div>
|
|
</article>
|
|
</main>
|
|
|
|
<footer class="container">
|
|
<small>
|
|
<b>Made by Laxilef</b>
|
|
• <a href="https://github.com/Laxilef/OTGateway/blob/master/LICENSE" target="_blank" class="secondary">License</a>
|
|
• <a href="https://github.com/Laxilef/OTGateway/blob/master/" target="_blank" class="secondary">Source code</a>
|
|
• <a href="https://github.com/Laxilef/OTGateway/wiki" target="_blank" class="secondary">Help</a>
|
|
• <a href="https://github.com/Laxilef/OTGateway/issue" target="_blank" class="secondary">Issue & questions</a>
|
|
• <a href="https://github.com/Laxilef/OTGateway/releases" target="_blank" class="secondary">Releases</a>
|
|
</small>
|
|
</footer>
|
|
|
|
<script src="/static/app.js"></script>
|
|
<script>
|
|
window.onload = async function () {
|
|
setupRestoreBackupForm('#restore');
|
|
setupUpgradeForm('#upgrade');
|
|
};
|
|
</script>
|
|
</body>
|
|
|
|
</html> |