summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-battstatus/root/usr/share/rpcd/acl.d/luci-mod-battstatus.json
diff options
context:
space:
mode:
authorRussell Morris <rmorris@rkmorris.us>2020-01-22 21:10:13 -0600
committerJo-Philipp Wich <jo@mein.io>2020-07-18 15:28:36 +0200
commitdcac704b3d6bc3c4ad2ccacb3d79fc67d900087f (patch)
treec384a20a949b737946b677e72e3b3a8d1fc84c7c /modules/luci-mod-battstatus/root/usr/share/rpcd/acl.d/luci-mod-battstatus.json
parentdf3f62988897012b36c1f4810570a1eece65e2d5 (diff)
luci-app-battstatus: initial release
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>
Diffstat (limited to 'modules/luci-mod-battstatus/root/usr/share/rpcd/acl.d/luci-mod-battstatus.json')
-rwxr-xr-xmodules/luci-mod-battstatus/root/usr/share/rpcd/acl.d/luci-mod-battstatus.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/luci-mod-battstatus/root/usr/share/rpcd/acl.d/luci-mod-battstatus.json b/modules/luci-mod-battstatus/root/usr/share/rpcd/acl.d/luci-mod-battstatus.json
new file mode 100755
index 0000000000..4babc31b94
--- /dev/null
+++ b/modules/luci-mod-battstatus/root/usr/share/rpcd/acl.d/luci-mod-battstatus.json
@@ -0,0 +1,10 @@
+{
+ "luci-mod-battstatus": {
+ "description": "Grant access to battery status",
+ "read": {
+ "ubus": {
+ "luci.battstatus": [ "getBatteryStatus" ]
+ }
+ }
+ }
+}