Skip to content

Commit 674ee97

Browse files
authored
Merge pull request #30 from dos-ise/main
Fix: Redirect OTA update URLs to this fork (original repo archived)
2 parents 3ba27ad + 77f9749 commit 674ee97

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

data-src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4623,7 +4623,7 @@ class Firmware {
46234623
let overlay = ui.waitMessage(document.getElementById('divContainer'));
46244624
try {
46254625
let ret = {};
4626-
ret.resp = await fetch(`https://api.github.com/repos/rstrouse/espsomfy-rts/releases/tags/${tag}`);
4626+
ret.resp = await fetch(`https://api.github.com/repos/cjkas/espsomfy-rts/releases/tags/${tag}`);
46274627
if (ret.resp.ok)
46284628
ret.info = await ret.resp.json();
46294629
return ret;

src/GitOTA.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ int16_t GitRepo::getReleases(uint8_t num) {
8484
uint8_t count = min((uint8_t)GIT_MAX_RELEASES, num);
8585
char url[128];
8686
memset(this->releases, 0x00, sizeof(GitRelease) * GIT_MAX_RELEASES);
87-
sprintf(url, "https://api.github.com/repos/rstrouse/espsomfy-rts/releases?per_page=%d&page=1", count);
87+
sprintf(url, "https://api.github.com/repos/cjkas/espsomfy-rts/releases?per_page=%d&page=1", count);
8888
GitRelease *main = &this->releases[GIT_MAX_RELEASES];
8989
main->releaseDate = Timestamp::now();
9090
main->id = 1;
@@ -310,7 +310,7 @@ int GitUpdater::checkInternet() {
310310
esp_task_wdt_reset();
311311
HTTPClient https;
312312
https.setReuse(false);
313-
if(https.begin(sclient, "https://github.com/rstrouse/ESPSomfy-RTS")) {
313+
if(https.begin(sclient, "https://github.com/cjkas/ESPSomfy-RTS")) {
314314
https.setFollowRedirects(HTTPC_FORCE_FOLLOW_REDIRECTS);
315315
https.setTimeout(3000);
316316
esp_task_wdt_reset();
@@ -374,8 +374,8 @@ void GitUpdater::setFirmwareFile() {
374374

375375
bool GitUpdater::beginUpdate(const char *version) {
376376
ESP_LOGI(TAG, "Begin update called...");
377-
if(strcmp(version, "Main") == 0) strcpy(this->baseUrl, "https://raw.githubusercontent.com/rstrouse/ESPSomfy-RTS/master/");
378-
else sprintf(this->baseUrl, "https://github.com/rstrouse/ESPSomfy-RTS/releases/download/%s/", version);
377+
if(strcmp(version, "Main") == 0) strcpy(this->baseUrl, "https://raw.githubusercontent.com/cjkas/ESPSomfy-RTS/master/");
378+
else sprintf(this->baseUrl, "https://github.com/cjkas/ESPSomfy-RTS/releases/download/%s/", version);
379379

380380
strcpy(this->targetRelease, version);
381381
this->emitUpdateCheck();

0 commit comments

Comments
 (0)