# Way to make application aware of updates?

**URL:** <https://forums.balena.io/t/way-to-make-application-aware-of-updates/210013>\
**Category:** balenaOS\
**Created:** [November 10, 2020, 6:42am UTC](https://forums.balena.io/t/way-to-make-application-aware-of-updates/210013 "2020-11-10T06:42:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ca1ebd](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@ca1ebd](https://forums.balena.io/u/ca1ebd)\
**Post date:** [November 10, 2020, 6:42am UTC](https://forums.balena.io/t/way-to-make-application-aware-of-updates/210013/1 "2020-11-10T06:42:04Z")

</div>

Hello!

I am using openBalena for an IoT scoreboard which spends most of its time in “hotspot” mode to be controlled via a mobile app, but is connected to the user’s home network to download updates. We would like the application to display some feedback to the user to let them know that the board is currently updating (via the display) while the update is being downloaded. How can the application be made aware that the supervisor is downloading an update?

---

<div class="post-metadata">

**Author:** ![anujdeshpande](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/anujdeshpande/32/3155_2.png) [@anujdeshpande](https://forums.balena.io/u/anujdeshpande)\
**Post date:** [November 10, 2020, 6:46am UTC](https://forums.balena.io/t/way-to-make-application-aware-of-updates/210013/4 "2020-11-10T06:46:13Z")

</div>

Hi

You can use the API - we have a download progress field under the device resource - see - [https://www.balena.io/docs/reference/api/resources/device/](https://www.balena.io/docs/reference/api/resources/device/)

---

<div class="post-metadata">

**Author:** ![ca1ebd](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@ca1ebd](https://forums.balena.io/u/ca1ebd)\
**Post date:** [November 10, 2020, 6:55am UTC](https://forums.balena.io/t/way-to-make-application-aware-of-updates/210013/6 "2020-11-10T06:55:10Z")

</div>

Thanks so much! So what is the best way to access the API from within the application? Is there a way to get the authorization token directly from the device? We are using Python for the majority of the application, and are using the Balena Python SDK for some fleet management things already.

---

<div class="post-metadata">

**Author:** ![rahul-thakoor](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@rahul-thakoor](https://forums.balena.io/u/rahul-thakoor)\
**Post date:** [November 10, 2020, 7:15am UTC](https://forums.balena.io/t/way-to-make-application-aware-of-updates/210013/12 "2020-11-10T07:15:20Z")

</div>

Hello,

- You can get the api key injected into the container that needs to access the API by using the `io.balena.features.balena-api` label in your docker compose file. You can read more about it here [https://www.balena.io/docs/reference/supervisor/docker-compose/#labels](https://www.balena.io/docs/reference/supervisor/docker-compose/#labels)

- If you want to use the python sdk instead, you can try this method which will return the download progress for a specific device. [https://www.balena.io/docs/reference/sdk/python-sdk/#function-getuuid](https://www.balena.io/docs/reference/sdk/python-sdk/#function-getuuid)

hope this is helpful  
Cheers

---

<div class="post-metadata">

**Author:** ![ca1ebd](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@ca1ebd](https://forums.balena.io/u/ca1ebd)\
**Post date:** [November 10, 2020, 7:46am UTC](https://forums.balena.io/t/way-to-make-application-aware-of-updates/210013/14 "2020-11-10T07:46:40Z")

</div>

Yes, it is! Thank you!
