Once that has finished you will need to open your index.html
file and make some small modifications. You will find this file in the following directory.
iot-starterkit/src/apps/java/consumption/com.sap.iot.starterkit.ui/src
For starters you will need to change your settings to match your newly connected device.
oSettingsModel.setData({
"deviceId" : "dcc6d8b5-fec2-43a2-96be-1a85b0a1912b",
"deviceTypeId" : "a87bb50d9b3789aa4c2f",
"fromDeviceMessageTypeId" : "1",
"toDeviceMessageTypeId" : "2",
});
Don’t remember just go back to your iotmms
application and you can get them from there. Once you have that in place you will need to adjust the graph
settings to match the values of your message type as well as your data values, change Slider Value to Temperature F.
function createMeasureFeed() {
return new sap.viz.ui5.controls.common.feeds.FeedItem({
"uid" : "primaryValues",
"type" : "Measure",
"values" : ["Temperature F"]
});
}
Now change Slider Value to Temperature F, and add in your column name.
function createDataSet() {
return new sap.viz.ui5.data.FlattenedDataset({
dimensions : [{
name : "Timestamp",
value : {
path : "sensor>C_TIMESTAMP",
formatter : function (oValue) {
//can be a string primitive in JSON, but we need a number
if ((typeof oValue) === "string") {
oValue = parseInt(oValue);
}
//ensure that UNIX timestamps are converted to milliseconds
var oDate = new Date(oValue * 1000);
return oDate.toLocaleString();
}
}
}
],
measures : [{
name : "Temperature",
value : "{sensor>C_TEMPERATURE}"
}
],
data : {
path : "sensor>/"
}
});
}