A upower indicator for Ubuntu Touch, spin-off from bhdouglass's Indicator Weather. It's uses data from Linux API and the cli command Upower embedded into the Ubuntu Touch operating system.
Upower is devices dependent, please submit your device data to handle more info.
Known support :
| Devices | Status | Current | Temperature | Charge | Estimated Bat. capacity | Remaining life | Limiting battery's charge | Battery Cycle |
|---|---|---|---|---|---|---|---|---|
| OP3(T) | x | x | x | x | x | x | x | x |
| mako | x | x | x | x | x | no | ||
| hammerhead | x | x | x | x | no | no | ||
| cedric | x | x | x | x | x | no | ||
| bacon | x | x | x | x | no | no | ||
| vegetahd | x | not reliable | x | x | no | no | ||
| turbo | x | x | x | x | no | no | x | |
| pinephone | x | x | x | x | no | no | ||
| suzu | x | x | x | x | no | no | x | |
| mido | x | x | x | x | no | no | ||
| miatoll | x | x | x | x | no | no | x | |
| dumpling | x | x | x | x | x | x | x |
- It's a feature which needs to be enable on the device itself. Please create a bug request against the repository of your device and mentions this commit : https://github.com/Halium/android_device_oneplus_oneplus3/pull/10/commits/f9154c467c0f6c6d9748f9d854dff01b44cce66f
- Install the application from OpenStore,
- Go to the upower app, set setting and save,
- install the indicators,
- Reboot.
TCheck /po.
As for Indicator Weather, the indicator itself is rather simple. It's a python script that exports a Gtk menu over DBus. To start the script there is an Upstart config file located at indicator/indicator-upower.service. This starts the indicator when Unity starts the rest of the indicators. The other important file is indicator/upower.indicator. This file lets Unity know where to find the indicator on DBus and where to place the indicator on the indicator bar.
If you are interested in creating your own indicator for Ubuntu Touch and have questions, I would be glad to help. Moreover the Indicator Master, Brian Douglass, can be Just contact via my website.
The easiest way to compile and package indicator upower is via clickable.
The logo is from the gusbemacbe github repository of Suru-plus icons.
Please consider giving a small donation to the Ubports project.
Copyright (C) 2019 Ernesst
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
