mirror of
https://github.com/openwrt/luci.git
synced 2025-01-31 03:41:47 +00:00
dcac704b3d
Introduce a new package luci-app-battstatus which queries battery charge information using i2c commands and displays a charge indicator in the upper right notification area. So far this package has been tested to work with the HooToo HT-TM05 travel router but might be extended to cover further models in the future. Signed-off-by: Russell Morris <rmorris@rkmorris.us> [rebase on top of master, rewrite commit message, adjust copyright, convert some ubus fields to boolean values] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
11 lines
164 B
JSON
Executable File
11 lines
164 B
JSON
Executable File
{
|
|
"luci-mod-battstatus": {
|
|
"description": "Grant access to battery status",
|
|
"read": {
|
|
"ubus": {
|
|
"luci.battstatus": [ "getBatteryStatus" ]
|
|
}
|
|
}
|
|
}
|
|
}
|