From 77f97498b0263d6747bbc69b65f96708fd7282ae Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 18 Jun 2026 11:46:44 +0200 Subject: [PATCH] Fix OTA update URLs to point to cjkas fork --- data-src/index.js | 2 +- src/GitOTA.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data-src/index.js b/data-src/index.js index cf958204..2915e22c 100644 --- a/data-src/index.js +++ b/data-src/index.js @@ -4623,7 +4623,7 @@ class Firmware { let overlay = ui.waitMessage(document.getElementById('divContainer')); try { let ret = {}; - ret.resp = await fetch(`https://api.github.com/repos/rstrouse/espsomfy-rts/releases/tags/${tag}`); + ret.resp = await fetch(`https://api.github.com/repos/cjkas/espsomfy-rts/releases/tags/${tag}`); if (ret.resp.ok) ret.info = await ret.resp.json(); return ret; diff --git a/src/GitOTA.cpp b/src/GitOTA.cpp index 68de7ec5..19d82892 100644 --- a/src/GitOTA.cpp +++ b/src/GitOTA.cpp @@ -84,7 +84,7 @@ int16_t GitRepo::getReleases(uint8_t num) { uint8_t count = min((uint8_t)GIT_MAX_RELEASES, num); char url[128]; memset(this->releases, 0x00, sizeof(GitRelease) * GIT_MAX_RELEASES); - sprintf(url, "https://api.github.com/repos/rstrouse/espsomfy-rts/releases?per_page=%d&page=1", count); + sprintf(url, "https://api.github.com/repos/cjkas/espsomfy-rts/releases?per_page=%d&page=1", count); GitRelease *main = &this->releases[GIT_MAX_RELEASES]; main->releaseDate = Timestamp::now(); main->id = 1; @@ -310,7 +310,7 @@ int GitUpdater::checkInternet() { esp_task_wdt_reset(); HTTPClient https; https.setReuse(false); - if(https.begin(sclient, "https://github.com/rstrouse/ESPSomfy-RTS")) { + if(https.begin(sclient, "https://github.com/cjkas/ESPSomfy-RTS")) { https.setFollowRedirects(HTTPC_FORCE_FOLLOW_REDIRECTS); https.setTimeout(3000); esp_task_wdt_reset(); @@ -374,8 +374,8 @@ void GitUpdater::setFirmwareFile() { bool GitUpdater::beginUpdate(const char *version) { ESP_LOGI(TAG, "Begin update called..."); - if(strcmp(version, "Main") == 0) strcpy(this->baseUrl, "https://raw.githubusercontent.com/rstrouse/ESPSomfy-RTS/master/"); - else sprintf(this->baseUrl, "https://github.com/rstrouse/ESPSomfy-RTS/releases/download/%s/", version); + if(strcmp(version, "Main") == 0) strcpy(this->baseUrl, "https://raw.githubusercontent.com/cjkas/ESPSomfy-RTS/master/"); + else sprintf(this->baseUrl, "https://github.com/cjkas/ESPSomfy-RTS/releases/download/%s/", version); strcpy(this->targetRelease, version); this->emitUpdateCheck();