Hello,
I am trying to use the API to get the historic data for my sensors. When using the webapp this is the URL
[server]/historicdata_html.htm?id=2244&sdate=2017-07-01-00-00-00&edate=2017-07-31-23-59-00&avg=86400&pctavg=300&pctshow=false&pct=95&pctmode=false
So for my API call I am using: [server]/api/historicdata.json?id=2244&sdate=2017-07-01-00-00-00&edate=2017-07-31-23-59-00&avg=86400
however from the API I am getting this response:
<prtg> <version>17.2.31.2018</version> <error>Sorry, the selected object cannot be used here.</error> </prtg>
whereas the webapp is working perfectly.
Any suggestions would be greatly appreciated!
Add comment