Battery Drain monitor


I want to know that can we retrieve battery drain from beacon.when i was mapping beacon through estimote app that time i saw that it was showing battery life 8month, 13months something like that. can we retrieve battery drain details from beacon. If yes please let me know How can we retrieve ?


You could retrieve the latest estimation of your beacons’ battery life from our Cloud API:

Alternatively, our new Location Beacons can broadcast the remaining battery life estimate directly in the Estimote Telemetry packet, so you could read that directly off of it. (But you need to be in range of a beacon then.)

How do you want to use the battery life information?

    -H 'Accept: application/json'

In the JSON that follows, look for the battery_life_expectancy_in_days.

You can generate an App ID and Token for your app here:

You can make an HTTP request to our Cloud API from your app. There should be quite a lot of tutorials about how to do that out there (:

What platform/language do you want to build this with? iOS, Android, Ruby, Python? I’ll find an appropriate tutorial.

You can simply parse the JSON response and extract only the data you need:

Try this:

$ch = curl init();
curl_setopt($ch, CURLOPT_URL, "");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERPWD, "achopra-smu-edu-sg-s-your--iuw:10e891270177480e7443148908d0afa3");
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json"));
$output = curl_exec($ch);

i tried this but this is not working if i’m combining this with php just adding php format.

You’re doing the JSON decoding wrong, here’s how:

$output = curl_exec($ch);

$json = json_decode($output);

Ooops, just realized I made a mistake above.


needs to be:


This should give you an idea what $json looks like after all this, and how to access the major or battery level data.