Ask our Experts
Didn't find what you are looking for? Ask our experts!
Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-09-08 02:51 PM
i can list the sensors using curl command.
$ curl -k -X 'GET' -H 'accept: application/json' -H 'Authorization: Bearer '"$key" "https://api.ecostruxureit.com/rest/v1/organizations/$org/sensors" | grep 'Battery Age' -A 1 -B 2
output>>>
"id" : "e5e1c4c0-1779-42e0-9f90-a818c522072c",
"deviceId" : "d52db11c-8ba0-4e51-b3a5-fac5187cc493",
"name" : "Battery Age",
"unit" : "MILLISECONDS"
--
....
how can the measurement or value of the above specific device and a specific sensor "Battery Age"? Does it require different license (eg the asset license)?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-09-09 06:59 AM
@weiguo.kuang, You will need to use the /rest/v1/organizations/{organizationId}/measurements/live API call to get sensor data. This call outputs live sensor data and will be continuous. My recommendation would be to output it to a database so that you can get the values that you need using database calls.
Here is an example call:
curl --compressed --header "Accept-Encoding: gzip" --header "Authorization: bearer $key" https://api.ecostruxureit.com/rest/v1/organizations/$org/measurements/live
I tested my command by outputting to a text file using -o output.txt and here are some results from that file (note, if doing this method, the file will indefinitely grow as long as the command runs):
Using the Sensor ID value (blurred), you can locate the sensor descriptions and parent device using the call that you have already shown in your original post.
Regards,
Cory
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-09-09 06:59 AM
@weiguo.kuang, You will need to use the /rest/v1/organizations/{organizationId}/measurements/live API call to get sensor data. This call outputs live sensor data and will be continuous. My recommendation would be to output it to a database so that you can get the values that you need using database calls.
Here is an example call:
curl --compressed --header "Accept-Encoding: gzip" --header "Authorization: bearer $key" https://api.ecostruxureit.com/rest/v1/organizations/$org/measurements/live
I tested my command by outputting to a text file using -o output.txt and here are some results from that file (note, if doing this method, the file will indefinitely grow as long as the command runs):
Using the Sensor ID value (blurred), you can locate the sensor descriptions and parent device using the call that you have already shown in your original post.
Regards,
Cory
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.