From b5504511db4e5ec3cdaba76957d018e16991ea07 Mon Sep 17 00:00:00 2001 From: Awawa <69086569+awawa-dev@users.noreply.github.com> Date: Fri, 20 Feb 2026 22:34:30 +0100 Subject: [PATCH 1/2] Implement OTA --- .github/workflows/build.yml | 2 +- data/index.html | 8 +- data/ota.js | 214 ++++++++++++++++++++++++++++++++++++ data/settings.html | 191 ++++++++++++++++---------------- data/stats.html | 8 +- data/wifi.js | 81 ++++++++++++++ include/ota.h | 7 ++ platformio.ini | 1 + scripts/web_embedder.py | 30 +++-- src/ota.cpp | 123 +++++++++++++++++++++ src/web_server.cpp | 37 ++++--- version | 2 +- 12 files changed, 580 insertions(+), 124 deletions(-) create mode 100644 data/ota.js create mode 100644 data/wifi.js create mode 100644 include/ota.h create mode 100644 src/ota.cpp diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 148fd41..4a8a82c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,9 +41,9 @@ jobs: if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: - prerelease: true files: release/* generate_release_notes: true draft: true + prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/data/index.html b/data/index.html index 73f6cf5..3152d2f 100644 --- a/data/index.html +++ b/data/index.html @@ -4,10 +4,10 @@ Hyperk - - - - + + + +