# Battery percentage display

**URL:** <https://forum.inductiveautomation.com/t/battery-percentage-display/25993>\
**Category:** Ignition\
**Created:** [June 20, 2019, 5:23pm UTC](https://forum.inductiveautomation.com/t/battery-percentage-display/25993 "2019-06-20T17:23:18Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [June 27, 2019, 12:00pm UTC](https://forum.inductiveautomation.com/t/battery-percentage-display/25993/8 "2019-06-27T12:00:04Z")

</div>

I’ve put this inside actionPerformed event of the Timer component (15seconds) in Vision (not Perspective):

```auto
def bateryremaining():
	import subprocess
	proc = subprocess.Popen('powershell.exe -noprofile -command "(Get-WmiObject win32_battery).estimatedChargeRemaining"', stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
	tmp = proc.stdout.read()
	print "estimatedChargeRemaining: ", tmp
	system.tag.write("[Client]bateryRemaining", tmp)
system.util.invokeAsynchronous(bateryremaining)

```

Running client on Windows 10 Pro tablet  
and it is working (Ignition v7.9.11)…

---

_[View the full topic](https://forum.inductiveautomation.com/t/battery-percentage-display/25993)._
