Jérôme Benoit [Sun, 13 Mar 2022 11:01:25 +0000 (12:01 +0100)]
Introduce a CS instance hashId dependent on its specifications and use it in
various places such as OCPP parameters persistence
Reference #196
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 12 Mar 2022 20:35:19 +0000 (21:35 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 12 Mar 2022 20:00:22 +0000 (21:00 +0100)]
Code cleanups
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 12 Mar 2022 12:19:16 +0000 (13:19 +0100)]
watchJsonFile: ensure the argument is defined before assigning it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 12 Mar 2022 11:32:56 +0000 (12:32 +0100)]
Delete supervision url configuration key if the feature is disabled from
persistent storage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 12 Mar 2022 10:47:54 +0000 (11:47 +0100)]
Refine documentation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 12 Mar 2022 10:40:16 +0000 (11:40 +0100)]
Add CS template tunable to enable persistent OCPP configuration
Reference: #196
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 12 Mar 2022 09:44:31 +0000 (10:44 +0100)]
Add getter for supervisionUrlOcppKey value
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 12 Mar 2022 09:17:27 +0000 (10:17 +0100)]
.eslintrc: file formatting
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 12 Mar 2022 09:15:55 +0000 (10:15 +0100)]
Add OCPP params file monitoring
Reference: #196
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 11 Mar 2022 17:55:04 +0000 (18:55 +0100)]
Add persistent OCPP parameters key/value support by CS generated name
Issue #196
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 10 Mar 2022 14:42:42 +0000 (15:42 +0100)]
Version 1.1.54
Jérôme Benoit [Wed, 9 Mar 2022 22:56:07 +0000 (23:56 +0100)]
Really fix docker image build
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Mar 2022 22:38:12 +0000 (23:38 +0100)]
Fix docker image build
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Mar 2022 22:06:39 +0000 (23:06 +0100)]
Ensure connector status is defined before getting its attributes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Mar 2022 22:00:21 +0000 (23:00 +0100)]
Allow undefined in linter configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Mar 2022 21:54:07 +0000 (22:54 +0100)]
Disable husky installation on CF and CI
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Mar 2022 20:38:05 +0000 (21:38 +0100)]
Add helper to get connector id for a transaction id
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Mar 2022 15:50:52 +0000 (16:50 +0100)]
Version 1.1.53
Jérôme Benoit [Wed, 9 Mar 2022 15:48:17 +0000 (16:48 +0100)]
Fix metervalues payload format
Close #198
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Mar 2022 10:05:45 +0000 (11:05 +0100)]
Revert issue template refinement
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Mar 2022 10:04:19 +0000 (11:04 +0100)]
Refine issue template
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Mar 2022 10:02:13 +0000 (11:02 +0100)]
Add the missing issue template key in the right section
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Mar 2022 09:52:17 +0000 (10:52 +0100)]
Add missing key in issue template
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 9 Mar 2022 09:30:48 +0000 (10:30 +0100)]
Fix issue template reformating
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Mar 2022 20:01:46 +0000 (21:01 +0100)]
Add missing payload attributes to boot notification
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Mar 2022 19:37:19 +0000 (20:37 +0100)]
Replace deprecated string helper usage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Mar 2022 18:01:55 +0000 (19:01 +0100)]
Version 1.1.52
Jérôme Benoit [Tue, 8 Mar 2022 17:50:52 +0000 (18:50 +0100)]
Fix deprecated configuration key detection in a section
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Mar 2022 15:47:30 +0000 (16:47 +0100)]
Do not throw inside a promise
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Mar 2022 11:47:08 +0000 (12:47 +0100)]
Imports cleanup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Mar 2022 11:42:48 +0000 (12:42 +0100)]
Imports cleanup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Mar 2022 11:37:53 +0000 (12:37 +0100)]
Convert sendDiagnosticsStatusNotification to OCPP message sending handler
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Mar 2022 11:32:22 +0000 (12:32 +0100)]
Convert sendTransactionEndMeterValues to OCPP message sending handler
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Mar 2022 10:52:55 +0000 (11:52 +0100)]
Convert sendTransactionBeginMeterValues to OCPP message sending handler
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Mar 2022 10:46:02 +0000 (11:46 +0100)]
Convert sendMeterValues to OCPP message sending handler
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 8 Mar 2022 09:32:15 +0000 (10:32 +0100)]
Convert sendStopTransaction to OCPP message sending handler
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 7 Mar 2022 22:45:34 +0000 (23:45 +0100)]
Convert sendStartTransaction to OCPP message sending handler
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 7 Mar 2022 22:26:23 +0000 (23:26 +0100)]
Convert sendAuthorize to OCPP message sending handler
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 7 Mar 2022 21:58:20 +0000 (22:58 +0100)]
Convert sendStatusNotification to OCPP message sending handler
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 7 Mar 2022 21:22:30 +0000 (22:22 +0100)]
Convert sendBootNotification to OCPP message sending handler
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 7 Mar 2022 12:59:03 +0000 (13:59 +0100)]
Introduce a generic OCPP message sending handler
And start making use of it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 6 Mar 2022 23:26:06 +0000 (00:26 +0100)]
Initial code cleanups for the future OCPP requests code optimization
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
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>