Jérôme Benoit [Sat, 11 Sep 2021 20:42:42 +0000 (22:42 +0200)]
Document prerequisites installation
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Sat, 11 Sep 2021 20:21:39 +0000 (22:21 +0200)]
Cleanup configuration files watching code
Still buggy with worker threads
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Sat, 11 Sep 2021 19:45:59 +0000 (21:45 +0200)]
Use a Map to cache OCPP requests in use
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Fri, 10 Sep 2021 15:39:33 +0000 (17:39 +0200)]
Refine .gitignore.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 9 Sep 2021 14:37:31 +0000 (16:37 +0200)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Wed, 8 Sep 2021 15:29:17 +0000 (17:29 +0200)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Sep 2021 13:55:05 +0000 (15:55 +0200)]
Merge branch 'master' of github.com:jerome-benoit/charging-stations-simulator
Jérôme Benoit [Tue, 7 Sep 2021 13:53:37 +0000 (15:53 +0200)]
Use nullish coalescing in OCPP stack
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 6 Sep 2021 12:45:56 +0000 (14:45 +0200)]
Merge pull request #30 from jerome-benoit/add-code-of-conduct-1
Create CODE_OF_CONDUCT.md
Jérôme Benoit [Mon, 6 Sep 2021 12:43:03 +0000 (14:43 +0200)]
Create CODE_OF_CONDUCT.md
Jérôme Benoit [Mon, 6 Sep 2021 06:11:18 +0000 (08:11 +0200)]
Cleanup files and files name.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 5 Sep 2021 17:56:05 +0000 (19:56 +0200)]
Use generics for incoming message error handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 5 Sep 2021 17:50:44 +0000 (19:50 +0200)]
Release 1.0.55
Jérôme Benoit [Sun, 5 Sep 2021 17:47:12 +0000 (19:47 +0200)]
Add support for OCPP 1.6 TriggerMessage command
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 4 Sep 2021 20:07:22 +0000 (22:07 +0200)]
Switch rollup bundler TS plugin to rollup-plugin-ts
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 3 Sep 2021 08:28:01 +0000 (10:28 +0200)]
Cleanup MikroORM configuration code for performance storage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Sep 2021 20:13:18 +0000 (22:13 +0200)]
Release 1.0.54
Jérôme Benoit [Thu, 2 Sep 2021 20:07:40 +0000 (22:07 +0200)]
Fix OCPPError command attribute affectation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Sep 2021 19:54:32 +0000 (21:54 +0200)]
Improve OCPP error handling, fix performance storage default file path
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 31 Aug 2021 19:29:26 +0000 (21:29 +0200)]
Throw an error in the template does not have default required mesurand
set
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Tue, 31 Aug 2021 16:29:22 +0000 (18:29 +0200)]
Fix siemens charging station template
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 31 Aug 2021 16:08:22 +0000 (18:08 +0200)]
Release 1.0.53
Jérôme Benoit [Tue, 31 Aug 2021 16:07:25 +0000 (18:07 +0200)]
Use morgan law properly to allow remote start transaction to work.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 31 Aug 2021 15:29:27 +0000 (17:29 +0200)]
Release 1.0.52
Jérôme Benoit [Tue, 31 Aug 2021 15:25:12 +0000 (17:25 +0200)]
Fix remote start transactiion: connection status can be preparing
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 29 Aug 2021 17:07:07 +0000 (19:07 +0200)]
Revert wrong any type removal
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 29 Aug 2021 16:57:37 +0000 (18:57 +0200)]
Use IIFE (https://developer.mozilla.org/en-US/docs/Glossary/IIFE) for
message sent to the main thread
It's a fire and forget semantic, so enforce it at the code level.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 29 Aug 2021 16:01:06 +0000 (18:01 +0200)]
Refine and use OCPP error specialisation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 29 Aug 2021 13:31:58 +0000 (15:31 +0200)]
Add a sanity check at worker implementation options check
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Sun, 29 Aug 2021 12:59:54 +0000 (14:59 +0200)]
Release 1.0.51
Jérôme Benoit [Sun, 29 Aug 2021 12:56:46 +0000 (14:56 +0200)]
Add support for performance storage on worker pool
Update poolifier to the latest version supporting the definition of a message
handler on the workers.
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Sat, 28 Aug 2021 22:53:26 +0000 (00:53 +0200)]
Release 1.0.50
Jérôme Benoit [Sat, 28 Aug 2021 22:51:41 +0000 (00:51 +0200)]
Add support for more DB engines via TypeORM
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Sat, 28 Aug 2021 14:12:43 +0000 (16:12 +0200)]
Move worker message handler to the options argument
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 28 Aug 2021 07:15:57 +0000 (09:15 +0200)]
Release 1.0.49
Jérôme Benoit [Sat, 28 Aug 2021 07:14:11 +0000 (09:14 +0200)]
Add MongDB support to storage for performance records.
Cleanup the storage API
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 27 Aug 2021 19:49:42 +0000 (21:49 +0200)]
Refine console ouput colorization
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 27 Aug 2021 08:04:55 +0000 (10:04 +0200)]
Release 1.0.48
Jérôme Benoit [Fri, 27 Aug 2021 08:03:52 +0000 (10:03 +0200)]
Bootstrap.ts: refine the log prefix string
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 27 Aug 2021 07:46:48 +0000 (09:46 +0200)]
Ensure an error is throwed in object factories if implementation is not
found
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Fri, 27 Aug 2021 07:18:28 +0000 (09:18 +0200)]
Fix console log level in file exception handler
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 27 Aug 2021 07:09:08 +0000 (09:09 +0200)]
README.md: refine performanceStorage configuration documentation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 27 Aug 2021 06:32:00 +0000 (08:32 +0200)]
Rename StationWorker.ts to ChargingStationWorker.ts
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Aug 2021 22:41:00 +0000 (00:41 +0200)]
Release 1.0.47
Jérôme Benoit [Thu, 26 Aug 2021 22:39:08 +0000 (00:39 +0200)]
Colorize console message ouputs
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Aug 2021 21:58:19 +0000 (23:58 +0200)]
Storage: use worker threads message passing to store performance records from
the main thread
Pool usage does not yet support it.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Aug 2021 17:38:51 +0000 (19:38 +0200)]
Also rename the sonar project name.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Aug 2021 17:31:47 +0000 (19:31 +0200)]
Update sonar project key
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Aug 2021 17:26:18 +0000 (19:26 +0200)]
Release 1.0.46
Jérôme Benoit [Thu, 26 Aug 2021 17:24:59 +0000 (19:24 +0200)]
Rename ev-simulator to charging-stations-simulator
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Aug 2021 17:10:08 +0000 (19:10 +0200)]
Release 1.0.45
Jérôme Benoit [Thu, 26 Aug 2021 17:08:46 +0000 (19:08 +0200)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Thu, 26 Aug 2021 16:46:26 +0000 (18:46 +0200)]
Add support for deprecated configuration key in a section
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Thu, 26 Aug 2021 09:22:50 +0000 (11:22 +0200)]
Rename Configuration.deprecateConfigurationKey() to Configuration.warnDeprecatedConfigurationKey()
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Aug 2021 22:26:30 +0000 (00:26 +0200)]
Silence some sonar code smells
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Aug 2021 22:16:12 +0000 (00:16 +0200)]
Release 1.0.44
Jérôme Benoit [Wed, 25 Aug 2021 22:13:33 +0000 (00:13 +0200)]
Storage: storage records in JSON file as an array to ease import.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Aug 2021 21:10:49 +0000 (23:10 +0200)]
Release 1.0.43
Jérôme Benoit [Wed, 25 Aug 2021 21:02:05 +0000 (23:02 +0200)]
Fix regexp compliancy for sonar static analyzer
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Aug 2021 20:42:45 +0000 (22:42 +0200)]
Performance statistics: add JSON file storage support.
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Tue, 24 Aug 2021 09:48:29 +0000 (11:48 +0200)]
Disable a eslint rule on a line
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Aug 2021 22:26:12 +0000 (00:26 +0200)]
Release 1.0.42
Jérôme Benoit [Mon, 23 Aug 2021 22:24:36 +0000 (00:24 +0200)]
Do not enforce the singleton design pattern in the worker object factory
Let the caller be responsible of not duplicating pool/set reference
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Aug 2021 21:24:26 +0000 (23:24 +0200)]
Release 1.0.41
Jérôme Benoit [Mon, 23 Aug 2021 21:07:23 +0000 (23:07 +0200)]
Use singleton design pattern directly in the worker object factory
And remove all now uneeded singleton classes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Aug 2021 19:19:37 +0000 (21:19 +0200)]
Bump @typescript-eslint to 4.29.3
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Aug 2021 19:00:05 +0000 (21:00 +0200)]
Merge pull request #8 from jerome-benoit/dependabot/npm_and_yarn/rollup-2.56.3
Bump rollup from 2.56.2 to 2.56.3
dependabot[bot] [Mon, 23 Aug 2021 18:27:29 +0000 (18:27 +0000)]
Bump rollup from 2.56.2 to 2.56.3
Bumps [rollup](https://github.com/rollup/rollup) from 2.56.2 to 2.56.3.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.56.2...v2.56.3)
---
updated-dependencies:
- dependency-name: rollup
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Jérôme Benoit [Mon, 23 Aug 2021 18:25:13 +0000 (20:25 +0200)]
Release 1.0.40
Jérôme Benoit [Mon, 23 Aug 2021 15:11:17 +0000 (17:11 +0200)]
Revert wrong returned value after a test.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 22 Aug 2021 09:44:38 +0000 (11:44 +0200)]
Fix GH actions run on dependabot PRs.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 20:45:40 +0000 (22:45 +0200)]
Use GitHub token in GH actions
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 20:06:59 +0000 (22:06 +0200)]
Cleanup: rename isWebSocketOpened to isWebSocketConnectionOpened
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 20:02:28 +0000 (22:02 +0200)]
Optimize a loop in the worker related code.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 18:54:03 +0000 (20:54 +0200)]
GitHub action: move linter step before the build
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 18:47:49 +0000 (20:47 +0200)]
GitHub action: continue on linter errors
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 18:39:43 +0000 (20:39 +0200)]
Add coverage run to GitHub actions
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 18:32:56 +0000 (20:32 +0200)]
package.json: avoid to build before running test
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 18:26:42 +0000 (20:26 +0200)]
Merge GH actions in one file.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 17:04:13 +0000 (19:04 +0200)]
Refine GH actions scope
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 16:54:35 +0000 (18:54 +0200)]
Refine sonarcloud configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 16:37:21 +0000 (18:37 +0200)]
Update poolifier link
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 15:23:47 +0000 (17:23 +0200)]
GH action: Use the right repo token
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 12:45:31 +0000 (14:45 +0200)]
Release 1.0.39
Jérôme Benoit [Sat, 21 Aug 2021 12:37:21 +0000 (14:37 +0200)]
Rename OCCP16IncomingRequestService.ts to OCPP16IncomingRequestService.ts
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 12:26:23 +0000 (14:26 +0200)]
Fix sonarcloud bugs report.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 11:05:06 +0000 (13:05 +0200)]
Fix syntax error in GH action build.yml
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 11:02:09 +0000 (13:02 +0200)]
Add sonarcloud to GitHub actions
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Aug 2021 10:07:13 +0000 (12:07 +0200)]
Release 1.0.38
Jérôme Benoit [Sat, 21 Aug 2021 10:05:21 +0000 (12:05 +0200)]
Bump @types/node from 14.17.10 to 14.17.11
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 20 Aug 2021 21:21:44 +0000 (23:21 +0200)]
Bump mocha from 9.0.3 to 9.1.0
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 20 Aug 2021 06:37:34 +0000 (08:37 +0200)]
Release 1.0.37
Jérôme Benoit [Fri, 20 Aug 2021 06:36:11 +0000 (08:36 +0200)]
Add charging station template fields for HTTP basic authentication
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 19 Aug 2021 09:12:20 +0000 (11:12 +0200)]
Merge pull request #2 from jerome-benoit/dependabot/npm_and_yarn/ws-8.2.0
Bump ws from 8.1.0 to 8.2.0
dependabot[bot] [Wed, 18 Aug 2021 11:19:35 +0000 (11:19 +0000)]
Bump ws from 8.1.0 to 8.2.0
Bumps [ws](https://github.com/websockets/ws) from 8.1.0 to 8.2.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.1.0...8.2.0)
---
updated-dependencies:
- dependency-name: ws
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Jérôme Benoit [Tue, 17 Aug 2021 09:52:40 +0000 (11:52 +0200)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 15 Aug 2021 22:41:23 +0000 (00:41 +0200)]
Create codeql-analysis.yml
Jérôme Benoit [Sun, 15 Aug 2021 22:36:24 +0000 (00:36 +0200)]
Add dependabot configuration file.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 15 Aug 2021 22:09:25 +0000 (00:09 +0200)]
README.md: Refine copyright application sentence some more
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 15 Aug 2021 22:07:37 +0000 (00:07 +0200)]
package.json: add contributors field
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>