Hi
I'm a bit stuck constructing a specific api call and need some help.
I need at least the following data: Percent used/free, Bytes used or free, for all channels of a "WMI Free Disk Space" sensor for a specific date. The following html report contains the data I need:
/historicdata_html.htm?id=3035&sdate=2023-01-01-00-00-00&edate=2023-01-03-00-00-00&avg=0&pctavg=300&pctshow=false&pct=95&pctmode=false&hide=NaN
Using the api I've created the following query:
/api/historicdata.json?id=1005&avg=0&sdate=2023-01-01-00-00-00&edate=2023-01-03-00-00-00&usecaption=1&pctmode=true&apitoken=SECRET
This returns free bytes for all channels, but no percentage used/free.
datetime : 01.01.2023 00:00:48 Summe : 52349521920.0000 Freie Bytes C: : 21604192256.0000 Freier Platz C: : 34.0000 Freie Bytes D: : 30745329664.0000 Freier Platz D: : 19.0000 coverage : 100 %
-
Adjusting the api call to match parameters from the html report:
/api/historicdata.json?id=3035&sdate=2023-01-01-00-00-00&edate=2023-01-03-00-00-00&avg=0&pctavg=300&pctshow=false&pct=95&pctmode=false&hide=NaN&apitoken=SECRET
returns only the percentage for one channel, without free bytes:
datetime : 01.01.2023 00:00:42 datetime_raw : 44926.9588202778 value : 2 % value_raw : 2.0000 coverage : 100 % coverage_raw : 10000
How do I construct an api call to get all channels of a sensor, including free bytes and % used?
Thanks in advance
Add comment