From a02da55fb94060c8066bb885d0e76321e6f03d03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 5 May 2021 23:00:06 +0200 Subject: [PATCH] README.md: document some more configuration tunable. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- README.md | 14 ++++++++++++++ src/types/ChargingStationTemplate.ts | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ce9fcd5f..eca6d828 100644 --- a/README.md +++ b/README.md @@ -38,12 +38,26 @@ logMaxFiles | | 7 | integer | maximum number of files to keep logLevel | emerg/alert/crit/error/warning/notice/info/debug | info | string | winston logging level logFile | | combined.log | string | log file relative path logErrorFile | | error.log | string | error log file relative path +stationTemplateURLs | | {}[] | { file: string; numberOfStations: number; }[] | array of charging template file URIs ### Charging station template Key | Value(s) | Default Value | Value type | Description --- | -------| --------------| ---------- | ------------ +supervisionURL | | '' | string | connection URI to OCPP-J server +ocppVersion | 1.6 | 1.6 | string | OCPP version +ocppProtocol | json | json | string | OCPP protocol authorizationFile | | '' | string | RFID tags list file relative to src/assets path +baseName | | '' | string | base name to build charging stations name +nameSuffix | | '' | string | name suffix to build charging stations name +fixedName | true/false | false | boolean | use the baseName as the charging stations unique name +chargePointModel | | '' | string | charging stations model +chargePointVendor | | '' | string | charging stations vendor +chargeBoxSerialNumberPrefix | | '' | string | charging stations serial number prefix +firmwareVersion | | '' | string | charging stations firmware version +power | | | number\|number[] | charging stations maximum power value(s) +powerSharedByConnectors | true/false | false | boolean | charging stations power shared by connectors +powerUnits | W/kW | W | string | charging stations power units ## License diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index b3b05b66..f4a175d1 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -8,7 +8,7 @@ export enum PowerOutType { DC = 'DC', } -export enum PowerUnit { +export enum PowerUnits { WATT = 'W', KILO_WATT = 'kW', } @@ -38,14 +38,14 @@ export default interface ChargingStationTemplate { authorizationFile?: string; baseName: string; nameSuffix?: string; - fixedName?: string; + fixedName?: boolean; chargePointModel: string; chargePointVendor: string; chargeBoxSerialNumberPrefix?: string; firmwareVersion?: string; power: number | number[]; powerSharedByConnectors?: boolean; - powerUnit: PowerUnit; + powerUnits: PowerUnits; powerOutType?: PowerOutType; numberOfPhases?: number; numberOfConnectors?: number | number[]; -- 2.34.1