Welcome, Guest

Author Topic: Battery level on Lime2  (Read 252 times)

mhammouda

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Battery level on Lime2
« on: April 01, 2018, 03:33:47 AM »
Hi,
I started using Lime2 recently. I am using OpenWRT with Lime2. I am powering the board using LiPo battery. I could not find a way to find the battery level. I use SSH to communicate with the board. Is there any script or way to find the battery level through SSH. Help, please.

Gerrit

  • Full Member
  • ***
  • Posts: 242
  • Karma: +7/-0
Re: Battery level on Lime2
« Reply #1 on: April 01, 2018, 01:56:04 PM »
cat /sys/class/power_supply/battery/status

will give you the status,
and you can find more information in the directory /sys/class/power_supply/battery/ reading the files in it

elvisfernandes

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Battery level on Lime2
« Reply #2 on: June 14, 2018, 03:11:23 PM »
hello,
 haven't one to test, but generally you find this on sys/class/power/...  after power maybe battery/status or battery/voltage.
To read
cat /sys/class/power/battery/voltage
This path is only a sample, you have to look inside sys/class/power/ the correct one.