node-red-contrib-ocpp
Version:
A set of nodes to communicate via OCPP to a compatible charge box or central system
106 lines (90 loc) • 3.67 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('ocpp-remote-cp', {
category: 'config',
defaults: {
name: {value: "", required: false},
cbId: {value: "", required:true},
url: {value: "", required: true},
ocppver: {value: "1.5s", required: true}
},
label: function() {
return this.name || this.cbId || "OCPP Reqest";
}
});
RED.nodes.registerType('ocpp-remotej-cp', {
category: 'config',
defaults: {
name: {value: "", required: false},
cbId: {value: "", required:true},
ocppver: {value: "1.6j", required: true}
},
label: function() {
return this.name || this.cbId || "OCPP Reqest-j";
}
});
</script>
<script type="text/x-red" data-template-name="ocpp-remote-cp">
<div class="form-row">
<label for="node-config-input-cbId"><i class="icon-bookmark"></i> Charge Box ID</label>
<input type="text" id="node-config-input-cbId" placeholder="Enter the ChargeBox Id" width="80" />
</div>
<div class="form-row">
<label for="node-config-input-url"><i class="icon-bookmark"></i> URL</label>
<input type="text" id="node-config-input-url" />
</div>
<div class="form-row">
<label for="node-config-input-ocppver"><i class="icon-cog"></i> OCPP Ver</label>
<select id="node-config-input-ocppver">
<option value="1.5s">1.5 SOAP</option>
<option value="1.6s">1.6 SOAP</option>
</select>
</div>
<div class="form-row">
<label for="node-config-input-name"><i class="icon-bookmark"></i> Name</label>
<input type="text" id="node-config-input-name" placeholder="Setup name (defaults to ChargeBox ID" />
</div>
</script>
<script type="text/x-red" data-template-name="ocpp-remotej-cp">
<div class="form-row">
<label for="node-config-input-cbId"><i class="icon-bookmark"></i> Charge Box ID</label>
<input type="text" id="node-config-input-cbId" placeholder="Enter the ChargeBox Id" width="80" />
</div>
<div class="form-row">
<label for="node-config-input-ocppver"><i class="icon-cog"></i> OCPP Ver</label>
<select id="node-config-input-ocppver">
<option value="1.6j">1.6 JSON</option>
</select>
</div>
<div class="form-row">
<label for="node-config-input-name"><i class="icon-bookmark"></i> Name</label>
<input type="text" id="node-config-input-name" placeholder="Setup name (defaults to ChargeBox ID" />
</div>
</script>
<script type="text/x-red" data-help-name="ocpp-remote-cp">
<p>Configures the target EVSE</p>
<h3>Configuration settings</h3>
<dl>
<dt>Charge Box ID:</dt>
<dd>String identifying the Charge Box</dd>
<dt>URL:</dt>
<dd>The complete URL (including port if needed) of the Charge Box</dd>
<dt>OCPP Ver:</dt>
<dd>Indicate if the target EVSE is OCPP SOAP 1.5 or 1.6 compatible.</dd>
<dt>Name:</dt>
<dd>Name displayed in Node Red workspace</dd>
</dl>
</script>
<script type="text/x-red" data-help-name="ocpp-remotej-cp">
<p>Configures the target EVSE</p>
<h3>Configuration settings</h3>
<dl>
<dt>Charge Box ID:</dt>
<dd>String identifying the Charge Box</dd>
<dt>Name:</dt>
<dd>Name displayed in Node Red workspace</dd>
<dt>OCPP Ver</dt>
<dd>Identify the OCPP JSON protocol used by the target EVSE<br/>
<i>(currently only supports OCPP 1.6 JSON)</i>
</dd>
</dl>
</script>