I am trying to replace the following with API calls:
AFTimeRange timeRange = new AFTimeRange(dtCalc, dtCalc10);
IDictionary<AFSummaryTypes, AFValue> AvgValue = piPoint.Summary(timeRange, AFSummaryTypes.Average,
AFCalculationBasis.TimeWeighted, AFTimestampCalculation.Auto);I am able to find the point:
https://myserver.com/piwebapi/points/search?dataServerWebId=F2DSzKGmj7v02UW4Bk-g_uTpnJSDAnNje&query=Tag:=PAL*
Then I use the following to query the point:
https://mywebserver.com/piwebapi/streams/F1DLcPGmq8v02UX3Cg-h_uHpnQdqoBCCKLAxNjhcUEFMX1dJTkQuVU5JDF3XSU7ELkhNVw/recorded?starttime=*-10m&selectedFields=Items.Value
First, is recorded correct?
Second, how to I find the average, Time weighted?
-Markus