Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More configs for OCPP #93

Merged
merged 2 commits into from
Jan 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
remove tx_start_point, rename WS key
matth-x committed Dec 29, 2022
commit bd3126dd08e4c1f6b1ea29d5c408b693bd9c5fd5
13 changes: 2 additions & 11 deletions src/home.htm
Original file line number Diff line number Diff line change
@@ -556,17 +556,8 @@ <h2><span data-bind="i18n: 'ocpp'">OCPP 1.6</span><img src="data:image/png;base6
<input data-bind="textInput: config.ocpp_chargeBoxId" type="text" autocapitalize="none">
</p>
<p data-bind="visible: config.ocpp_enabled">
<b data-bind="i18n: 'ocppidtag'">ID Tag*:</b>
<input data-bind="textInput: config.ocpp_idTag" type="text" autocapitalize="none">
</p>
<p data-bind="visible: config.ocpp_enabled">
<b data-bind="i18n: 'ocppspoint'">Transaction start point:</b><br>
<select data-bind="visible: config.ocpp_enabled,
options: config.supported_tx_start_points,
optionsText: function(item) {
if (item === 'tx_pending') {return 'StartTransaction pending';} else if (item === 'tx_accepted') {return 'StartTransaction accepted';} else {return 'only RemoteStartTransaction';}
},
value: config.tx_start_point"></select>
<b data-bind="i18n: 'ocppauthkey'">Authorization Key:</b>
<input data-bind="textInput: config.ocpp_authkey" type="text" autocapitalize="none" placeholder="Basic-Authentication Key">
</p>
<p data-bind="visible: config.ocpp_enabled">
<b data-bind="i18n: 'ocppacccont'">Access control:</b><br>
7 changes: 3 additions & 4 deletions src/localisation.js
Original file line number Diff line number Diff line change
@@ -140,11 +140,11 @@ i18nextko.init({
"ocpp": "OCPP 1.6",
"ocppenable": "Enable OCPP",
"ocppserver": "Central System URL*:",
"ocppid": "Charge box ID*:",
"ocppspoint": "Transaction start point:",
"ocppid": "Charge Box ID*:",
"ocppacccont": "Access control:",
"ocppsuspend": "OCPP can suspend EVSE",
"ocppenergize": "OCPP can energize plug",
"ocppauthkey": "WebSocket Key (Security Profile 2):",
"evseerror": "EVSE Error",
"evseerrordesc1": "OpenEVSE not responding or not connected",
"status": "Status",
@@ -408,11 +408,10 @@ i18nextko.init({
"ocppenable": "Activer OCPP",
"ocppserver": "URL du Système Central*:",
"ocppid": "ID du Chargeur*:",
"ocppidtag": "ID Tag*",
"ocppspoint": "Point de départ de la Transaction:",
"ocppacccont": "Contrôle d'accès:",
"ocppsuspend": "OCPP peut suspendre l'EVSE",
"ocppenergize": "OCPP peut alimenter la prise",
"ocppauthkey": "Clef WebSocket (Profil de Sécurité 2):",
"evseerror": "Erreur EVSE",
"evseerrordesc1": "OpenEVSE ne répond pas ou n'est pas connecté",
"status": "Status:",
4 changes: 1 addition & 3 deletions src/view_models/ConfigViewModel.js
Original file line number Diff line number Diff line change
@@ -37,9 +37,7 @@ function ConfigViewModel(baseEndpoint) {
"ocpp_server": "",
"ocpp_enabled": 0,
"ocpp_chargeBoxId": "",
"ocpp_idTag": "",
"supported_tx_start_points": ["tx_pending", "tx_accepted", "tx_only_remote"],
"tx_start_point": "tx_pending",
"ocpp_authkey": "",
"ocpp_suspend_evse": 1,
"ocpp_energize_plug": 1,
"http_supported_protocols": [],