Show Omega2 Battery Voltage in OpenWrt LuCI
Sometime ago, I bought an Onion Omega2 Pro and flashed it with OpenWrt 18.06. I plan to take my Omega on the road, so I installed a Li-Po battery on the device, so that it does not need to depend on USB power input. One big question is: what's the remaining power level?
Install power-dock2
to View Battery Voltage
The standalone Power Dock has a set of battery indicator LEDs that visually tells how much juice is left.
However, the Omega2 Pro that I have does not have battery indicators.
Instead, I need to use power-dock2
command to read battery level.
Let me try it:
root@Omega2:~# power-dock2
-ash: power-dock2: not found
It does not work, because I flashed my Omega with OpenWrt 18.06, and power-dock2
command is not included in the standard OpenWrt distribution.
The command comes from OnionIoT's OpenWrt feed (package source).
I must add the OpenWrt feed before I can install the power-dock2
package.