iobroker.eos-admin 9.0.19 → 9.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NEXOWATT_EOS_BUILD_INFO.json +4 -4
- package/README.md +7 -3
- package/START_HIER_9.0.20.md +65 -0
- package/adminWww/.vite/manifest.json +39 -39
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +110 -109
- package/adminWww/assets/{AdapterUpdateDialog-JOf2z4Vg.js → AdapterUpdateDialog-Dxl_b7Op.js} +1 -1
- package/adminWww/assets/{Adapters-C9fcSdWm.js → Adapters-CVKKhXmI.js} +1 -1
- package/adminWww/assets/{ConfigManager-BeeLlT6D.js → ConfigManager-Bf6nTAkL.js} +1 -1
- package/adminWww/assets/{Enums-FqnXWl8U.js → Enums-CJHVJY7t.js} +1 -1
- package/adminWww/assets/{Fields-DMgrt5Pi.js → Fields-DWHbZKvm.js} +1 -1
- package/adminWww/assets/{Files-CIHtt12g.js → Files-a6owMTXA.js} +1 -1
- package/adminWww/assets/{Hosts-fPLBzvTy.js → Hosts-LtEMeXpV.js} +1 -1
- package/adminWww/assets/{Instances-4XaVQlrT.js → Instances-DhChziA1.js} +1 -1
- package/adminWww/assets/{Intro-5TKriiLO.js → Intro-Cyq9gVDC.js} +1 -1
- package/adminWww/assets/{Logs-33zcIds-.js → Logs-wcramXsg.js} +1 -1
- package/adminWww/assets/{Objects-CNQPVbNG.js → Objects-DINVHd_e.js} +1 -1
- package/adminWww/assets/{Overview-BskXGOc8.js → Overview-DK4R41zR.js} +1 -1
- package/adminWww/assets/{State-C8SJ_Iqo.js → State-DcEACXzL.js} +1 -1
- package/adminWww/assets/{UsedResources-CgqRa9ei.js → UsedResources-C1LcM0Rb.js} +1 -1
- package/adminWww/assets/{Users-0JVYWR9u.js → Users-DvDdSyDY.js} +1 -1
- package/adminWww/assets/{bootstrap-D16lu6rd.js → bootstrap-Dbj_GbnP.js} +3 -3
- package/adminWww/assets/{hostInit-C8YZJuzi.js → hostInit-BNFIx0-f.js} +1 -1
- package/adminWww/assets/icons/nexowatt-180.png +0 -0
- package/adminWww/assets/{icons-material-CiNJ_6Ur.js → icons-material-DVbdXNgr.js} +1 -1
- package/adminWww/assets/{index-DA9Sphgh.js → index-CoKP1NSA.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-DPdkRa_d.js → installSVGRenderer-CMvku1F1.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-a7ab91de.js → mf-entry-bootstrap-0-ac330bce.js} +2 -2
- package/adminWww/index.html +24 -24
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/mf-stats.json +1 -1
- package/adminWww/{remoteEntry-eos-9.0.19.js → remoteEntry-eos-9.0.21.js} +1 -1
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosCustomerUpdateHttp.js +203 -0
- package/build/lib/eosCustomerUpdateHttp.js.map +1 -0
- package/build/lib/eosCustomerUpdateTransport.js +472 -0
- package/build/lib/eosCustomerUpdateTransport.js.map +1 -0
- package/build/lib/eosCustomerUpdateWorker.js +567 -0
- package/build/lib/eosCustomerUpdateWorker.js.map +1 -0
- package/build/lib/eosCustomerUpdates.js +631 -0
- package/build/lib/eosCustomerUpdates.js.map +1 -0
- package/build/lib/eosDeviceEmsPlan.js +18 -5
- package/build/lib/eosDeviceEmsPlan.js.map +1 -1
- package/build/lib/eosDeviceEmsService.js +52 -2
- package/build/lib/eosDeviceEmsService.js.map +1 -1
- package/build/lib/eosLegacyMigration.js +26 -1
- package/build/lib/eosLegacyMigration.js.map +1 -1
- package/build/lib/eosModuleConfigStore.js +12 -1
- package/build/lib/eosModuleConfigStore.js.map +1 -1
- package/build/lib/eosModuleHost.js +81 -26
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +8 -2
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosStateSubscriptions.js +59 -2
- package/build/lib/eosStateSubscriptions.js.map +1 -1
- package/build/lib/eosUpdateSnapshot.js +290 -0
- package/build/lib/eosUpdateSnapshot.js.map +1 -0
- package/build/lib/eosUploadGuard.js +124 -81
- package/build/lib/eosUploadGuard.js.map +1 -1
- package/build/lib/web.js +83 -0
- package/build/lib/web.js.map +1 -1
- package/docs/reports/unified-9.0.20/ANFORDERUNGEN_UND_INBETRIEBNAHME.md +159 -0
- package/docs/reports/unified-9.0.20/DEVICE_COMMAND_DELIVERY_REVIEW.md +82 -0
- package/docs/reports/unified-9.0.20/DEVICE_LIFECYCLE_REVIEW.md +46 -0
- package/docs/reports/unified-9.0.20/DEVICE_PLAN_REVIEW.md +33 -0
- package/docs/reports/unified-9.0.20/DEVICE_POWER_CAPABILITY_REVIEW.md +25 -0
- package/docs/reports/unified-9.0.20/FARM_CONTROLLER_REVIEW.md +27 -0
- package/docs/reports/unified-9.0.20/FARM_DIAGNOSE_UI.md +81 -0
- package/docs/reports/unified-9.0.20/FARM_DISPATCH_REVIEW.md +47 -0
- package/docs/reports/unified-9.0.20/HISTORY_REVIEW.md +68 -0
- package/docs/reports/unified-9.0.20/INFLUXDB2_INSTALLER_UI.md +39 -0
- package/docs/reports/unified-9.0.20/INFLUX_CREDENTIAL_NETWORK_REVIEW.md +38 -0
- package/docs/reports/unified-9.0.20/INFLUX_DIRECT_UNABHAENGIGE_PRUEFUNG.md +64 -0
- package/docs/reports/unified-9.0.20/INFLUX_RUNTIME_INTEGRATION_REVIEW.md +53 -0
- package/docs/reports/unified-9.0.20/INFLUX_RUNTIME_UNABHAENGIGE_PRUEFUNG.md +34 -0
- package/docs/reports/unified-9.0.20/INFLUX_TRANSPORT_ABSCHLUSSPRUEFUNG.md +55 -0
- package/docs/reports/unified-9.0.20/LOGIN_WEBAPP_LOGO.md +29 -0
- package/docs/reports/unified-9.0.20/MIGRATION_REVIEW.md +35 -0
- package/docs/reports/unified-9.0.20/PRUEFBERICHT.md +54 -0
- package/docs/reports/unified-9.0.20/PWA_ANONYMOUS_HTTPS_REVIEW.md +28 -0
- package/docs/reports/unified-9.0.20/PWA_ICON_UNABHAENGIGE_PRUEFUNG.md +60 -0
- package/docs/reports/unified-9.0.20/SERIAL_LIFECYCLE_REVIEW.md +37 -0
- package/docs/reports/unified-9.0.20/SOLAX_READBACK_REVIEW.md +43 -0
- package/docs/reports/unified-9.0.20/SOLAX_READBACK_UNABHAENGIGE_PRUEFUNG.md +34 -0
- package/docs/reports/unified-9.0.20/STATIC_REVIEW_DE.md +175 -0
- package/docs/reports/unified-9.0.20/STORAGE_COMMAND_ACK_REVIEW.md +36 -0
- package/docs/reports/unified-9.0.20/TARIFF_REPORT_REVIEW.md +29 -0
- package/docs/reports/unified-9.0.20/VISUALISIERUNG.md +64 -0
- package/docs/reports/unified-9.0.20/history-setup-navigation-proxy.txt +26 -0
- package/docs/reports/unified-9.0.20/history-setup-navigation-ssr.txt +7 -0
- package/docs/reports/unified-9.0.20/history-setup-ui-lint.txt +0 -0
- package/docs/reports/unified-9.0.20/history-setup-ui-node22.txt +102 -0
- package/docs/reports/unified-9.0.20/history-setup-ui-node24.txt +23 -0
- package/docs/reports/unified-9.0.20/history-setup-ui-security.txt +0 -0
- package/docs/reports/unified-9.0.20/history-setup-ui-typecheck.txt +0 -0
- package/docs/reports/unified-9.0.20/login-pwa-branding-hashes.txt +9 -0
- package/docs/reports/unified-9.0.20/login-pwa-branding-node22.txt +42 -0
- package/docs/reports/unified-9.0.20/login-pwa-branding-node24.txt +13 -0
- package/docs/reports/unified-9.0.20/raw/INDEX.json +1913 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/baseline-node22.log +16 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/baseline-node24.log +14 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/lint-after.json +1 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/lint-before.json +1 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/modbus-stop-backoff.cjs +22 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-control-review.log +29 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-final.json +18 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-final.log +325 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-review.log +278 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-final.json +18 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-final.log +58 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-review.log +51 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/api-gaps-before.log +64 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/api-negative-before.log +46 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/chart-gaps-before.log +127 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-after.log +67 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-before.log +61 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-eslint-js.log +0 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-eslint-ts.log +0 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-node22.log +442 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-node24.log +78 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/fix.py +73 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-eslint-final.json +7 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-final-node22.log +279 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-final-node24.log +52 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-followup-node22.log +223 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-followup-node24.log +43 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-own-cache.log +17 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/negative-pricing-before.log +96 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/node22-after.log +66 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/node22-repro.log +8 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/node24-after.log +17 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/node24-repro.log +8 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/repro.cjs +39 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/chromium-probe.log +3 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/patch-live.py +101 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/repro-live-display.cjs +26 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/repro-live-display.log +36 -0
- package/docs/reports/unified-9.0.20/raw/audit-full.log +345 -0
- package/docs/reports/unified-9.0.20/raw/audit-full.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/audit-runtime.log +23 -0
- package/docs/reports/unified-9.0.20/raw/audit-runtime.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/backend-final.log +5 -0
- package/docs/reports/unified-9.0.20/raw/backend-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node22.result.json +20 -0
- package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node22.tap +721 -0
- package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node24.result.json +20 -0
- package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node24.tap +127 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-evidence.json +69 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-failed-init-drain-919-before.log +14 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-final-node22.log +882 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-final-node24.log +149 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-lint.log +0 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-planner-919-before.log +70 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-retained-readiness-before.log +34 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-runtime-retry-919-before.log +46 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-types-node24.log +0 -0
- package/docs/reports/unified-9.0.20/raw/device-farm-protocol/DEVICE_FARM_READONLY_REVIEW.md +66 -0
- package/docs/reports/unified-9.0.20/raw/device-farm-protocol/run-readback-tests.cjs +13 -0
- package/docs/reports/unified-9.0.20/raw/device-farm-protocol/solax-control-chain.test.cjs +58 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-baseline-node22.log +16 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-baseline-node24.log +14 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-evidence.json +55 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-lint-after.json +1 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-lint-before.json +1 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-modbus-stop-backoff.cjs +22 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-control-review.log +29 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-final.json +18 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-final.log +325 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-review.log +278 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-final.json +18 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-final.log +58 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-review.log +51 -0
- package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node22.log +0 -0
- package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node22.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node24.log +0 -0
- package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node24.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/farm-controller/controller-node22.log +110 -0
- package/docs/reports/unified-9.0.20/raw/farm-controller/controller-node24.log +24 -0
- package/docs/reports/unified-9.0.20/raw/farm-controller/evidence.json +33 -0
- package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-lint.txt +0 -0
- package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-node22.txt +113 -0
- package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-node24.txt +26 -0
- package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-security.txt +0 -0
- package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-typecheck.txt +0 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/allocator-baseline.jsonl +6 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-before.log +138 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-main-delta.patch +77 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-main-lint.json +7 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node22.log +64 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node22.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node24.log +18 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node24.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/final-ui-independent-review.json +194 -0
- package/docs/reports/unified-9.0.20/raw/frontend-build.log +152 -0
- package/docs/reports/unified-9.0.20/raw/frontend-build.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node22.json +35 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node22.result.json +17 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node24.json +31 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node24.result.json +17 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/parser-before.json +31 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/parser-reproducer.cjs +9 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node22.result.json +18 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node22.tap +34 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node24.result.json +18 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node24.tap +11 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra.test.cjs +9 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/node22-focused.log +165 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/node24-focused.log +35 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/review-receipt.json +57 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/split-response-after.log +1 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/split-response-before.log +1 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/split-response.cjs +16 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/stop-race-generation-guard.log +1 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/stop-race.cjs +13 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct/eslint.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct/node22.log +112 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct/node24.log +24 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct/typecheck.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/hosted-module-history.test.cjs +85 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node22.json +12 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node22.log +100 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node24.json +12 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node24.log +21 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/runtime-after.test.cjs +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/runtime-loss-before.test.cjs +9 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/security-scan.cjs +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/transport-extra.test.cjs +9 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node22.log +227 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node22.result.json +11 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node24.log +44 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node24.result.json +11 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/node22.log +112 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/node22.result.json +12 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/node24.log +23 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/node24.result.json +12 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/runtime-after.test.cjs +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/transport-extra.test.cjs +9 -0
- package/docs/reports/unified-9.0.20/raw/influx-runtime/evidence.json +24 -0
- package/docs/reports/unified-9.0.20/raw/influx-runtime/final-node22.log +326 -0
- package/docs/reports/unified-9.0.20/raw/influx-runtime/final-node24.log +59 -0
- package/docs/reports/unified-9.0.20/raw/influx-runtime/runtime-node22.log +62 -0
- package/docs/reports/unified-9.0.20/raw/influx-runtime/runtime-node24.log +16 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-lint.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-lint.result.json +17 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node22.log +112 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node22.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node24.log +106 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node24.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-typecheck.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-typecheck.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/source-sha256.json +5 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-lint-final.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-lint-final.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node22-final.log +124 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node22-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node24-final.log +26 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node24-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node22-final.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node22-final.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node24-final.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node24-final.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-ui-independent-review-final.json +285 -0
- package/docs/reports/unified-9.0.20/raw/influx-ui-independent-review-intermediate.json +285 -0
- package/docs/reports/unified-9.0.20/raw/installer-build.log +26 -0
- package/docs/reports/unified-9.0.20/raw/installer-build.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/isolation/INDEX.json +332 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-final.log +3 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-final.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-hosted.log +6 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-hosted.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-verified.log +1 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-verified.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family.log +11 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-final.log +3 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-final.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-hosted.log +3 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-hosted.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-verified.log +1 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-verified.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid.log +11 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node22.log +296 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node22.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node24.log +56 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node24.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-node24.log +54 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-node24.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-output-modes.log +1 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-output-modes.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node22.log +332 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node22.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node24.log +62 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node24.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node22.log +342 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node22.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node24.log +72 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node24.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/isolation-node22.log +482 -0
- package/docs/reports/unified-9.0.20/raw/isolation/isolation-node22.result.json +19 -0
- package/docs/reports/unified-9.0.20/raw/isolation/isolation-node24.log +87 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-lint.log +0 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-lint.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-node22.log +330 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-node22.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-node24-before.log +72 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-node24-before.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-node24.log +60 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-node24.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/repro-migration-start-budget.cjs +49 -0
- package/docs/reports/unified-9.0.20/raw/isolation/repro-serial-release.cjs +21 -0
- package/docs/reports/unified-9.0.20/raw/isolation/repro-sunspec-discovery.cjs +11 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-before-repro.log +1 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-before-repro.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node22.log +32 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node22.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node24.log +11 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node24.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck-final.log +0 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck-final.result.json +28 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck.log +2 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck.result.json +26 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-lint.log +0 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-lint.result.json +18 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-node22.log +344 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-node22.result.json +17 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-node24.log +62 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-node24.result.json +17 -0
- package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-after.log +3 -0
- package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-after.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-before.log +3 -0
- package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-before.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/keygen-source.json +6 -0
- package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/check-919.log +70 -0
- package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/check-920.log +71 -0
- package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/diff.json +82 -0
- package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/receipt.json +48 -0
- package/docs/reports/unified-9.0.20/raw/lint-final.log +16 -0
- package/docs/reports/unified-9.0.20/raw/lint-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/main-individual-review-before-cache-boundary-fix.json +112 -0
- package/docs/reports/unified-9.0.20/raw/main-individual-review-before-capability-ack.json +103 -0
- package/docs/reports/unified-9.0.20/raw/main-individual-review-before-farm-diagnostics.json +102 -0
- package/docs/reports/unified-9.0.20/raw/main-individual-review-final.json +103 -0
- package/docs/reports/unified-9.0.20/raw/main-individual-review.json +93 -0
- package/docs/reports/unified-9.0.20/raw/modules-build.log +5 -0
- package/docs/reports/unified-9.0.20/raw/modules-build.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/node22-tests-final.log +12471 -0
- package/docs/reports/unified-9.0.20/raw/node22-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/node22-typecheck-final.log +7 -0
- package/docs/reports/unified-9.0.20/raw/node22-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.20/raw/node24-tests-final.log +2093 -0
- package/docs/reports/unified-9.0.20/raw/node24-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/node24-typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.20/raw/node24-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.20/raw/power-capability/evidence.json +69 -0
- package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-existing-regressions-node24.log +94 -0
- package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-lint.log +0 -0
- package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-node22.log +304 -0
- package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-node24.log +56 -0
- package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-typecheck.log +0 -0
- package/docs/reports/unified-9.0.20/raw/pwa-https/evidence.json +45 -0
- package/docs/reports/unified-9.0.20/raw/pwa-https/node22-build.log +21 -0
- package/docs/reports/unified-9.0.20/raw/pwa-https/node22-source.log +23 -0
- package/docs/reports/unified-9.0.20/raw/pwa-https/node24-build.log +11 -0
- package/docs/reports/unified-9.0.20/raw/pwa-https/node24-source.log +11 -0
- package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-boundaries.test.cjs +45 -0
- package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-receipt.json +71 -0
- package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-v22.23.4.tap +34 -0
- package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-v24.22.3.tap +11 -0
- package/docs/reports/unified-9.0.20/raw/pwa-ui-independent-review-final.json +348 -0
- package/docs/reports/unified-9.0.20/raw/repro-failed-init-drain-before.cjs +15 -0
- package/docs/reports/unified-9.0.20/raw/repro-profile-replacement-after-unmapped.cjs +15 -0
- package/docs/reports/unified-9.0.20/raw/repro-runtime-retry-before.cjs +18 -0
- package/docs/reports/unified-9.0.20/raw/sbom-runtime.log +7 -0
- package/docs/reports/unified-9.0.20/raw/sbom-runtime.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/sbom-vendor-check.log +1 -0
- package/docs/reports/unified-9.0.20/raw/sbom-vendor-check.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/solax-readback-node22.json +30 -0
- package/docs/reports/unified-9.0.20/raw/solax-readback-node22.log +542 -0
- package/docs/reports/unified-9.0.20/raw/solax-readback-node24.json +30 -0
- package/docs/reports/unified-9.0.20/raw/solax-readback-node24.log +97 -0
- package/docs/reports/unified-9.0.20/raw/tariff-report-before.log +147 -0
- package/docs/reports/unified-9.0.20/raw/tariff-report-evidence.json +48 -0
- package/docs/reports/unified-9.0.20/raw/tariff-report-final-node22.log +151 -0
- package/docs/reports/unified-9.0.20/raw/tariff-report-final-node24.log +32 -0
- package/docs/reports/unified-9.0.20/raw/ui-docs-check.log +6 -0
- package/docs/reports/unified-9.0.20/raw/ui-docs-check.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/ui-runtime-final.log +7 -0
- package/docs/reports/unified-9.0.20/raw/ui-runtime-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/ui-runtime-sync.log +6 -0
- package/docs/reports/unified-9.0.20/raw/ui-runtime-sync.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/ui-sbom-check.log +6 -0
- package/docs/reports/unified-9.0.20/raw/ui-sbom-check.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/ui-sbom-final.log +6 -0
- package/docs/reports/unified-9.0.20/raw/ui-sbom-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/ui-secret-final.log +6 -0
- package/docs/reports/unified-9.0.20/raw/ui-secret-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/ui-security-final.log +8 -0
- package/docs/reports/unified-9.0.20/raw/ui-security-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/visuals-baseline-919.txt +36 -0
- package/docs/reports/unified-9.0.20/raw/visuals-browser-limit.txt +3 -0
- package/docs/reports/unified-9.0.20/raw/visuals-lint.txt +0 -0
- package/docs/reports/unified-9.0.20/raw/visuals-node22.txt +258 -0
- package/docs/reports/unified-9.0.20/raw/visuals-node24.txt +51 -0
- package/docs/reports/unified-9.0.20/raw/visuals-security.txt +0 -0
- package/docs/reports/unified-9.0.20/raw/visuals-typecheck.txt +0 -0
- package/docs/reports/unified-9.0.20/raw/wallet-freshness-after.log +19 -0
- package/docs/reports/unified-9.0.20/raw/wallet-freshness-after.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/wallet-freshness-before.log +31 -0
- package/docs/reports/unified-9.0.20/raw/wallet-freshness-before.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/wallet-freshness-independent.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/wallet-freshness-independent.tap +10 -0
- package/io-package.json +12 -12
- package/modules/backup/admin/index.js +4 -1
- package/modules/devices/admin/host-bridge.js +5 -1
- package/modules/devices/lib/device-alias-semantics-v1.json +22 -1
- package/modules/devices/lib/deviceAliasFreshness.js +1 -0
- package/modules/devices/lib/deviceAliasSemantics.js +13 -3
- package/modules/devices/lib/deviceRuntime.js +106 -12
- package/modules/devices/lib/drivers/modbus.js +90 -21
- package/modules/devices/lib/drivers/modbusAsciiBus.js +47 -31
- package/modules/devices/lib/drivers/modbusRtuBus.js +33 -9
- package/modules/devices/lib/drivers/modbusSerialLease.js +29 -0
- package/modules/devices/lib/drivers/mqtt.js +204 -82
- package/modules/devices/lib/drivers/mqttPendingOperations.js +119 -0
- package/modules/devices/lib/modbusReadEvidence.js +29 -0
- package/modules/devices/test/deviceAliasFreshness.test.js +7 -2
- package/modules/devices/test/modbusConnectLifecycle.test.js +148 -0
- package/modules/devices/test/modbusSerialLifecycle.test.js +91 -0
- package/modules/devices/test/mqttCommandLifecycle.test.js +255 -0
- package/modules/devices/test/mqttResourceBounds.test.js +98 -0
- package/modules/devices/test/mqttRuntimeSession.test.js +109 -0
- package/modules/devices/test/serialOperationGate.test.js +3 -3
- package/modules/devices/test/solaxReadbackContext.test.js +472 -0
- package/modules/devices/tsconfig.alias-semantics.json +1 -1
- package/modules/devices/tsconfig.mqtt-lifecycle.json +20 -0
- package/modules/devices/tsconfig.serial-lifecycle.json +18 -0
- package/modules/eebus/admin/index.js +6 -3
- package/package.json +9 -7
- package/release-manifests/unified/build-environment.cdx.json +6 -6
- package/release-manifests/unified/files.json +848 -169
- package/release-manifests/unified/frontend.cdx.json +6 -6
- package/release-manifests/unified/installer.cdx.json +6 -6
- package/release-manifests/unified/obsolete-admin-assets.json +154 -6
- package/release-manifests/unified/runtime.cdx.json +25 -25
- package/release-manifests/unified/validation.json +15 -15
- package/tools/eos-release-check.cjs +2 -2
- package/tools/eos-release-manifest.cjs +3 -3
- package/ui/admin/react/assets/index-BJO3q7oe.js +13 -0
- package/ui/admin/react/assets/{index-CuquHlsY.css → index-ofLP_Y7y.css} +1 -1
- package/ui/admin/react/index.html +2 -2
- package/ui/docs/security/eslint-reviewed-findings.json +91 -35
- package/ui/ems/engine.js +14 -3
- package/ui/ems/modules/energy-wallet.js +9 -3
- package/ui/ems/modules/storage-control.js +60 -19
- package/ui/ems/modules/tariff-provider.js +34 -10
- package/ui/ems/services/tariff-provider-registry.js +18 -8
- package/ui/io-package.json +1 -1
- package/ui/lib/influx-config.js +204 -0
- package/ui/lib/influx-direct.js +527 -0
- package/ui/lib/influx-history-runtime.js +326 -0
- package/ui/lib/influx-network-policy.js +112 -0
- package/ui/lib/ui-access-policy.js +2 -2
- package/ui/main.js +614 -255
- package/ui/package.json +12 -6
- package/ui/www/app.js +152 -203
- package/ui/www/ems-apps.html +2 -1
- package/ui/www/ems-apps.js +8 -1
- package/ui/www/energy-ledger.html +1 -1
- package/ui/www/eos-updates.css +15 -0
- package/ui/www/eos-updates.js +351 -0
- package/ui/www/evcs.html +1 -1
- package/ui/www/history.html +1 -1
- package/ui/www/history.js +114 -74
- package/ui/www/index.html +4 -1
- package/ui/www/live-display.js +115 -0
- package/ui/www/logic.html +1 -1
- package/ui/www/login.css +1 -0
- package/ui/www/login.html +2 -1
- package/ui/www/manifest.webmanifest +3 -3
- package/ui/www/settings.html +36 -1
- package/ui/www/simulation.html +1 -1
- package/ui/www/smarthome-config.html +1 -1
- package/ui/www/smarthome.html +1 -1
- package/ui/www/storagefarm-dispatch.js +287 -0
- package/ui/www/storagefarm-summary.css +15 -0
- package/ui/www/storagefarm.html +15 -1
- package/ui/www/storagefarm.js +8 -26
- package/ui/www/tariff-report.js +43 -25
- package/ui/admin/react/assets/index-Bq5IupDw.js +0 -13
package/ui/www/history.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
8
|
*
|
|
9
9
|
* Quelle: src-ts/runtime-executables/www/history.ts
|
|
10
|
-
* Quell-Hash: sha256:
|
|
10
|
+
* Quell-Hash: sha256:e83f9d9791c6feaf52b091e272d61df1324729010daf84668775ef05b89d5e1c
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -768,11 +768,19 @@ function draw(){
|
|
|
768
768
|
// consumer/producer series (those are shown as dashed overlay lines).
|
|
769
769
|
let stackCtx = null;
|
|
770
770
|
if (stackMode) {
|
|
771
|
-
|
|
771
|
+
// Core selection is fixed; no caller-supplied name becomes an object lookup.
|
|
772
|
+
const coreSeries = new Map([
|
|
773
|
+
['pv', series.pv], ['chg', series.chg], ['dchg', series.dchg], ['sell', series.sell],
|
|
774
|
+
['buy', series.buy], ['evcs', series.evcs], ['load', series.load],
|
|
775
|
+
]);
|
|
776
|
+
const stackKeys = visibleBaseKeys.filter(k => {
|
|
777
|
+
const item = coreSeries.get(k);
|
|
778
|
+
return Array.isArray(item?.values) && item.values.length;
|
|
779
|
+
});
|
|
772
780
|
const valMap = {};
|
|
773
781
|
stackKeys.forEach(k=>{
|
|
774
782
|
const m = new Map();
|
|
775
|
-
const vals = (
|
|
783
|
+
const vals = coreSeries.get(k)?.values || [];
|
|
776
784
|
vals.forEach(p=>{ m.set(p[0], mapKW(k, p[1])); });
|
|
777
785
|
valMap[k] = m;
|
|
778
786
|
});
|
|
@@ -870,7 +878,7 @@ function draw(){
|
|
|
870
878
|
*/
|
|
871
879
|
function mapKW(k, w){
|
|
872
880
|
// w in Watts -> return kW with desired sign
|
|
873
|
-
const val =
|
|
881
|
+
const val = historyNumericValue(w);
|
|
874
882
|
// dynamic Energiefluss series
|
|
875
883
|
if (String(k||'').startsWith('c')) return -Math.abs(val)/1000; // Verbraucher
|
|
876
884
|
if (String(k||'').startsWith('p')) return Math.abs(val)/1000; // Erzeuger
|
|
@@ -927,16 +935,24 @@ function draw(){
|
|
|
927
935
|
if (dash) ctx.setLineDash(dash);
|
|
928
936
|
ctx.lineWidth = Number.isFinite(Number(width)) ? Number(width) : 2;
|
|
929
937
|
ctx.strokeStyle = color;
|
|
938
|
+
let penDown = false;
|
|
930
939
|
if (k==='soc'){
|
|
931
940
|
let idx=0; let last=null;
|
|
932
941
|
xs.forEach((ts,i)=>{
|
|
933
942
|
while(idx<vals.length && vals[idx][0] <= ts){ last = vals[idx][1]; idx++; }
|
|
934
|
-
if(last
|
|
943
|
+
if(!Number.isFinite(historyNumericValue(last))) { penDown = false; return; }
|
|
935
944
|
const xx = x(ts); const yy = ySoc(last);
|
|
936
|
-
if (
|
|
945
|
+
if (!penDown) ctx.moveTo(xx,yy); else ctx.lineTo(xx,yy);
|
|
946
|
+
penDown = true;
|
|
937
947
|
});
|
|
938
948
|
} else {
|
|
939
|
-
vals.forEach(
|
|
949
|
+
vals.forEach(p=>{
|
|
950
|
+
const value = mapKW(k, p[1]);
|
|
951
|
+
if (!Number.isFinite(value)) { penDown = false; return; }
|
|
952
|
+
const xx=x(p[0]); const yy=yPow(value);
|
|
953
|
+
if (!penDown) ctx.moveTo(xx,yy); else ctx.lineTo(xx,yy);
|
|
954
|
+
penDown = true;
|
|
955
|
+
});
|
|
940
956
|
}
|
|
941
957
|
ctx.stroke(); ctx.restore();
|
|
942
958
|
}
|
|
@@ -960,16 +976,16 @@ function draw(){
|
|
|
960
976
|
|
|
961
977
|
for (const k of posKeys) {
|
|
962
978
|
const v = valMap[k].get(ts);
|
|
963
|
-
const vv = Number.isFinite(v) ? v :
|
|
979
|
+
const vv = Number.isFinite(v) ? v : NaN;
|
|
964
980
|
stack[k].lower[i] = pos;
|
|
965
|
-
pos += (vv
|
|
981
|
+
pos += Number.isFinite(vv) ? Math.max(0, vv) : NaN;
|
|
966
982
|
stack[k].upper[i] = pos;
|
|
967
983
|
}
|
|
968
984
|
for (const k of negKeys) {
|
|
969
985
|
const v = valMap[k].get(ts);
|
|
970
|
-
const vv = Number.isFinite(v) ? v :
|
|
986
|
+
const vv = Number.isFinite(v) ? v : NaN;
|
|
971
987
|
stack[k].lower[i] = neg;
|
|
972
|
-
neg += (vv
|
|
988
|
+
neg += Number.isFinite(vv) ? Math.min(0, vv) : NaN;
|
|
973
989
|
stack[k].upper[i] = neg;
|
|
974
990
|
}
|
|
975
991
|
}
|
|
@@ -998,23 +1014,27 @@ function draw(){
|
|
|
998
1014
|
|
|
999
1015
|
const col = CORE_COLORS[k] || '#9aa4ad';
|
|
1000
1016
|
ctx.save();
|
|
1001
|
-
ctx.beginPath();
|
|
1002
|
-
for (let i = 0; i < xs.length; i++) {
|
|
1003
|
-
const xx = x(xs[i]);
|
|
1004
|
-
const yy = yPow(seg.upper[i]);
|
|
1005
|
-
if (i === 0) ctx.moveTo(xx, yy); else ctx.lineTo(xx, yy);
|
|
1006
|
-
}
|
|
1007
|
-
for (let i = xs.length - 1; i >= 0; i--) {
|
|
1008
|
-
const xx = x(xs[i]);
|
|
1009
|
-
const yy = yPow(seg.lower[i]);
|
|
1010
|
-
ctx.lineTo(xx, yy);
|
|
1011
|
-
}
|
|
1012
|
-
ctx.closePath();
|
|
1013
1017
|
ctx.fillStyle = hexToRgba(col, 0.32);
|
|
1014
|
-
ctx.fill();
|
|
1015
1018
|
ctx.strokeStyle = hexToRgba(col, 0.85);
|
|
1016
1019
|
ctx.lineWidth = 1;
|
|
1017
|
-
|
|
1020
|
+
// Paint each continuous known run separately; never close a polygon
|
|
1021
|
+
// across an outage or treat a missing lower stack component as zero.
|
|
1022
|
+
let first = 0;
|
|
1023
|
+
while (first < xs.length) {
|
|
1024
|
+
while (first < xs.length && (!Number.isFinite(seg.upper.at(first)) || !Number.isFinite(seg.lower.at(first)))) first++;
|
|
1025
|
+
let last = first;
|
|
1026
|
+
while (last < xs.length && Number.isFinite(seg.upper.at(last)) && Number.isFinite(seg.lower.at(last))) last++;
|
|
1027
|
+
if (last - first >= 2) {
|
|
1028
|
+
ctx.beginPath();
|
|
1029
|
+
for (let i = first; i < last; i++) {
|
|
1030
|
+
if (i === first) ctx.moveTo(x(xs.at(i)), yPow(seg.upper.at(i)));
|
|
1031
|
+
else ctx.lineTo(x(xs.at(i)), yPow(seg.upper.at(i)));
|
|
1032
|
+
}
|
|
1033
|
+
for (let i = last - 1; i >= first; i--) ctx.lineTo(x(xs.at(i)), yPow(seg.lower.at(i)));
|
|
1034
|
+
ctx.closePath(); ctx.fill(); ctx.stroke();
|
|
1035
|
+
}
|
|
1036
|
+
first = last + 1;
|
|
1037
|
+
}
|
|
1018
1038
|
ctx.restore();
|
|
1019
1039
|
};
|
|
1020
1040
|
|
|
@@ -1175,15 +1195,21 @@ function draw(){
|
|
|
1175
1195
|
* Zusammenhang: Teil von History/Reports: Charts, Zeiträume, Exporte; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
|
|
1176
1196
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
1177
1197
|
*/
|
|
1198
|
+
function historyNumericValue(value){
|
|
1199
|
+
if (value == null || typeof value === 'boolean' || (typeof value === 'string' && !value.trim())) return NaN;
|
|
1200
|
+
const number = Number(value);
|
|
1201
|
+
return Number.isFinite(number) ? number : NaN;
|
|
1202
|
+
}
|
|
1178
1203
|
function aggregateEnergyKWh(vals, buckets){
|
|
1179
1204
|
// vals: [ [ts, W], ... ], buckets: [{start,end}]
|
|
1180
1205
|
const out = buckets.map(b=>({mid: (b.start+b.end)/2, kwh:0}));
|
|
1181
1206
|
if(!vals || vals.length<2) return out;
|
|
1182
1207
|
let i=0;
|
|
1183
1208
|
for(let j=0;j<vals.length-1;j++){
|
|
1184
|
-
|
|
1185
|
-
let
|
|
1186
|
-
|
|
1209
|
+
const current = vals.at(j), next = vals.at(j + 1);
|
|
1210
|
+
let t0=+current[0], v0=historyNumericValue(current[1]);
|
|
1211
|
+
let t1=+next[0], v1=historyNumericValue(next[1]);
|
|
1212
|
+
if(!(t1>t0) || !Number.isFinite(v0) || !Number.isFinite(v1)) continue;
|
|
1187
1213
|
// walk across buckets
|
|
1188
1214
|
let segStart=t0, segV0=v0;
|
|
1189
1215
|
while(segStart < t1){
|
|
@@ -1237,8 +1263,8 @@ function draw(){
|
|
|
1237
1263
|
function sumEnergyKWh(vals){
|
|
1238
1264
|
if(!Array.isArray(vals) || vals.length < 2) return 0;
|
|
1239
1265
|
const points = vals
|
|
1240
|
-
.map(p => [toTsMs(p[0]),
|
|
1241
|
-
.filter(p => Number.isFinite(p[0])
|
|
1266
|
+
.map(p => [toTsMs(p[0]), historyNumericValue(p[1])])
|
|
1267
|
+
.filter(p => Number.isFinite(p[0]))
|
|
1242
1268
|
.sort((a, b) => a[0] - b[0]);
|
|
1243
1269
|
if(points.length < 2) return 0;
|
|
1244
1270
|
|
|
@@ -1246,7 +1272,7 @@ function draw(){
|
|
|
1246
1272
|
for(let i=0; i<points.length-1; i++){
|
|
1247
1273
|
const t0 = points[i][0], v0 = Math.abs(points[i][1]);
|
|
1248
1274
|
const t1 = points[i+1][0], v1 = Math.abs(points[i+1][1]);
|
|
1249
|
-
if(t1 <= t0) continue;
|
|
1275
|
+
if(t1 <= t0 || !Number.isFinite(v0) || !Number.isFinite(v1)) continue;
|
|
1250
1276
|
|
|
1251
1277
|
const dt_s = (t1 - t0) / 1000;
|
|
1252
1278
|
const avgW = (v0 + v1) / 2;
|
|
@@ -1261,8 +1287,8 @@ function draw(){
|
|
|
1261
1287
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
1262
1288
|
*/
|
|
1263
1289
|
function pickEnergyKwh(counterVal, integratedVal){
|
|
1264
|
-
const counter =
|
|
1265
|
-
const integrated =
|
|
1290
|
+
const counter = historyNumericValue(counterVal);
|
|
1291
|
+
const integrated = historyNumericValue(integratedVal);
|
|
1266
1292
|
const counterOk = Number.isFinite(counter) && counter >= 0;
|
|
1267
1293
|
const integratedOk = Number.isFinite(integrated) && integrated >= 0;
|
|
1268
1294
|
if (!counterOk) return integratedOk ? integrated : 0;
|
|
@@ -1277,14 +1303,14 @@ function draw(){
|
|
|
1277
1303
|
* Zusammenhang: Teil von History/Reports: Charts, Zeiträume, Exporte; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
|
|
1278
1304
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
1279
1305
|
*/
|
|
1280
|
-
function formatMoney2(v){ return Number.isFinite(
|
|
1306
|
+
function formatMoney2(v){ const n = historyNumericValue(v); return Number.isFinite(n) ? (n.toFixed(2) + ' €') : '--'; }
|
|
1281
1307
|
/**
|
|
1282
1308
|
* Code-Teil: formatPrice2
|
|
1283
1309
|
* Zweck: Formatiert Daten für Anzeige oder Logs.
|
|
1284
1310
|
* Zusammenhang: Teil von History/Reports: Charts, Zeiträume, Exporte; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
|
|
1285
1311
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
1286
1312
|
*/
|
|
1287
|
-
function formatPrice2(v){ return Number.isFinite(
|
|
1313
|
+
function formatPrice2(v){ const n = historyNumericValue(v); return Number.isFinite(n) ? (n.toFixed(2) + ' €/kWh') : '--'; }
|
|
1288
1314
|
/**
|
|
1289
1315
|
* Code-Teil: formatKwh2
|
|
1290
1316
|
* Zweck: Formatiert Daten für Anzeige oder Logs.
|
|
@@ -1300,8 +1326,8 @@ function draw(){
|
|
|
1300
1326
|
*/
|
|
1301
1327
|
function normalizeNumericSeries(vals){
|
|
1302
1328
|
const arr = (Array.isArray(vals) ? vals : [])
|
|
1303
|
-
.map(p => [toTsMs(p && p[0]),
|
|
1304
|
-
.filter(p => Number.isFinite(p[0])
|
|
1329
|
+
.map(p => [toTsMs(p && p[0]), historyNumericValue(p && p[1])])
|
|
1330
|
+
.filter(p => Number.isFinite(p[0]))
|
|
1305
1331
|
.sort((a, b) => a[0] - b[0]);
|
|
1306
1332
|
const out = [];
|
|
1307
1333
|
for (const p of arr){
|
|
@@ -1370,22 +1396,22 @@ function draw(){
|
|
|
1370
1396
|
let base = valueAtHold(baseVals, mid);
|
|
1371
1397
|
let netFee = valueAtHold(netFeeVals, mid);
|
|
1372
1398
|
let total = valueAtHold(totalVals, mid);
|
|
1373
|
-
if (!Number.isFinite(total)) {
|
|
1374
|
-
const safeBase =
|
|
1399
|
+
if (!Number.isFinite(total) && Number.isFinite(base)) {
|
|
1400
|
+
const safeBase = base;
|
|
1375
1401
|
const safeNet = Number.isFinite(netFee) ? netFee : 0;
|
|
1376
1402
|
total = safeBase + safeNet;
|
|
1377
1403
|
}
|
|
1378
|
-
if (!Number.isFinite(base)) base =
|
|
1404
|
+
if (!Number.isFinite(base)) base = total - (Number.isFinite(netFee) ? netFee : 0);
|
|
1379
1405
|
if (!Number.isFinite(netFee)) netFee = Math.max(0, total - (Number.isFinite(base) ? base : total));
|
|
1380
1406
|
const importKwh = Math.max(0, Number(importAgg[idx] && importAgg[idx].kwh) || 0);
|
|
1381
|
-
const costEur = importKwh *
|
|
1407
|
+
const costEur = importKwh * total;
|
|
1382
1408
|
return {
|
|
1383
1409
|
start: b.start,
|
|
1384
1410
|
end: b.end,
|
|
1385
1411
|
ts: mid,
|
|
1386
|
-
base
|
|
1412
|
+
base,
|
|
1387
1413
|
netFee: Math.max(0, Number(netFee) || 0),
|
|
1388
|
-
total
|
|
1414
|
+
total,
|
|
1389
1415
|
importKwh,
|
|
1390
1416
|
costEur,
|
|
1391
1417
|
};
|
|
@@ -1414,11 +1440,12 @@ function draw(){
|
|
|
1414
1440
|
const ivDur = iv.end - iv.start;
|
|
1415
1441
|
if (!(overlap > 0) || !(ivDur > 0)) return;
|
|
1416
1442
|
const factor = overlap / ivDur;
|
|
1443
|
+
importKwh += Number(iv.importKwh || 0) * factor;
|
|
1444
|
+
if (!Number.isFinite(historyNumericValue(iv.total))) return;
|
|
1417
1445
|
durAcc += overlap;
|
|
1418
1446
|
baseAcc += Number(iv.base || 0) * overlap;
|
|
1419
1447
|
netAcc += Number(iv.netFee || 0) * overlap;
|
|
1420
1448
|
totalAcc += Number(iv.total || 0) * overlap;
|
|
1421
|
-
importKwh += Number(iv.importKwh || 0) * factor;
|
|
1422
1449
|
costEur += Number(iv.costEur || 0) * factor;
|
|
1423
1450
|
});
|
|
1424
1451
|
const ts = (b.start + b.end) / 2;
|
|
@@ -1426,11 +1453,11 @@ function draw(){
|
|
|
1426
1453
|
start: b.start,
|
|
1427
1454
|
end: b.end,
|
|
1428
1455
|
ts,
|
|
1429
|
-
base: durAcc > 0 ? (baseAcc / durAcc) :
|
|
1430
|
-
netFee: durAcc > 0 ? (netAcc / durAcc) :
|
|
1431
|
-
total: durAcc > 0 ? (totalAcc / durAcc) :
|
|
1456
|
+
base: durAcc > 0 ? (baseAcc / durAcc) : NaN,
|
|
1457
|
+
netFee: durAcc > 0 ? (netAcc / durAcc) : NaN,
|
|
1458
|
+
total: durAcc > 0 ? (totalAcc / durAcc) : NaN,
|
|
1432
1459
|
importKwh: Math.max(0, importKwh),
|
|
1433
|
-
costEur:
|
|
1460
|
+
costEur: durAcc > 0 ? costEur : NaN,
|
|
1434
1461
|
};
|
|
1435
1462
|
});
|
|
1436
1463
|
}
|
|
@@ -1452,20 +1479,22 @@ function draw(){
|
|
|
1452
1479
|
netFeeCost: null,
|
|
1453
1480
|
};
|
|
1454
1481
|
}
|
|
1455
|
-
const prices = src.map(iv =>
|
|
1482
|
+
const prices = src.map(iv => historyNumericValue(iv.total)).filter(Number.isFinite);
|
|
1456
1483
|
const importKwh = src.reduce((sum, iv) => sum + (Number(iv.importKwh) || 0), 0);
|
|
1484
|
+
const pricedImportKwh = src.reduce((sum, iv) => sum + (Number.isFinite(historyNumericValue(iv.total))
|
|
1485
|
+
? (Number(iv.importKwh) || 0) : 0), 0);
|
|
1457
1486
|
const totalCost = src.reduce((sum, iv) => sum + (Number(iv.costEur) || 0), 0);
|
|
1458
1487
|
const netFeeCost = src.reduce((sum, iv) => sum + ((Number(iv.importKwh) || 0) * (Number(iv.netFee) || 0)), 0);
|
|
1459
1488
|
let avgPrice = null;
|
|
1460
|
-
if (
|
|
1489
|
+
if (prices.length && pricedImportKwh > 0.0001) avgPrice = totalCost / pricedImportKwh;
|
|
1461
1490
|
else if (prices.length) avgPrice = prices.reduce((a, b) => a + b, 0) / prices.length;
|
|
1462
1491
|
return {
|
|
1463
1492
|
minPrice: prices.length ? Math.min(...prices) : null,
|
|
1464
1493
|
maxPrice: prices.length ? Math.max(...prices) : null,
|
|
1465
1494
|
avgPrice,
|
|
1466
1495
|
importKwh,
|
|
1467
|
-
totalCost,
|
|
1468
|
-
netFeeCost,
|
|
1496
|
+
totalCost: prices.length ? totalCost : null,
|
|
1497
|
+
netFeeCost: prices.length ? netFeeCost : null,
|
|
1469
1498
|
};
|
|
1470
1499
|
}
|
|
1471
1500
|
/**
|
|
@@ -1512,6 +1541,7 @@ function draw(){
|
|
|
1512
1541
|
if (src.netFeeEnabled) parts.push('variables Netzentgelt aktiv');
|
|
1513
1542
|
if (Array.isArray(intervals) && intervals.length) parts.push('Kosten werden aus historischem Preis × Bezug berechnet');
|
|
1514
1543
|
else parts.push('Preis-Historie füllt sich ab diesem Update und dient später zum Gegenprüfen der Abrechnung');
|
|
1544
|
+
if (Array.isArray(intervals) && intervals.some(iv => !Number.isFinite(historyNumericValue(iv.total)))) parts.push('Preislücken: Kosten nur für Abschnitte mit bekanntem Preis');
|
|
1515
1545
|
return parts.join(' · ');
|
|
1516
1546
|
}
|
|
1517
1547
|
/**
|
|
@@ -1621,17 +1651,17 @@ function draw(){
|
|
|
1621
1651
|
const B = 42;
|
|
1622
1652
|
|
|
1623
1653
|
const leftVals = [];
|
|
1624
|
-
if (isPriceSeriesVisible('total')) leftVals.push(...points.map(p =>
|
|
1625
|
-
if (isPriceSeriesVisible('base')) leftVals.push(...points.map(p =>
|
|
1626
|
-
if (isPriceSeriesVisible('netfee')) leftVals.push(...points.map(p =>
|
|
1654
|
+
if (isPriceSeriesVisible('total')) leftVals.push(...points.map(p => historyNumericValue(p.total)).filter(Number.isFinite));
|
|
1655
|
+
if (isPriceSeriesVisible('base')) leftVals.push(...points.map(p => historyNumericValue(p.base)).filter(Number.isFinite));
|
|
1656
|
+
if (isPriceSeriesVisible('netfee')) leftVals.push(...points.map(p => historyNumericValue(p.netFee)).filter(Number.isFinite));
|
|
1627
1657
|
let leftMin = leftVals.length ? Math.min(...leftVals) : 0;
|
|
1628
1658
|
let leftMax = leftVals.length ? Math.max(...leftVals) : 1;
|
|
1629
1659
|
if (!(leftMax > leftMin)) {
|
|
1630
|
-
leftMin
|
|
1660
|
+
leftMin -= 0.05;
|
|
1631
1661
|
leftMax = leftMin + 0.10;
|
|
1632
1662
|
} else {
|
|
1633
1663
|
const pad = Math.max(0.01, (leftMax - leftMin) * 0.12);
|
|
1634
|
-
leftMin
|
|
1664
|
+
leftMin -= pad;
|
|
1635
1665
|
leftMax += pad;
|
|
1636
1666
|
}
|
|
1637
1667
|
|
|
@@ -1640,6 +1670,7 @@ function draw(){
|
|
|
1640
1670
|
if (isPriceSeriesVisible('cost')) rightVals.push(...points.map(p => Number(p.costEur)).filter(Number.isFinite));
|
|
1641
1671
|
let rightMax = rightVals.length ? Math.max(...rightVals) : 1;
|
|
1642
1672
|
rightMax = Math.max(0.05, rightMax * 1.15);
|
|
1673
|
+
const rightMin = rightVals.length ? Math.min(0, ...rightVals) * 1.15 : 0;
|
|
1643
1674
|
|
|
1644
1675
|
/**
|
|
1645
1676
|
* Code-Teil: Arrow-Funktion `x`
|
|
@@ -1670,7 +1701,7 @@ function draw(){
|
|
|
1670
1701
|
* Zusammenhang: Teil von History/Reports: Charts, Zeiträume, Exporte; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
|
|
1671
1702
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
1672
1703
|
*/
|
|
1673
|
-
const yRight = (val) => T + (H - B - T) * (1 - (
|
|
1704
|
+
const yRight = (val) => T + (H - B - T) * (1 - ((Number(val) - rightMin) / (rightMax - rightMin)));
|
|
1674
1705
|
|
|
1675
1706
|
// grid
|
|
1676
1707
|
priceCtx.save();
|
|
@@ -1700,7 +1731,7 @@ function draw(){
|
|
|
1700
1731
|
for (let i = 0; i < 5; i++) {
|
|
1701
1732
|
const frac = 1 - (i / 4);
|
|
1702
1733
|
const yy = T + i * (H - B - T) / 4 + 4;
|
|
1703
|
-
const val = rightMax * frac;
|
|
1734
|
+
const val = rightMin + (rightMax - rightMin) * frac;
|
|
1704
1735
|
priceCtx.fillText(val.toFixed(2), W - R + 8, yy);
|
|
1705
1736
|
}
|
|
1706
1737
|
priceCtx.textAlign = 'right';
|
|
@@ -1759,8 +1790,8 @@ function draw(){
|
|
|
1759
1790
|
priceCtx.beginPath();
|
|
1760
1791
|
let started = false;
|
|
1761
1792
|
points.forEach((p) => {
|
|
1762
|
-
const val =
|
|
1763
|
-
if (!Number.isFinite(val)) return;
|
|
1793
|
+
const val = historyNumericValue(accessor(p));
|
|
1794
|
+
if (!Number.isFinite(val)) { started = false; return; }
|
|
1764
1795
|
const xx = x(p.ts);
|
|
1765
1796
|
const yy = (key === 'cost') ? yRight(val) : yLeft(val);
|
|
1766
1797
|
if (!started) {
|
|
@@ -1790,7 +1821,7 @@ function draw(){
|
|
|
1790
1821
|
priceCtx.restore();
|
|
1791
1822
|
}
|
|
1792
1823
|
|
|
1793
|
-
pricingChartState = { points, start, end, L, R, T, B, x, yLeft, yRight, leftMin, leftMax, rightMax };
|
|
1824
|
+
pricingChartState = { points, start, end, L, R, T, B, x, yLeft, yRight, leftMin, leftMax, rightMin, rightMax };
|
|
1794
1825
|
}
|
|
1795
1826
|
|
|
1796
1827
|
(function initPricingTooltip(){
|
|
@@ -2134,8 +2165,13 @@ async function load(force = false){
|
|
|
2134
2165
|
* Zusammenhang: Teil von History/Reports: Charts, Zeiträume, Exporte; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
|
|
2135
2166
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
2136
2167
|
*/
|
|
2168
|
+
const exactValues = new Map([
|
|
2169
|
+
['productionKwh', exact.productionKwh], ['storageChargeKwh', exact.storageChargeKwh],
|
|
2170
|
+
['storageDischargeKwh', exact.storageDischargeKwh], ['gridExportKwh', exact.gridExportKwh],
|
|
2171
|
+
['gridImportKwh', exact.gridImportKwh], ['evKwh', exact.evKwh], ['consumptionKwh', exact.consumptionKwh],
|
|
2172
|
+
]);
|
|
2137
2173
|
const exactNum = (key) => {
|
|
2138
|
-
const n =
|
|
2174
|
+
const n = historyNumericValue(exactValues.get(key));
|
|
2139
2175
|
return Number.isFinite(n) && n >= 0 ? n : null;
|
|
2140
2176
|
};
|
|
2141
2177
|
const cards = document.getElementById('cards');
|
|
@@ -2147,6 +2183,9 @@ async function load(force = false){
|
|
|
2147
2183
|
*/
|
|
2148
2184
|
function card(title, val){ const el=document.createElement('div'); el.className='card'; el.innerHTML = `<small>${nwHistoryEscapeHtml(title)}</small><b>${nwHistoryEscapeHtml(val)}</b>`; cards.appendChild(el); }
|
|
2149
2185
|
cards.innerHTML='';
|
|
2186
|
+
const hasGaps = Object.values(s || {}).some(item => Array.isArray(item?.values)
|
|
2187
|
+
&& item.values.some(row => row[0] < res.end && !Number.isFinite(historyNumericValue(row[1]))));
|
|
2188
|
+
if (hasGaps) card('Datenbasis', 'Messlücken – berechnete Summen nur aus bekannten Abschnitten');
|
|
2150
2189
|
const pvKwh = exactNum('productionKwh') ?? pickEnergyKwh(e.productionKwh, sumEnergyKWh(s.pv && s.pv.values));
|
|
2151
2190
|
const chargeKwh = exactNum('storageChargeKwh') ?? pickEnergyKwh(e.storageChargeKwh, sumEnergyKWh(s.chg && s.chg.values));
|
|
2152
2191
|
const dischargeKwh = exactNum('storageDischargeKwh') ?? pickEnergyKwh(e.storageDischargeKwh, sumEnergyKWh(s.dchg && s.dchg.values));
|
|
@@ -2606,25 +2645,26 @@ async function load(force = false){
|
|
|
2606
2645
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
2607
2646
|
*/
|
|
2608
2647
|
function kv2(label, val, unit='kW'){
|
|
2609
|
-
const
|
|
2648
|
+
const value = historyNumericValue(val);
|
|
2649
|
+
const v = Number.isFinite(value) ? value.toFixed(2) : '–';
|
|
2610
2650
|
return `<div style="display:flex;justify-content:space-between;gap:8px"><span>${nwHistoryEscapeHtml(label)}</span><b>${v} ${nwHistoryEscapeHtml(unit)}</b></div>`;
|
|
2611
2651
|
}
|
|
2612
|
-
const pv = collect.pv?.[1]
|
|
2613
|
-
const chg = collect.chg?.[1]
|
|
2614
|
-
const dchg = collect.dchg?.[1]
|
|
2615
|
-
const buy = collect.buy?.[1]
|
|
2616
|
-
const sell = collect.sell?.[1]
|
|
2617
|
-
const load = collect.load?.[1]
|
|
2618
|
-
const evcs = collect.evcs?.[1]
|
|
2652
|
+
const pv = historyNumericValue(collect.pv?.[1]);
|
|
2653
|
+
const chg = historyNumericValue(collect.chg?.[1]);
|
|
2654
|
+
const dchg = historyNumericValue(collect.dchg?.[1]);
|
|
2655
|
+
const buy = historyNumericValue(collect.buy?.[1]);
|
|
2656
|
+
const sell = historyNumericValue(collect.sell?.[1]);
|
|
2657
|
+
const load = historyNumericValue(collect.load?.[1]);
|
|
2658
|
+
const evcs = historyNumericValue(collect.evcs?.[1]);
|
|
2619
2659
|
const soc = collect.soc?.[1] ?? null;
|
|
2620
2660
|
|
|
2621
2661
|
const rows = [];
|
|
2622
2662
|
if (isSeriesVisible('pv')) rows.push(kv2('Erzeugung', pv/1000));
|
|
2623
|
-
if (isSeriesVisible('chg')) rows.push(kv2('Beladung', -
|
|
2624
|
-
if (isSeriesVisible('dchg')) rows.push(kv2('Entladung',
|
|
2663
|
+
if (isSeriesVisible('chg')) rows.push(kv2('Beladung', -Math.abs(chg)/1000));
|
|
2664
|
+
if (isSeriesVisible('dchg')) rows.push(kv2('Entladung', Math.abs(dchg)/1000));
|
|
2625
2665
|
if (isSeriesVisible('buy')) rows.push(kv2('Bezug', buy/1000));
|
|
2626
2666
|
if (isSeriesVisible('sell')) rows.push(kv2('Einspeisung', sell/1000));
|
|
2627
|
-
if (isSeriesVisible('evcs')) rows.push(kv2('E‑Mobilität',
|
|
2667
|
+
if (isSeriesVisible('evcs')) rows.push(kv2('E‑Mobilität', Math.abs(evcs)/1000));
|
|
2628
2668
|
if (isSeriesVisible('load')) rows.push(kv2('Verbrauch', load/1000));
|
|
2629
2669
|
let html = `<div style="margin-bottom:6px;opacity:.9"><b>Leistung</b> · ${hh}</div>` + rows.join('');
|
|
2630
2670
|
|
package/ui/www/index.html
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<link rel="manifest" href="/manifest.webmanifest">
|
|
29
29
|
<link rel="icon" type="image/png" sizes="32x32" href="/assets/icons/nexowatt-32.png">
|
|
30
30
|
<link rel="icon" type="image/png" sizes="192x192" href="/assets/icons/nexowatt-192.png">
|
|
31
|
-
<link rel="apple-touch-icon" sizes="
|
|
31
|
+
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="/assets/icons/nexowatt-180.png?v=083e11ab28ec">
|
|
32
32
|
<!-- Gemeinsamer direkter/Proxy-Bootstrap: Sitzung und CSRF vor der Bedienlogik. -->
|
|
33
33
|
<script src="/static/runtime-base.js"></script>
|
|
34
34
|
<script src="/static/auth.js"></script>
|
|
@@ -41,6 +41,8 @@
|
|
|
41
41
|
<!-- NexoWatt iOS Icons -->
|
|
42
42
|
<script src="/static/nw-i18n.js" defer></script>
|
|
43
43
|
<script defer src="/eos-session-idle.js"></script>
|
|
44
|
+
<link rel="stylesheet" href="/static/eos-updates.css">
|
|
45
|
+
<script src="/static/eos-updates.js" defer></script>
|
|
44
46
|
</head>
|
|
45
47
|
<!-- NexoWatt Detail-Kommentar (DE) -->
|
|
46
48
|
<!-- Hauptseite des Kunden-Dashboards. IDs und data-tab-content-Werte sind Verträge mit www/app.js; nicht umbenennen ohne JS-Anpassung. -->
|
|
@@ -999,6 +1001,7 @@
|
|
|
999
1001
|
<script src="/static/dashboard-lp-status.js"></script>
|
|
1000
1002
|
<script src="/static/power-measurements.js"></script>
|
|
1001
1003
|
<script src="/static/tariff-display.js"></script>
|
|
1004
|
+
<script src="/static/live-display.js"></script>
|
|
1002
1005
|
<script src="/static/app.js"></script>
|
|
1003
1006
|
|
|
1004
1007
|
<!-- Kundeneinstellungen liegen ausschließlich in settings.html. -->
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026 NexoWatt. All rights reserved.
|
|
3
|
+
* Confidential and Proprietary.
|
|
4
|
+
* Use, modification or distribution without express written permission is prohibited.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
|
+
*
|
|
9
|
+
* Quelle: src-ts/runtime-executables/www/live-display.ts
|
|
10
|
+
* Quell-Hash: sha256:d06eaaad6b89814a35b421faebba5bd1f9c61488edc91bcc28a80d004eb48c5c
|
|
11
|
+
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
|
+
*
|
|
13
|
+
* Zweck:
|
|
14
|
+
* Diese JavaScript-Datei ist das ausführbare Build-Artefakt für www/live-display.js.
|
|
15
|
+
* Die fachliche Bearbeitung erfolgt ab 0.7.131 in der TypeScript-Quelle.
|
|
16
|
+
* Ab 0.7.132 sind doppelte Legacy-JS-Bäume wie .nwcore entfernt.
|
|
17
|
+
*
|
|
18
|
+
* Pflege-Regel:
|
|
19
|
+
* 1. Änderung zuerst in src-ts/runtime-executables/ vornehmen.
|
|
20
|
+
* 2. npm run sync:ts-runtime-executables ausführen.
|
|
21
|
+
* 3. npm run test:runtime-executables prüfen.
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* NexoWatt Quellcode-Erklärung (DE)
|
|
25
|
+
* Aufgabe: Validiert ausschließlich sichtbare LIVE-Messwerte und Betriebsstatus.
|
|
26
|
+
* Daten und Wirkung: Liest lokale Snapshot-Werte ohne API-/Schreibwirkung. Fehlend,
|
|
27
|
+
* veraltet und offline bleiben unbekannt; die echte Zahl 0 bleibt eine Messung.
|
|
28
|
+
* Bei Änderungen: Null, konstant bestätigte Werte, Zukunftszeit und Ausfälle prüfen.
|
|
29
|
+
*/
|
|
30
|
+
(() => {
|
|
31
|
+
const record = (value) => !!value && typeof value === 'object' && !Array.isArray(value);
|
|
32
|
+
function entry(snapshot, key) {
|
|
33
|
+
if (!record(snapshot) || !Object.hasOwn(snapshot, key))
|
|
34
|
+
return null;
|
|
35
|
+
const value = Reflect.get(snapshot, key);
|
|
36
|
+
return record(value) ? value : null;
|
|
37
|
+
}
|
|
38
|
+
function number(value) {
|
|
39
|
+
if (typeof value === 'number')
|
|
40
|
+
return Number.isFinite(value) ? value : null;
|
|
41
|
+
if (typeof value !== 'string' || value.length > 64 || !value.trim())
|
|
42
|
+
return null;
|
|
43
|
+
const text = value.trim().replace(',', '.');
|
|
44
|
+
// Begrenzte lineare Dezimalprüfung ohne Regex-Backtracking, Exponent oder Hex.
|
|
45
|
+
let digits = 0, separators = 0;
|
|
46
|
+
for (let index = 0; index < text.length; index++) {
|
|
47
|
+
const char = text.charAt(index);
|
|
48
|
+
if (index === 0 && (char === '+' || char === '-'))
|
|
49
|
+
continue;
|
|
50
|
+
if (char >= '0' && char <= '9') {
|
|
51
|
+
digits++;
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
if (char === '.' && separators === 0) {
|
|
55
|
+
separators++;
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
if (digits === 0)
|
|
61
|
+
return null;
|
|
62
|
+
const parsed = Number(text);
|
|
63
|
+
return Number.isFinite(parsed) ? parsed : null;
|
|
64
|
+
}
|
|
65
|
+
function current(row, now, maxAge, online) {
|
|
66
|
+
const ts = row ? number(row.ts) : null;
|
|
67
|
+
return online && ts !== null && ts > 0 && ts <= now + 5000 && now - ts <= maxAge;
|
|
68
|
+
}
|
|
69
|
+
function read(snapshot, key, now, maxAge, online) {
|
|
70
|
+
const row = entry(snapshot, key);
|
|
71
|
+
return current(row, now, maxAge, online) ? number(row?.value) : null;
|
|
72
|
+
}
|
|
73
|
+
function farm(snapshot, now, online) {
|
|
74
|
+
const row = entry(snapshot, 'storageFarm.overviewJson');
|
|
75
|
+
if (!row)
|
|
76
|
+
return null; // Legacy snapshots have no atomic overview.
|
|
77
|
+
const missing = { charge: null, discharge: null, soc: null };
|
|
78
|
+
if (!current(row, now, 30000, online) || typeof row.value !== 'string' || row.value.length > 16384)
|
|
79
|
+
return missing;
|
|
80
|
+
try {
|
|
81
|
+
const parsed = JSON.parse(row.value);
|
|
82
|
+
if (!record(parsed) || parsed.v !== 1 || !record(parsed.members) || !record(parsed.battery) || !record(parsed.soc))
|
|
83
|
+
return missing;
|
|
84
|
+
const updatedAt = number(parsed.updatedAt), total = number(parsed.members.total);
|
|
85
|
+
if (updatedAt === null || updatedAt <= 0 || updatedAt > now + 5000 || now - updatedAt > 30000 || total === null || !Number.isInteger(total) || total <= 0 || total > 128)
|
|
86
|
+
return missing;
|
|
87
|
+
const battery = parsed.battery, soc = parsed.soc;
|
|
88
|
+
const complete = battery.complete === true && battery.valid === total && battery.total === total;
|
|
89
|
+
const charge = number(battery.chargeW), discharge = number(battery.dischargeW), mean = number(soc.meanPct);
|
|
90
|
+
const socComplete = soc.complete === true && soc.valid === total && soc.total === total;
|
|
91
|
+
return { charge: complete && charge !== null && charge >= 0 ? charge : null,
|
|
92
|
+
discharge: complete && discharge !== null && discharge >= 0 ? discharge : null,
|
|
93
|
+
soc: socComplete && mean !== null && mean >= 0 && mean <= 100 ? mean : null };
|
|
94
|
+
}
|
|
95
|
+
catch {
|
|
96
|
+
return missing;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function status(snapshot, online, now) {
|
|
100
|
+
if (!online)
|
|
101
|
+
return { ems: 'Verbindung unterbrochen', grid: 'Messstatus unbekannt', summary: 'Verbindung unterbrochen' };
|
|
102
|
+
const alive = entry(snapshot, 'ems.core.schedulerAlive');
|
|
103
|
+
const heartbeat = read(snapshot, 'ems.core.schedulerHeartbeatAt', now, 30000, true);
|
|
104
|
+
const running = alive?.value === true && heartbeat !== null && heartbeat > 0 && heartbeat <= now + 5000 && now - heartbeat <= 30000;
|
|
105
|
+
const stopped = current(alive, now, 30000, true) && alive?.value === false;
|
|
106
|
+
const nvp = entry(snapshot, 'ems.gridMeasurementFresh');
|
|
107
|
+
const gridKnown = current(nvp, now, 30000, true) && typeof nvp?.value === 'boolean';
|
|
108
|
+
const gridFresh = gridKnown && nvp?.value === true;
|
|
109
|
+
return { ems: running ? 'Aktiv' : stopped ? 'Gestoppt' : 'Status unbekannt',
|
|
110
|
+
grid: gridFresh ? 'Messung aktuell' : gridKnown ? 'Messung fehlt / veraltet' : 'Messstatus unbekannt',
|
|
111
|
+
summary: running && gridFresh ? 'EMS aktiv · NVP-Messung aktuell' : stopped ? 'EMS gestoppt' : 'Betriebsstatus prüfen' };
|
|
112
|
+
}
|
|
113
|
+
const host = window;
|
|
114
|
+
host.NexoWattLiveDisplay = Object.freeze({ read, farm, status });
|
|
115
|
+
})();
|
package/ui/www/logic.html
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<link rel="manifest" href="/manifest.webmanifest">
|
|
27
27
|
<link rel="icon" type="image/png" sizes="32x32" href="/assets/icons/nexowatt-32.png">
|
|
28
28
|
<link rel="icon" type="image/png" sizes="192x192" href="/assets/icons/nexowatt-192.png">
|
|
29
|
-
<link rel="apple-touch-icon" sizes="
|
|
29
|
+
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="/assets/icons/nexowatt-180.png?v=083e11ab28ec">
|
|
30
30
|
<!-- Gemeinsamer direkter/Proxy-Bootstrap: Sitzung und CSRF vor der Bedienlogik. -->
|
|
31
31
|
<script src="/static/runtime-base.js"></script>
|
|
32
32
|
<script src="/static/auth.js"></script>
|
package/ui/www/login.css
CHANGED
|
@@ -29,6 +29,7 @@ button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #22b8
|
|
|
29
29
|
.nw-login-orbit-dot--one{top:3px;left:87px}.nw-login-orbit-dot--two{top:104px;left:21px}.nw-login-orbit-dot--three{top:104px;left:151px}
|
|
30
30
|
.nw-login-panel{display:grid;place-items:center;padding:56px 32px;background:#061526}
|
|
31
31
|
.nw-login-card{width:min(100%,390px)}
|
|
32
|
+
.nw-login-app-icon{display:block;width:64px;height:64px;max-width:100%;object-fit:contain;margin:0 0 18px}
|
|
32
33
|
.nw-login-card h2{margin:0 0 12px;font-size:32px;line-height:1.2;font-weight:590;letter-spacing:-1.1px}
|
|
33
34
|
.nw-login-description{margin:0 0 24px;color:var(--login-muted);font-size:14px;line-height:1.7}
|
|
34
35
|
.nw-login-status{margin:0 0 22px;border-left:3px solid #00e676;padding:10px 12px;background:#0d2937;border-radius:0 6px 6px 0;color:#c0d8e5;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
|
package/ui/www/login.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<link rel="manifest" href="/manifest.webmanifest">
|
|
13
13
|
<link rel="icon" type="image/png" sizes="32x32" href="/assets/icons/nexowatt-32.png">
|
|
14
14
|
<link rel="icon" type="image/png" sizes="192x192" href="/assets/icons/nexowatt-192.png">
|
|
15
|
-
<link rel="apple-touch-icon" sizes="
|
|
15
|
+
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="/assets/icons/nexowatt-180.png?v=083e11ab28ec">
|
|
16
16
|
|
|
17
17
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
18
18
|
<meta name="referrer" content="no-referrer">
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
<section class="nw-login-panel" id="anmeldung" aria-labelledby="loginTitle">
|
|
45
45
|
<div class="nw-login-card">
|
|
46
|
+
<img class="nw-login-app-icon" src="/assets/icons/nexowatt-192.png" alt="NexoWatt EOS" width="64" height="64" decoding="async" loading="eager">
|
|
46
47
|
<h2 id="loginTitle">Willkommen zurück.</h2>
|
|
47
48
|
<p class="nw-login-description" id="loginDescription">Dein Anmeldezugang wird geprüft.</p>
|
|
48
49
|
<div class="nw-login-status" id="loginStatus" role="status" aria-live="polite">Verbindung wird hergestellt …</div>
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"purpose": "any"
|
|
51
51
|
}
|
|
52
52
|
],
|
|
53
|
-
"version": "9.0.
|
|
54
|
-
"appVersion": "9.0.
|
|
53
|
+
"version": "9.0.21",
|
|
54
|
+
"appVersion": "9.0.21",
|
|
55
55
|
"id": "/",
|
|
56
56
|
"lang": "de",
|
|
57
|
-
"description": "NexoWatt EOS
|
|
57
|
+
"description": "NexoWatt EOS \u2013 Energie und SmartHome auf deinem Ger\u00e4t."
|
|
58
58
|
}
|