diff --git a/platformio.ini b/platformio.ini index f3fc2a50..e3655940 100644 --- a/platformio.ini +++ b/platformio.ini @@ -19,6 +19,7 @@ platform = espressif32@6.1.0 build_flags = -DCOMPONENT_EMBED_FILES=webapp_dist/index.html.gz:webapp_dist/zones.json.gz:webapp_dist/favicon.ico:webapp_dist/js/app.js.gz + -DPIOENV=\"$PIOENV\" -Wall -Wextra -Werror -std=c++17 -std=gnu++17 diff --git a/src/WebApi_sysstatus.cpp b/src/WebApi_sysstatus.cpp index 58af9079..fbb392d9 100644 --- a/src/WebApi_sysstatus.cpp +++ b/src/WebApi_sysstatus.cpp @@ -67,6 +67,7 @@ void WebApiSysstatusClass::onSystemStatus(AsyncWebServerRequest* request) snprintf(version, sizeof(version), "%d.%d.%d", CONFIG_VERSION >> 24 & 0xff, CONFIG_VERSION >> 16 & 0xff, CONFIG_VERSION >> 8 & 0xff); root["config_version"] = version; root["git_hash"] = AUTO_GIT_HASH; + root["pioenv"] = PIOENV; root["uptime"] = esp_timer_get_time() / 1000000; diff --git a/webapp/src/components/FirmwareInfo.vue b/webapp/src/components/FirmwareInfo.vue index afc03cfd..6dd69a14 100644 --- a/webapp/src/components/FirmwareInfo.vue +++ b/webapp/src/components/FirmwareInfo.vue @@ -22,6 +22,10 @@ {{ systemStatus.git_hash }} + + {{ $t('firmwareinfo.PioEnv') }} + {{ systemStatus.pioenv }} + {{ $t('firmwareinfo.FirmwareUpdate') }}