Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit ce9f888

Browse files
author
Tyler Ayers
committed
added customization of machineid
1 parent af74c8f commit ce9f888

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

-709 KB
Loading

tutorial-demos/sapigee/frontends/sap-oneapi/public/factory-monitor/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@ <h5 class="modal-title" id="exampleModalLabel">Settings</h5>
163163
</select>
164164
<br>
165165
<div>
166-
<label for="checkpointLabel">Meter Id</label>
167-
<input type="email" class="form-control" id="checkpointInput" aria-describedby="checkpointHelp" placeholder="Enter Checkpoint Id" disabled>
166+
<label for="checkpointLabel">Machine Id</label>
167+
<input type="email" class="form-control" id="checkpointInput" aria-describedby="checkpointHelp" placeholder="Enter Machine Id">
168168
<small id="emailHelp" class="form-text text-muted">This Id is used to identity the device being monitored.</small>
169169
</div>
170170
</div>
171171
<div class="modal-footer">
172-
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
172+
<button type="button" class="btn btn-secondary" data-dismiss="modal" onclick="checkpointId = $('#checkpointInput').val(); localStorage.setItem('checkpointId', checkpointId); location.reload();">Close</button>
173173
</div>
174174
</div>
175175
</div>

tutorial-demos/sapigee/frontends/sap-oneapi/public/factory-monitor/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ jQuery(document).ready(function($) {
314314
data: JSON.stringify({
315315
machineId: checkpointId,
316316
displayName: checkpointId,
317-
location: getRandomInRange(0, 705, 0) + ", " + getRandomInRange(0, 600, 0)
317+
location: getRandomInRange(0, 89, 6) + ", " + getRandomInRange(0, 93, 6)
318318
}),
319319
success: function(data) {
320320
console.log(data);

tutorial-demos/sapigee/specs/factory-automation.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ components:
205205
description: 'Display name of a device.'
206206
type: string
207207
example: "device_345332"
208+
image:
209+
description: 'Image of the device.'
210+
type: string
208211
status:
209212
description: 'Status of the device.'
210213
type: string

0 commit comments

Comments
 (0)