11# 🛠️ Configuration
22
3+ ## 🚩 Flags and environment variables
4+
5+ Available flags:
6+
7+ | Flag | Short | Description | Default value |
8+ | :-------------------:| :-----:| :-------------------------------:| :-------------:|
9+ | ` -settings ` | / | Path to the settings file. | |
10+ | ` -connector-folder ` | / | Path to the connector folder. | |
11+ | ` -ocpp-config ` | / | Path to the OCPP configuration. | |
12+ | ` -auth ` | / | Path to the authorization file. | |
13+ | ` -debug ` | ` --d ` | Debug mode | false |
14+ | ` -api ` | ` --a ` | Expose the API | false |
15+ | ` -api-address ` | / | API address | "localhost" |
16+ | ` -api-port ` | / | API port | 4269 |
17+
18+ Environment variables are created automatically thanks to [ Viper] ( https://github.com/spf13/viper ) and are prefixed
19+ with ` CHARGEPI ` . Only the settings (not the ocpp configuration or connectors) are bound to the env
20+ variables. Debug mode and API settings flags are also bound to the environment variables.
21+
22+ Example environment variable: ` CHARGEPI_CHARGEPOINT_INFO_ID ` .
23+
24+ ## 🛠 Configuration files
25+
326There are three ** required** configuration files:
427
5281 . [ ` settings ` ] ( ../../configs/settings.json )
6292 . [ ` configuration ` ] ( ../../configs/configuration.json )
7303 . [ ` connector ` ] ( ../../configs/connectors/connector-1.json )
831
9- The settings files are supported in ` YAML ` , ` JSON ` or ` TOML ` format. All files must be only in one format. The format is
10- configurable though program flags.
32+ The settings files are supported in ` YAML ` , ` JSON ` or ` TOML ` format.
1133
12- ## The ` settings ` file
34+ ### The ` settings ` file
1335
1436The ` settings ` file contains basic information about the charge point and provides connectivity details:
1537
@@ -95,7 +117,7 @@ Example settings:
95117}
96118```
97119
98- ## 🔌 The ` connector ` file(s) - EVSEs and connectors
120+ ### 🔌 The ` connector ` file(s) - EVSEs and connectors
99121
100122EVSE and connector settings files can be found in the ` connectors ` folder. To add and configure the connector, simply
101123add a new file that contains the structure, defined in [ attributes] ( #attributes ) and modify it to your specs. The client
@@ -104,7 +126,7 @@ will scan the folder at boot and configure the connectors from the files if all
104126Note: A Charge point can have multiple EVSEs, each oh which can have multiple connectors, but only one connector of the
105127EVSE can charge at a time.
106128
107- ### Attributes
129+ #### Attributes
108130
109131` Connector ` object contains a connector type and an ID of the connector, which must start with 1 and increment by one.
110132The status attribute changes according to the OCPP specification. The ` session ` represents a Charging session and is
0 commit comments