Jérôme Benoit [Mon, 20 Nov 2023 20:51:45 +0000 (21:51 +0100)]
refactor: refine type casting in OCPP stack
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 20 Nov 2023 20:46:30 +0000 (21:46 +0100)]
refactor: cleanup types signature namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 20 Nov 2023 20:23:41 +0000 (21:23 +0100)]
refactor: improve OCPP error defaults and usage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 20 Nov 2023 20:00:14 +0000 (21:00 +0100)]
perf(ui): only build WS payload if connection is opened
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 20 Nov 2023 16:38:35 +0000 (17:38 +0100)]
refactor: more stricter type checking in condition
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 20 Nov 2023 16:05:31 +0000 (17:05 +0100)]
refactor: stricter type checking in conditions
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 20 Nov 2023 14:50:12 +0000 (15:50 +0100)]
fix: do not log twice OCPP request sending error
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 20 Nov 2023 10:41:40 +0000 (11:41 +0100)]
refactor: remove unneeded encapsulation in arrow function
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 20 Nov 2023 10:26:55 +0000 (11:26 +0100)]
chore: version 1.2.25
Jérôme Benoit [Mon, 20 Nov 2023 10:19:58 +0000 (11:19 +0100)]
refactor: strong type data sent to worker
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 19 Nov 2023 16:11:25 +0000 (17:11 +0100)]
refactor: factor out WS error handling code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 19 Nov 2023 15:51:11 +0000 (16:51 +0100)]
refactor: cleanup control flow in OCPP stack
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 19 Nov 2023 15:45:41 +0000 (16:45 +0100)]
fix: ensure error at WS message sending is handled
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 19 Nov 2023 14:22:01 +0000 (15:22 +0100)]
fix: fix OCPP message sending promise leak
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 19 Nov 2023 11:52:20 +0000 (12:52 +0100)]
refactor: rename constant to a more sensible name
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 19 Nov 2023 11:32:27 +0000 (12:32 +0100)]
fix: remove incorrect promise race usage at stopping charging stations
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 19 Nov 2023 10:14:34 +0000 (11:14 +0100)]
refactor: remove unneeded nullish coalescing
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 19 Nov 2023 10:10:50 +0000 (11:10 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 19 Nov 2023 09:51:04 +0000 (10:51 +0100)]
perf: cache request promise after sending it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 18 Nov 2023 23:30:31 +0000 (00:30 +0100)]
fix: improve websocket usage error handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 18 Nov 2023 22:06:52 +0000 (23:06 +0100)]
fix: ensure OCPP request timeouting cancel it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 18 Nov 2023 10:20:32 +0000 (11:20 +0100)]
refactor: sensible default at meterValues custom value handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 18 Nov 2023 09:20:23 +0000 (10:20 +0100)]
build(deps-dev): apply udpates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 17 Nov 2023 17:12:45 +0000 (18:12 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 16 Nov 2023 19:43:32 +0000 (20:43 +0100)]
fix: ensure built sample meterValues value can't be overriden
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 16 Nov 2023 19:21:51 +0000 (20:21 +0100)]
fix: ensure per phase meterValues can't fail with custom value
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 16 Nov 2023 17:30:53 +0000 (18:30 +0100)]
build: refine .cfignore
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 16 Nov 2023 17:08:58 +0000 (18:08 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 16 Nov 2023 16:50:24 +0000 (17:50 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 16 Nov 2023 15:37:31 +0000 (16:37 +0100)]
docs: remove wrong comment
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 16 Nov 2023 11:35:04 +0000 (12:35 +0100)]
feat: ensure measurand min value are taken into account
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 15 Nov 2023 23:12:45 +0000 (00:12 +0100)]
fix: fallback to minimum measurand value at meterValues generation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 15 Nov 2023 20:12:53 +0000 (21:12 +0100)]
refactor: factor out JSON schema validation function getter
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Nov 2023 17:16:05 +0000 (18:16 +0100)]
build(ci): fix linter errors
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Nov 2023 16:24:13 +0000 (17:24 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 13 Nov 2023 12:09:01 +0000 (13:09 +0100)]
refactor: move charging station events enum to its own file
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 13 Nov 2023 10:15:21 +0000 (11:15 +0100)]
refactor: factor out voltage phase line to line computation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 13 Nov 2023 09:30:13 +0000 (10:30 +0100)]
chore: version 1.2.24
Jérôme Benoit [Mon, 13 Nov 2023 09:29:12 +0000 (10:29 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 13 Nov 2023 09:15:02 +0000 (10:15 +0100)]
fix: ensure custom meterValues values are taken
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 13 Nov 2023 09:05:20 +0000 (10:05 +0100)]
refactor: remove unneeded intermediate variable
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 13 Nov 2023 08:20:31 +0000 (09:20 +0100)]
fix: do not test for connector status in ATG
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 12 Nov 2023 22:47:35 +0000 (23:47 +0100)]
fix: avoid NaN at meterValues generation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 12 Nov 2023 21:38:28 +0000 (22:38 +0100)]
refactor(simulator): remove unneeded intermediate variable
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 12 Nov 2023 21:25:09 +0000 (22:25 +0100)]
build: bump volta pnpm version
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 12 Nov 2023 21:12:07 +0000 (22:12 +0100)]
fix: ensure voltage is defined in stationInfo
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 12 Nov 2023 13:29:00 +0000 (14:29 +0100)]
build(simulator): enforce minimum node version 18.18.x
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 12 Nov 2023 09:57:53 +0000 (10:57 +0100)]
refactor: make ATG wait busy loop test first
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 11 Nov 2023 20:40:51 +0000 (21:40 +0100)]
build(ci): only audit for production dependencies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 11 Nov 2023 20:28:29 +0000 (21:28 +0100)]
build(ci): add dependencies audit step
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 11 Nov 2023 19:05:06 +0000 (20:05 +0100)]
fix: make ATG wait for CS/connector availability
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 11 Nov 2023 16:53:18 +0000 (17:53 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 11 Nov 2023 10:02:54 +0000 (11:02 +0100)]
fix: strict condition on boolean
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 11 Nov 2023 09:48:20 +0000 (10:48 +0100)]
fix: refine CS registration error message
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Nov 2023 22:33:29 +0000 (23:33 +0100)]
fix: fix connector 0 handling in ConnectorPhaseRotation OCPP
configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Nov 2023 22:11:25 +0000 (23:11 +0100)]
fix: fix stationInfo default values
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Nov 2023 20:35:29 +0000 (21:35 +0100)]
fix: fix types in stationInfo properties refactoring
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Nov 2023 20:17:40 +0000 (21:17 +0100)]
refactor: remove getter on stationInfo properties
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Nov 2023 18:23:47 +0000 (19:23 +0100)]
feat: add template tunable to stop transaction at CS stop
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Nov 2023 14:50:30 +0000 (15:50 +0100)]
fix(simulator): properly handle template change at ATG initialization
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Nov 2023 13:00:40 +0000 (14:00 +0100)]
feat: reenable configuration files change watchers
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Nov 2023 12:39:41 +0000 (13:39 +0100)]
feat: add events for charging station status change
closes #458
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Nov 2023 11:39:37 +0000 (12:39 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Nov 2023 11:36:58 +0000 (12:36 +0100)]
fix: ensure running transactions are stopped at CS stop
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 9 Nov 2023 20:11:03 +0000 (21:11 +0100)]
fix: ensure connectors status are saved is configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 9 Nov 2023 20:00:15 +0000 (21:00 +0100)]
fix: ensure charging stations are stopped if UI server is disabled at
shutdown
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 9 Nov 2023 16:58:39 +0000 (16:58 +0000)]
Merge pull request #836 from SAP/dependabot/npm_and_yarn/tsx-4.0.0
build(deps-dev): Bump tsx from 3.14.0 to 4.0.0
dependabot[bot] [Thu, 9 Nov 2023 16:53:16 +0000 (16:53 +0000)]
build(deps-dev): Bump tsx from 3.14.0 to 4.0.0
Bumps [tsx](https://github.com/privatenumber/tsx) from 3.14.0 to 4.0.0.
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/develop/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v3.14.0...v4.0.0)
---
updated-dependencies:
- dependency-name: tsx
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Jérôme Benoit [Wed, 8 Nov 2023 18:52:05 +0000 (19:52 +0100)]
fix(simulator): format properly duration close to zero
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 8 Nov 2023 17:39:42 +0000 (18:39 +0100)]
fix(simulator): handle close to zero duration formatting
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 8 Nov 2023 15:18:19 +0000 (16:18 +0100)]
fix: disable dynamic reload until spurious file change is identified
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 8 Nov 2023 14:35:40 +0000 (15:35 +0100)]
fix: disable simulator restart at spurious configuration file change
detection
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 8 Nov 2023 09:04:18 +0000 (10:04 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Nov 2023 22:24:14 +0000 (23:24 +0100)]
fix: fix subsequent configuration change reload without callback
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Nov 2023 22:20:34 +0000 (23:20 +0100)]
fix: avoid concurrent configuration change callback execution
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Nov 2023 21:57:25 +0000 (22:57 +0100)]
fix(simulator): ensure configuration file reload will restart the
simulator
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Nov 2023 20:11:57 +0000 (21:11 +0100)]
fix(simulator): remove unneeded main thread check at simulator start
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Nov 2023 20:08:02 +0000 (21:08 +0100)]
fix(simulator): remove unneeded main thread check at simulator stop
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Nov 2023 19:17:37 +0000 (20:17 +0100)]
refactor(simulator): use generic type in OCPP payload validation code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Nov 2023 19:10:37 +0000 (20:10 +0100)]
refactor(simulator): cleanup JSON type usage in OCPP payload validation
code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Nov 2023 18:48:46 +0000 (19:48 +0100)]
perf(simulator): compile payload validation JSON schema only once
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Nov 2023 17:36:24 +0000 (18:36 +0100)]
refactor: change log level to debug at ATG stop
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Tue, 7 Nov 2023 16:33:51 +0000 (17:33 +0100)]
fix: ensure stop transaction is sent at ATG stop
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Nov 2023 11:55:53 +0000 (12:55 +0100)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 6 Nov 2023 12:10:28 +0000 (13:10 +0100)]
fix(ui): util module is not available in browser
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 6 Nov 2023 10:52:39 +0000 (11:52 +0100)]
fix(ui): fix startup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 5 Nov 2023 22:14:55 +0000 (23:14 +0100)]
build(simulator): add script to build CF source with source maps
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 5 Nov 2023 22:11:15 +0000 (23:11 +0100)]
build(simulator): production build does not include source maps
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 5 Nov 2023 21:59:15 +0000 (22:59 +0100)]
build(simulator): use node.js builtin source maps support
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 5 Nov 2023 11:46:10 +0000 (12:46 +0100)]
build(deps-dev): remove unused deps
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 5 Nov 2023 10:55:00 +0000 (11:55 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 4 Nov 2023 10:14:55 +0000 (11:14 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 3 Nov 2023 09:08:38 +0000 (10:08 +0100)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Nov 2023 16:28:14 +0000 (16:28 +0000)]
Merge pull request #834 from SAP/dependabot/github_actions/github/combine-prs-4.1.0
build(deps): Bump github/combine-prs from 4.0.0 to 4.1.0
dependabot[bot] [Thu, 2 Nov 2023 16:10:29 +0000 (16:10 +0000)]
build(deps): Bump github/combine-prs from 4.0.0 to 4.1.0
Bumps [github/combine-prs](https://github.com/github/combine-prs) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/github/combine-prs/releases)
- [Commits](https://github.com/github/combine-prs/compare/v4.0.0...v4.1.0)
---
updated-dependencies:
- dependency-name: github/combine-prs
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Jérôme Benoit [Wed, 1 Nov 2023 20:52:55 +0000 (21:52 +0100)]
build: bump volta pnpm version
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 1 Nov 2023 16:36:16 +0000 (17:36 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 1 Nov 2023 09:58:06 +0000 (10:58 +0100)]
test: add missing file
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 1 Nov 2023 09:56:59 +0000 (10:56 +0100)]
test: add ElectricUtils.ts tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 1 Nov 2023 08:15:16 +0000 (09:15 +0100)]
Merge pull request #827 from SAP/combined-prs-branch
Combined PRs