-
Notifications
You must be signed in to change notification settings - Fork 0
/
refresh-vehicle-location.html
64 lines (62 loc) · 1.8 KB
/
refresh-vehicle-location.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<script type="text/javascript">
RED.nodes.registerType("fordconnect-refresh-vehicle-location", {
category: "FordConnect",
color: "#fc6603",
inputs: 1,
outputs: 3,
icon: "Ford-logo.svg",
defaults: {
name: { value: "" },
vehicleId: { value: "", required: true },
},
label: function () {
return this.name || "Refresh vehicle location";
},
paletteLabel: "Refresh vehicle location",
});
</script>
<script
type="text/html"
data-template-name="fordconnect-refresh-vehicle-location"
>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i>Name</label>
<input type="text" id="node-input-name" />
</div>
<div class="form-row">
<label for="node-input-vehicleId"
><i class="fa fa-car"></i>Vehicle ID</label
>
<input type="text" id="node-input-vehicleId" />
</div>
</script>
<script type="text/html" data-help-name="fordconnect-refresh-vehicle-location">
<p>Get vehicle location from FordConnect API</p>
<h3>Input</h3>
<p>Any input to trigger the request</p>
<h3>Output</h3>
<dl class="message-properties">
<dt>
Success
<span class="property-type">API response</span>
</dt>
<dd>This output is only used for successful requests</dd>
<dt>
Unauthorized
<span class="property-type">401 API response</span>
</dt>
<dd>This output is only used for requests failed with 401 status code</dd>
<dt>
Other errors
<span class="property-type">API response</span>
</dt>
<dd>
This output is only used for requests failed with other status codes
</dd>
</dl>
<h3>Details</h3>
<p>
This node will make a single request to update the vehicle location, and
then poll for the command status five times with an 8 second interval
</p>
</script>