Since my previous issue here, I have been given access to the "/setting/datasources" resource and have been digging around inside API V2.
I am able to grab all datasources and subsequently their devices, and I see the device I want to grab data from. This device is shown in both responses by using "/setting/datasources/{id}/devices" and "/device/devices/{device_id}". The device that is listed in both have the same id as well.
There are oddities within the datasources I'm able to access (it's not a permission issue). I know this device is using the WinCPU datasource and I can see it is using it by calling the "/setting/datasource/{id}/devices" for the WinCPU id, but when using the "/device/devices/{device_id}/devicedatasources" resource, the WinCPU datasource does not show up and I cannot make the "/device/devices/{device_id}/devicedatasources/{id}/data" resource fetch the data that is clearly shown in the dashboard view in the browser.
Why would this device act weird like this? I can see that it is using the WinCPU datasource under the resources tab in the browser, but I can't fetch any data from it. Is there any reason why WinCPU wouldn't be listed when using the "/device/devices/{device_id}/devicedatasources" resource through the API?
Question
Will Holland
Since my previous issue here, I have been given access to the "/setting/datasources" resource and have been digging around inside API V2.
I am able to grab all datasources and subsequently their devices, and I see the device I want to grab data from. This device is shown in both responses by using "/setting/datasources/{id}/devices" and "/device/devices/{device_id}". The device that is listed in both have the same id as well.
There are oddities within the datasources I'm able to access (it's not a permission issue). I know this device is using the WinCPU datasource and I can see it is using it by calling the "/setting/datasource/{id}/devices" for the WinCPU id, but when using the "/device/devices/{device_id}/devicedatasources" resource, the WinCPU datasource does not show up and I cannot make the "/device/devices/{device_id}/devicedatasources/{id}/data" resource fetch the data that is clearly shown in the dashboard view in the browser.
Why would this device act weird like this? I can see that it is using the WinCPU datasource under the resources tab in the browser, but I can't fetch any data from it. Is there any reason why WinCPU wouldn't be listed when using the "/device/devices/{device_id}/devicedatasources" resource through the API?
Thanks
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.