Merge pull request #1988 from proddy/dev

fix standalone building
This commit is contained in:
Proddy
2024-09-07 13:28:21 +02:00
committed by GitHub
3 changed files with 25 additions and 14 deletions

View File

@@ -11,7 +11,7 @@
"dependencies": {
"@msgpack/msgpack": "^2.8.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"eslint": "^9.9.1",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"formidable": "^3.5.1",
"itty-router": "^5.0.18",

View File

@@ -208,10 +208,10 @@ __metadata:
languageName: node
linkType: hard
"@eslint/js@npm:9.9.1":
version: 9.9.1
resolution: "@eslint/js@npm:9.9.1"
checksum: 10c0/a3a91de2ce78469f7c4eee78c1eba77360706e1d0fa0ace2e19102079bcf237b851217c85ea501dc92c4c3719d60d9df966977abc8554d4c38e3638c1f53dcb2
"@eslint/js@npm:9.10.0":
version: 9.10.0
resolution: "@eslint/js@npm:9.10.0"
checksum: 10c0/2ac45a002dc1ccf25be46ea61001ada8d77248d1313ab4e53f3735e5ae00738a757874e41f62ad6fbd49df7dffeece66e5f53ff0d7b78a99ce4c68e8fea66753
languageName: node
linkType: hard
@@ -222,6 +222,15 @@ __metadata:
languageName: node
linkType: hard
"@eslint/plugin-kit@npm:^0.1.0":
version: 0.1.0
resolution: "@eslint/plugin-kit@npm:0.1.0"
dependencies:
levn: "npm:^0.4.1"
checksum: 10c0/fae97cd4efc1c32501c286abba1b5409848ce8c989e1ca6a5bb057a304a2cd721e6e957f6bc35ce95cfd0871e822ed42df3c759fecdad72c30e70802e26f83c7
languageName: node
linkType: hard
"@humanwhocodes/module-importer@npm:^1.0.1":
version: 1.0.1
resolution: "@humanwhocodes/module-importer@npm:1.0.1"
@@ -574,15 +583,16 @@ __metadata:
languageName: node
linkType: hard
"eslint@npm:^9.9.1":
version: 9.9.1
resolution: "eslint@npm:9.9.1"
"eslint@npm:^9.10.0":
version: 9.10.0
resolution: "eslint@npm:9.10.0"
dependencies:
"@eslint-community/eslint-utils": "npm:^4.2.0"
"@eslint-community/regexpp": "npm:^4.11.0"
"@eslint/config-array": "npm:^0.18.0"
"@eslint/eslintrc": "npm:^3.1.0"
"@eslint/js": "npm:9.9.1"
"@eslint/js": "npm:9.10.0"
"@eslint/plugin-kit": "npm:^0.1.0"
"@humanwhocodes/module-importer": "npm:^1.0.1"
"@humanwhocodes/retry": "npm:^0.3.0"
"@nodelib/fs.walk": "npm:^1.2.8"
@@ -605,7 +615,6 @@ __metadata:
is-glob: "npm:^4.0.0"
is-path-inside: "npm:^3.0.3"
json-stable-stringify-without-jsonify: "npm:^1.0.1"
levn: "npm:^0.4.1"
lodash.merge: "npm:^4.6.2"
minimatch: "npm:^3.1.2"
natural-compare: "npm:^1.4.0"
@@ -619,7 +628,7 @@ __metadata:
optional: true
bin:
eslint: bin/eslint.js
checksum: 10c0/5e71efda7c0a14ee95436d5cdfed04ee61dfb1d89d7a32b50a424de2e680af82849628ea6581950c2e0726491f786a3cfd0032ce013c1c5093786e475cfdfb33
checksum: 10c0/7357f3995b15043eea83c8c0ab16c385ce3f28925c1b11cfcd6b2ede8faab3d91ede84a68173dd5f6e3e176e177984e6218de58b7b8388e53e2881f1ec07c836
languageName: node
linkType: hard
@@ -960,7 +969,7 @@ __metadata:
dependencies:
"@msgpack/msgpack": "npm:^2.8.0"
"@trivago/prettier-plugin-sort-imports": "npm:^4.3.0"
eslint: "npm:^9.9.1"
eslint: "npm:^9.10.0"
eslint-config-prettier: "npm:^9.1.0"
formidable: "npm:^3.5.1"
itty-router: "npm:^5.0.18"

View File

@@ -994,9 +994,9 @@ void System::show_system(uuid::console::Shell & shell) {
shell.println();
shell.println("System:");
shell.printfln(" Version: %s", EMSESP_APP_VERSION);
#ifndef EMSESP_STANDALONE
shell.printfln(" Platform: %s (%s)", EMSESP_PLATFORM, ESP.getChipModel());
shell.printfln(" Model: %s", getBBQKeesGatewayDetails().c_str());
#ifndef EMSESP_STANDALONE
shell.printfln(" Partition Boot/Running: %s/%s", esp_ota_get_boot_partition()->label, esp_ota_get_running_partition()->label);
#endif
shell.printfln(" Language: %s", locale().c_str());
@@ -1437,12 +1437,14 @@ bool System::command_info(const char * value, const int8_t id, JsonObject output
+ esp_ota_get_running_partition()->label; // will sycle app0/app0 - app1/app1 after OTA. boot/factory is on first install.
#endif
node["resetReason"] = EMSESP::system_.reset_reason(0) + " / " + EMSESP::system_.reset_reason(1);
node["psram"] = (EMSESP::system_.PSram() > 0); // boolean
#ifndef EMSESP_STANDALONE
node["psram"] = (EMSESP::system_.PSram() > 0); // boolean
if (EMSESP::system_.PSram()) {
node["psramSize"] = EMSESP::system_.PSram();
node["freePsram"] = ESP.getFreePsram() / 1024;
}
node["model"] = EMSESP::system_.getBBQKeesGatewayDetails();
#endif
// Network Status
node = output["network"].to<JsonObject>();