Jérôme Benoit [Mon, 5 Jun 2023 16:51:24 +0000 (18:51 +0200)]
fix: validate response payload related to reservation OCPP commands
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 5 Jun 2023 16:29:25 +0000 (18:29 +0200)]
refactor: cleanup reservation handling code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 5 Jun 2023 15:44:43 +0000 (17:44 +0200)]
refactor: trivial cleanups
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 5 Jun 2023 15:41:23 +0000 (17:41 +0200)]
Merge pull request #574 from JulianHBuecher/reservation-feature
Merge as is with trivial errors to be fixed in a subsequent commit.
Jérôme Benoit [Mon, 5 Jun 2023 15:36:45 +0000 (17:36 +0200)]
Merge branch 'main' into reservation-feature
Julian Buecher [Mon, 5 Jun 2023 14:19:22 +0000 (16:19 +0200)]
refactor: applied changes for pull request
Jérôme Benoit [Sun, 4 Jun 2023 18:42:30 +0000 (20:42 +0200)]
fix: avoid concurrent ATG startup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 4 Jun 2023 14:28:57 +0000 (16:28 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 3 Jun 2023 12:11:53 +0000 (14:11 +0200)]
refactor: cleanup worker set code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 3 Jun 2023 10:57:47 +0000 (12:57 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 2 Jun 2023 20:04:34 +0000 (22:04 +0200)]
feat: expose pool/set information
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 2 Jun 2023 15:51:06 +0000 (17:51 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 2 Jun 2023 11:46:19 +0000 (13:46 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 2 Jun 2023 07:45:05 +0000 (09:45 +0200)]
feat: add event emitter to worker pool/set code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 1 Jun 2023 19:06:51 +0000 (21:06 +0200)]
feat: restart worker on uncaught exception
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 1 Jun 2023 02:43:07 +0000 (04:43 +0200)]
refactor: encapsulate worker in an object
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 1 Jun 2023 02:07:56 +0000 (04:07 +0200)]
fix: ensure all charging stations are started as an async resource
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 1 Jun 2023 02:01:38 +0000 (04:01 +0200)]
perf: run charging station as async resource in the worker set mode
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 31 May 2023 21:52:33 +0000 (23:52 +0200)]
feat: add configuration tunable for logging enablement
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 31 May 2023 20:29:56 +0000 (22:29 +0200)]
refactor: throw error at simalator start/stop outside the main thread
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 31 May 2023 20:19:08 +0000 (22:19 +0200)]
fix: guard against concurrent simulator start/stop
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 31 May 2023 19:58:24 +0000 (21:58 +0200)]
chore: version 1.2.15
Jérôme Benoit [Wed, 31 May 2023 19:53:59 +0000 (21:53 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 30 May 2023 20:08:29 +0000 (22:08 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 30 May 2023 19:30:02 +0000 (21:30 +0200)]
fix: fix commonjs import issue with node.js 16.x.x
Close #582
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 30 May 2023 10:57:02 +0000 (12:57 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 17:48:20 +0000 (19:48 +0200)]
fix: allow to set some x509 certificates in templates
It's relevant for public root CA
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 15:13:26 +0000 (17:13 +0200)]
refactor: use mnemonist queue implementation instead of homebrew one
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 13:50:46 +0000 (15:50 +0200)]
test(simulator): use standard file namespace for tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 13:33:14 +0000 (15:33 +0200)]
perf: use O(1) queue implementation in async locking code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 13:08:56 +0000 (15:08 +0200)]
refactor(simulator): factor out statistic helpers
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 12:44:23 +0000 (14:44 +0200)]
refactor: cleanup async lock acquire()
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 12:34:53 +0000 (14:34 +0200)]
refactor: cleanup UI server variable namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 10:58:57 +0000 (12:58 +0200)]
fix: ensure internal counters are zeroed at simulator stop
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 08:47:39 +0000 (10:47 +0200)]
build(simulator): ensure ui code is not included at cf push
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 22:42:28 +0000 (00:42 +0200)]
build(simulator): silence rollup warning
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 21:01:28 +0000 (23:01 +0200)]
refactor(simulator): convert more class static helpers to arrow function
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 20:39:52 +0000 (22:39 +0200)]
refactor(simulator): export directly logger helper
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 20:33:20 +0000 (22:33 +0200)]
refactor(simulator): convert some class method helpers to arrow function
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 19:10:12 +0000 (21:10 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 16:01:22 +0000 (18:01 +0200)]
refactor: cleanup UI service method namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 14:04:49 +0000 (16:04 +0200)]
build: update excluded assets files list
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 13:41:28 +0000 (15:41 +0200)]
build: update pnpm lockfile version
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 12:22:45 +0000 (14:22 +0200)]
refactor(simulator): use spread syntax to handle literal arguments
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 11:49:17 +0000 (13:49 +0200)]
build(simulator): cleanup bundler configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 11:26:12 +0000 (13:26 +0200)]
build(simulator): always minify bundle
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 10:56:45 +0000 (12:56 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 10:05:32 +0000 (12:05 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 20:44:22 +0000 (22:44 +0200)]
refactor: only copy assets used at runtime in the bundle
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 19:35:06 +0000 (21:35 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 18:43:44 +0000 (20:43 +0200)]
refactor: cleanup imports
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 18:18:08 +0000 (20:18 +0200)]
refactor: cleanup configuration handling methods namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 13:57:56 +0000 (15:57 +0200)]
fix: do not send UI protocol response if no handler is found
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 13:39:02 +0000 (15:39 +0200)]
fix: ensure template has priority over CS configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 12:37:24 +0000 (14:37 +0200)]
fix: clone ATG connector status before altering it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 12:30:16 +0000 (14:30 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 12:22:59 +0000 (14:22 +0200)]
fix: fix CS configuration hash calculation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 22:55:58 +0000 (00:55 +0200)]
fix: fix default error params setting
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 22:44:54 +0000 (00:44 +0200)]
refactor: factor out default error handling params
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 22:27:06 +0000 (00:27 +0200)]
refactor: factor out default OCPP request params value
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 22:06:58 +0000 (00:06 +0200)]
refactor: convert WorkerUtils class static methods to constified arrow
function
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 21:47:31 +0000 (23:47 +0200)]
refactor: stop !== shutdown semantic
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 19:40:41 +0000 (21:40 +0200)]
chore: version 1.2.14
Jérôme Benoit [Fri, 26 May 2023 19:30:23 +0000 (21:30 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 13:07:53 +0000 (15:07 +0200)]
fix: fix undefined payload check in UI server code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 12:55:36 +0000 (14:55 +0200)]
fix: only send UI server response when needed
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 12:35:37 +0000 (14:35 +0200)]
refactor: format error message properly
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 11:20:55 +0000 (13:20 +0200)]
fix: ensure simulator stop wait for started CS only stop
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 10:58:21 +0000 (12:58 +0200)]
build: silence rollup warning
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 10:55:09 +0000 (12:55 +0200)]
fix: wait for charging stations to be stopped at simulator stop
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 25 May 2023 22:02:19 +0000 (00:02 +0200)]
feat: add graceful shutdown
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 25 May 2023 19:42:52 +0000 (21:42 +0200)]
refactor(simulator): factor out data transfer response
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 25 May 2023 19:26:36 +0000 (21:26 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 25 May 2023 15:59:10 +0000 (17:59 +0200)]
Merge branch 'main' into reservation-feature
Jérôme Benoit [Thu, 25 May 2023 15:56:59 +0000 (17:56 +0200)]
fix: fix chalk invocation in configuration file handling code
Extracted from PR #574
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Julian Buecher [Thu, 25 May 2023 08:21:16 +0000 (10:21 +0200)]
Update src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts
Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Julian Buecher [Thu, 25 May 2023 08:19:55 +0000 (10:19 +0200)]
Update src/types/ocpp/Responses.ts
Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Julian Buecher [Thu, 25 May 2023 08:19:35 +0000 (10:19 +0200)]
Update src/types/ocpp/Responses.ts
Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Julian Buecher [Thu, 25 May 2023 08:19:09 +0000 (10:19 +0200)]
Update src/charging-station/ChargingStation.ts
Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Julian Buecher [Thu, 25 May 2023 08:15:21 +0000 (10:15 +0200)]
Update src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts
Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Julian Buecher [Thu, 25 May 2023 08:15:05 +0000 (10:15 +0200)]
Update src/charging-station/ChargingStation.ts
Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Julian Buecher [Thu, 25 May 2023 08:14:52 +0000 (10:14 +0200)]
Update src/charging-station/ChargingStation.ts
Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Julian Buecher [Thu, 25 May 2023 08:13:02 +0000 (10:13 +0200)]
Update src/assets/station-templates/evlink.station-template.json
Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Julian Buecher [Wed, 24 May 2023 21:32:17 +0000 (23:32 +0200)]
refactor: rewriting functionalities and added additional helper functions
Jérôme Benoit [Wed, 24 May 2023 21:23:52 +0000 (23:23 +0200)]
fix: does not override ATG configuration with default one
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 24 May 2023 21:21:27 +0000 (23:21 +0200)]
refactor(simulator): simplify ATG default configuration usage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Julian Buecher [Wed, 24 May 2023 21:12:18 +0000 (23:12 +0200)]
build(simulator): features for reserve-now and cancel-reservation support added
Jérôme Benoit [Wed, 24 May 2023 21:08:59 +0000 (23:08 +0200)]
refactor(simulator): add more default values to ATG
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Julian Buecher [Fri, 5 May 2023 15:48:02 +0000 (17:48 +0200)]
fix: Handling of remote start transactions in reserved state
Jérôme Benoit [Wed, 24 May 2023 20:56:29 +0000 (22:56 +0200)]
refactor(simulator): factor out default ATG configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Julian Buecher [Wed, 24 May 2023 20:51:52 +0000 (22:51 +0200)]
build(simulator): constants, requests and responses for reservation scenario added
Jérôme Benoit [Wed, 24 May 2023 18:58:59 +0000 (20:58 +0200)]
refactor(simulator): rename checkTemplateFile() -> checkTemplate()
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 24 May 2023 18:50:03 +0000 (20:50 +0200)]
refactor(simulator): warn at startup for missing id tags file
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 24 May 2023 14:11:47 +0000 (16:11 +0200)]
fix: revert incorrect id tags cache key building
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 24 May 2023 13:25:23 +0000 (15:25 +0200)]
refactor(simulator): strong type worker data for evses
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 23 May 2023 08:35:49 +0000 (10:35 +0200)]
refactor: improve error log messages
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 23 May 2023 08:34:08 +0000 (10:34 +0200)]
refactor: improve error logging
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 23 May 2023 07:25:03 +0000 (09:25 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 22 May 2023 22:08:46 +0000 (00:08 +0200)]
fix: ensure the runtime ATG configuration is saved
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 22 May 2023 18:38:27 +0000 (20:38 +0200)]
fix: properly fallback to template OCPP configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>