Add ESP-IDF version to overview (#604)

* Add ESP-IDF version to overview

* Add idf version to api endpoint
This commit is contained in:
Erik Olof Gunnar Andersson 2025-01-05 01:08:07 +01:00 committed by GitHub
parent 31a92aa2a0
commit 93f40a32dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 1 deletions

View File

@ -27,6 +27,10 @@
<td>Version:</td>
<td>{{info.version}}</td>
</tr>
<tr>
<td>ESP-IDF Version:</td>
<td>{{info.idfVersion}}</td>
</tr>
<tr>
<td>Board Version:</td>
<td>{{info.boardVersion}}</td>
@ -52,4 +56,4 @@
</div>
</div>
</div>
</div>
</div>

View File

@ -52,6 +52,7 @@ export class SystemService {
isUsingFallbackStratum: true,
frequency: 485,
version: "2.0",
idfVersion: "v5.1.2",
boardVersion: "204",
flipscreen: 1,
invertscreen: 0,

View File

@ -33,6 +33,7 @@ export interface ISystemInfo {
fallbackStratumUser: string,
frequency: number,
version: string,
idfVersion: string,
boardVersion: string,
invertfanpolarity: number,
autofanspeed: number,

View File

@ -422,6 +422,7 @@ static esp_err_t GET_system_info(httpd_req_t * req)
cJSON_AddStringToObject(root, "fallbackStratumUser", fallbackStratumUser);
cJSON_AddStringToObject(root, "version", esp_app_get_description()->version);
cJSON_AddStringToObject(root, "idfVersion", esp_get_idf_version());
cJSON_AddStringToObject(root, "boardVersion", board_version);
cJSON_AddStringToObject(root, "runningPartition", esp_ota_get_running_partition()->label);