Jérôme Benoit [Sun, 6 Mar 2022 09:29:52 +0000 (10:29 +0100)]
Remove useless eslint-disable
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 21:44:24 +0000 (22:44 +0100)]
Fix remaining linter errors properly
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 21:14:22 +0000 (22:14 +0100)]
Fix eslint configuration for mixed source with .js and .ts
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 19:58:53 +0000 (20:58 +0100)]
src/worker/WorkerConstants.ts: add
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 19:57:53 +0000 (20:57 +0100)]
Factor out worker related constants
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 19:31:45 +0000 (20:31 +0100)]
Refine .cfignore
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 17:55:31 +0000 (18:55 +0100)]
Make the linter use a cache
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 17:49:27 +0000 (18:49 +0100)]
Refine ignore configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 17:32:49 +0000 (18:32 +0100)]
README.md: refine documentation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 17:26:37 +0000 (18:26 +0100)]
Add isEmptyString() helper and use it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 12:44:42 +0000 (13:44 +0100)]
README.md: specify nodejs 16.x everywhere
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 12:38:59 +0000 (13:38 +0100)]
Version 1.1.51
Jérôme Benoit [Sat, 5 Mar 2022 12:37:22 +0000 (13:37 +0100)]
Setup max-len to 100
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 12:31:59 +0000 (13:31 +0100)]
Add pre-commit hook to format files properly
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 12:09:31 +0000 (13:09 +0100)]
Configuration files fixlets
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 5 Mar 2022 11:01:31 +0000 (12:01 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Mar 2022 22:39:37 +0000 (23:39 +0100)]
Fix eslint and prettier configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Mar 2022 21:35:29 +0000 (22:35 +0100)]
Add prettier configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Mar 2022 21:34:42 +0000 (22:34 +0100)]
Apply prettier formating
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Mar 2022 20:54:04 +0000 (21:54 +0100)]
Remove string literal from log messages
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Mar 2022 19:38:57 +0000 (20:38 +0100)]
Fix build failure
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Mar 2022 19:37:33 +0000 (20:37 +0100)]
Fix incoming message error handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Mar 2022 16:27:53 +0000 (17:27 +0100)]
Version 1.1.50
Jérôme Benoit [Fri, 4 Mar 2022 16:09:32 +0000 (17:09 +0100)]
Fix workerSet startup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Mar 2022 14:37:17 +0000 (15:37 +0100)]
Fix workerSet linear ramp up at startup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Mar 2022 13:20:11 +0000 (14:20 +0100)]
Enhance default value for worker options handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Mar 2022 12:19:58 +0000 (13:19 +0100)]
Align constants namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Mar 2022 12:11:43 +0000 (13:11 +0100)]
Version 1.1.49
Jérôme Benoit [Fri, 4 Mar 2022 12:09:28 +0000 (13:09 +0100)]
Cleanup worker internal API
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Mar 2022 23:01:34 +0000 (00:01 +0100)]
WorkerSet: consolidate the worker start delay code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Mar 2022 17:21:42 +0000 (18:21 +0100)]
Refine start options types
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 3 Mar 2022 16:53:19 +0000 (17:53 +0100)]
Add tunable for charging station start delay for linear ramp up
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 26 Feb 2022 14:11:32 +0000 (15:11 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 24 Feb 2022 16:03:35 +0000 (17:03 +0100)]
Version 1.1.48
Jérôme Benoit [Thu, 24 Feb 2022 13:34:01 +0000 (14:34 +0100)]
Do not throw an error at OCPP message sending to avoid crashing the
worker
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 24 Feb 2022 10:11:46 +0000 (11:11 +0100)]
Factor out a type definition
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 23 Feb 2022 16:28:39 +0000 (17:28 +0100)]
Track OCPP commande use at sending error message
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 22 Feb 2022 19:14:25 +0000 (20:14 +0100)]
Fix a module name string
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 22 Feb 2022 19:01:26 +0000 (20:01 +0100)]
Cleanup OCPP service module name usage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 22 Feb 2022 05:52:09 +0000 (06:52 +0100)]
Ensure 1:1 mapping between charging station and ATG instances
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 21 Feb 2022 23:07:33 +0000 (00:07 +0100)]
Refactor OCPP requests sending helpers
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 21 Feb 2022 20:31:35 +0000 (21:31 +0100)]
Refine a bit OCPP services instantiation error message
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 21 Feb 2022 20:12:00 +0000 (21:12 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 21 Feb 2022 19:52:29 +0000 (20:52 +0100)]
Ensure 1:1 mapping between charging station instance and its OCPP services
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 18 Feb 2022 10:31:08 +0000 (11:31 +0100)]
Add return type to getLogger
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 17 Feb 2022 16:40:03 +0000 (17:40 +0100)]
Enforce singleton design pattern for the logger
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 13 Feb 2022 20:00:25 +0000 (21:00 +0100)]
Add charging station instance id
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 11 Feb 2022 16:03:47 +0000 (17:03 +0100)]
Blank line cleanup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 10 Feb 2022 18:58:34 +0000 (19:58 +0100)]
Version 1.1.47
Jérôme Benoit [Thu, 10 Feb 2022 15:01:07 +0000 (16:01 +0100)]
Reorder JsonType declarations
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Feb 2022 23:10:37 +0000 (00:10 +0100)]
Simplify some code logic
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Feb 2022 17:10:13 +0000 (18:10 +0100)]
Use right registration enum at OCPP 1.6 boot notification response
handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Feb 2022 17:00:44 +0000 (18:00 +0100)]
Add occpStrictCompliance template tunable
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Feb 2022 17:05:33 +0000 (18:05 +0100)]
Version 1.1.46
Jérôme Benoit [Tue, 8 Feb 2022 17:01:38 +0000 (18:01 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Feb 2022 13:39:12 +0000 (14:39 +0100)]
Silence one code smell
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Feb 2022 12:20:32 +0000 (13:20 +0100)]
Refine JsonType definition
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 7 Feb 2022 19:44:21 +0000 (20:44 +0100)]
Relax OCPP commands acceptance while the charging station is in unknown
state
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 7 Feb 2022 14:24:50 +0000 (15:24 +0100)]
Version 1.1.45
Jérôme Benoit [Mon, 7 Feb 2022 13:39:21 +0000 (14:39 +0100)]
Add comment for incoming request handling behaviour
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 7 Feb 2022 13:36:16 +0000 (14:36 +0100)]
Allow incoming ChangeConfiguration requests before the registration on
OCPP server
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 7 Feb 2022 10:16:59 +0000 (11:16 +0100)]
Fix charging station initial registration at boot notification
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 6 Feb 2022 10:15:39 +0000 (11:15 +0100)]
Fix build due to winston types definition fix
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 6 Feb 2022 10:13:07 +0000 (11:13 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 6 Feb 2022 09:24:47 +0000 (10:24 +0100)]
Strong type protocols payloads
And fix related bugs
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Feb 2022 23:23:25 +0000 (00:23 +0100)]
Reorder condition check
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Feb 2022 22:55:29 +0000 (23:55 +0100)]
Code cleanup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Feb 2022 22:54:57 +0000 (23:54 +0100)]
Fix build failure
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Feb 2022 22:47:09 +0000 (23:47 +0100)]
Fix request and response handling in all registration state
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Feb 2022 17:45:01 +0000 (18:45 +0100)]
Fix PENDING state boot notification handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Feb 2022 15:19:26 +0000 (16:19 +0100)]
Introduce JSON type and use it for OCPP and internal message structure
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 4 Feb 2022 09:36:40 +0000 (10:36 +0100)]
Enhance log message on supervision url distribution
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 1 Feb 2022 14:20:54 +0000 (15:20 +0100)]
Unify supervision urls setup and distribution to charging stations
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Mon, 31 Jan 2022 11:31:18 +0000 (12:31 +0100)]
Fix build due to winston types definition
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 31 Jan 2022 11:09:50 +0000 (12:09 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 20 Jan 2022 15:11:21 +0000 (16:11 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Jan 2022 19:23:38 +0000 (20:23 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 7 Jan 2022 16:05:59 +0000 (17:05 +0100)]
Add node version 17 to CI
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 6 Jan 2022 16:57:23 +0000 (17:57 +0100)]
Update dependencies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 5 Jan 2022 17:27:57 +0000 (18:27 +0100)]
Version 1.1.44
Jérôme Benoit [Wed, 5 Jan 2022 14:14:46 +0000 (15:14 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 2 Jan 2022 10:08:12 +0000 (11:08 +0100)]
Reorganize more sensibly types definition
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Sun, 2 Jan 2022 09:49:40 +0000 (10:49 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 30 Dec 2021 08:28:24 +0000 (09:28 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 28 Dec 2021 13:01:55 +0000 (14:01 +0100)]
Version 1.1.43
Jérôme Benoit [Tue, 28 Dec 2021 12:55:12 +0000 (13:55 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 27 Dec 2021 12:59:51 +0000 (13:59 +0100)]
Rename UiProtocol.ts to UIProtocol.ts
Jérôme Benoit [Mon, 27 Dec 2021 12:30:18 +0000 (13:30 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 25 Dec 2021 21:00:28 +0000 (22:00 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 21 Dec 2021 15:20:22 +0000 (16:20 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 20 Dec 2021 16:06:31 +0000 (17:06 +0100)]
Version 1.1.42
Jérôme Benoit [Mon, 20 Dec 2021 16:05:18 +0000 (17:05 +0100)]
Refine autoRegister CS template tunable handling
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Sun, 19 Dec 2021 17:53:10 +0000 (18:53 +0100)]
Version 1.1.41
Jérôme Benoit [Sun, 19 Dec 2021 17:32:40 +0000 (18:32 +0100)]
Check for CS registration status before issuing OCPP commands
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Wed, 15 Dec 2021 14:23:54 +0000 (15:23 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 13 Dec 2021 14:31:53 +0000 (15:31 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Dec 2021 13:38:47 +0000 (14:38 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 9 Dec 2021 14:50:06 +0000 (15:50 +0100)]
Version 1.1.40
Jérôme Benoit [Thu, 9 Dec 2021 14:28:52 +0000 (15:28 +0100)]
Fix default configuration handling on some sections
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Thu, 9 Dec 2021 10:27:28 +0000 (11:27 +0100)]
Try to propagate error on configuration file reload.
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>