Hey, Thanks for the info.
I'll give it a go and let you know how I make out. Below is the sample code I have been working with
Atm, I have this service on a thingShape which is added to the Thing itself. I am filtering the value column on value<8>, as in the code below utilizing queryIntegerpropertyHistory...
var queryFilter = {
"filters":{
"fieldName":"value",
"type":"EQ",
"value": 8
}
};
var params = {
t: result /* INFOTABLE */,
query: queryFilter /* QUERY */
};
// result: INFOTABLE dataShape: "IntegerValueStream"
var result = Things["Asset_Name_Here"].QueryIntegerPropertyHistory({
oldestFirst: undefined /* BOOLEAN */,
maxItems: 500 /* NUMBER */,
propertyName: "stateRegister" /* STRING */,
endDate: endDate /* DATETIME */,
query: queryFilter /* QUERY */,
startDate: startDate /* DATETIME */
});
Thanks again,
Thomas