• This repository has been archived on 13/Jun/2020
  • Stars
    star
    155
  • Rank 233,348 (Top 5 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created almost 8 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An X-platform utility tool developed on Golang, notifies about charging, discharging, and critically low battery state of the battery.

Battery Monitor [Deprecated]

⚠️ We took some initiatives to revamp the project but we couldn't gather enough contributor to move the project forward. So, we are backing off finally. As it is licensed under GPL-3.0, please feel free to fork it and start on you own. To uninstall the daily build, please follow this.

Battery Monitor is a utility tool developed on Python3 and PyGtk3. It will notify the user about charging, discharging, not charging and critically low battery state of the battery on Linux (surely if the battery is present).

Uninstall Daily Build

$ sudo systemctl stop battery-monitor
$ sudo systemctl disable battery-monitor
$ sudo rm -f /usr/local/bin/battery-monitor
$ sudo rm -rf /etc/battery-monitor
$ sudo rm -f /etc/systemd/system/battery-monitor.service
$ sudo systemctl daemon-reload

Dependencies

  • acpi
  • python3
  • python3-gi
  • python3-setuptools
  • libnotify4
  • libappindicator3-1
  • gir1.2-appindicator3-0.1

To use Battery Monitor you need these dependencies installed on your PC.

Installation

Common Method

wget https://github.com/maateen/battery-monitor/archive/master.zip
unzip master.zip
cd battery-monitor-master
sudo make install

That's all. Battery Monitor (Stable) is installed on your system.

For Ubuntu and its derivatives

Let's install from PPA (currently supported: 14.04, 17.10 & 18.04; we're struggling with Ubuntu 16.04 right now):

sudo add-apt-repository ppa:maateen/battery-monitor -y
sudo apt-get update
sudo apt-get install battery-monitor -y

That's all. Battery Monitor (Stable) is installed on your system.

For Arch Linux and its derivatives

The stable version, git version and the beta version are available in the Arch User Repository:

Stable: battery-monitor Git: battery-monitor-git Beta: battery-monitor-devel-git

If you're not sure how to use the AUR, please see the Manjaro and Arch wiki entries about it. You will need an AUR helper to install packages.

For Beta Testers

wget https://github.com/maateen/battery-monitor/archive/devel.zip
unzip devel.zip
cd battery-monitor-devel
sudo make install

That's all. Battery Monitor (Beta) is installed on your system.

For Developers

Now you can automatically test Battery Monitor from Terminal:

python3 run.py --test

Or, if you've already installed:

battery-monitor --test

User Manual

Auto Start

Every time Battery Monitor starts automatically after PC boots up. It pops up notifications and you see its Icon in the system tray. To reveal the other beauties, you can click on the icon. Currently, there are three menus: Settings, About and Quit.

You can also start battery monitor from the menu entries. Please, search for Battery Monitor launcher in the menu entries and simply click on it. In case, if Battery Monitor doesn't start automatically, please open an issue. We would like to debug the issue and help you.

Settings

In Settings menu, you can configure and adjust settings for Battery Monitor.

Configuration

Here, you can set the battery percentage levels at which you want to get notifications. The warning levels are listed in ascending order. Critical Battery Warning refers to the lowest level while First Custom Warning refers to the highest level. Custom warning levels are optional.

If you change any configuration, it will be in action only after next reboot.

Battery Monitor GUI

Issue Tracking

If you find a bug, please open a new issue with details: https://github.com/maateen/battery-monitor/issues

Screenshots

Initial State

Initial State

Charging State

Charging State

Discharging State

Discharging State

Not Charging State

Not Charging State

Critically Low Battery State

Critically Low Battery State

Roadmap

Please take a look at our milestones to get a clear idea about our roadmap. They are dynamic and they can change frequently on user requests.

Changelog

v0.6

v0.5.4

v0.5.3

  • Fixed issue #45
  • Support for Ubuntu 17.10 has been added.

v0.5.2

v0.5.1

v0.5

  • Developed a GUI to manage the custom warning easily.
  • Minimized CPU consumption.
  • Added Makefile for easy installation and up-gradation.
  • Re-structured the project.
  • Support for Ubuntu 14.04, 16.04, 16.10 and 17.04 has been added.

v0.4

  • Reformatted the code in a new style.
  • Optimized the code in a way so that Battery Monitor consumes a little resource of your PC.

v0.3

  • Fixed issue #7, decreased CPU consuming from 40% to below 0.7%
  • Fixed issue #4, Added warning at 30% battery life (temporary solution, will be replaced by a GUI in near future).
  • Fixed issue #6, Added an entry in dash.

v0.2.1

  • Added trusty support.

v0.2

  • Added Critically Low Battery warning when the battery is below 10%.
  • Added ctrl+C pressing support to stop the battery-monitor command on terminal.

v0.1

  • Initial release.

Contributors

Safwan Rahman

He has reformatted the code in a new style. The style represents the code easier to understand. Also, he has optimized the code in a way that Battery Monitor consumes a little resource of your PC. Please take a minute to thank him.

Abdelhak Bougouffa

He has fixed some bugs and optimized Battery Monitor in a way so that it consumes lower CPU and RAM than before. Please take a minute to thank him.

Yochanan Marqos

He is our official package maintainer in AUR. He has put Arch users' life at ease. Please take a minute to thank him.

Benjamin Staffin

He has improved the build process and added modern Python setuptools packaging. Please take a minute to thank him.

More Repositories

1

bangla-web-fonts

Making the web more beautiful, fast, and open through great Bengali typography.
CSS
90
star
2

vim-for-devops

An awesome lightweight Vim for DevOps engineers.
Vim Script
53
star
3

py-url-shortener

Py URL Shortener is a Python powered Flask app implementing a technique in which a Uniform Resource Locator (URL) has been made substantially shorter in length and still direct to the required page. This is achieved by using a redirect on a domain name that is short, which links to the web page that has a long URL.
JavaScript
35
star
4

daroyan

Daroyan is a modern utility tool which integrates CloudFlare with Fail2Ban.
Python
17
star
5

getipinfo

This is a command-line utility tool to fetch GeoLocation information for a given IP Address.
Go
17
star
6

mama

The aim of this project is to let you use Microsoft powered Bing Speech Recognition API to control your Linux computer. The project is developed in Python3. For note, this is a fork of project google2ubuntu.
Python
15
star
7

docker-beanstalkd

A Docker container for beanstalkd, a simple and fast general-purpose work queue.
Dockerfile
12
star
8

docker-pruner

Clean up all unused Docker containers, images, networks, and volumes regularly.
Shell
10
star
9

gedit-material-theme

A fork of Gedit Material Theme by Marco Bonomo which was a clone of Sublime Text Material theme by Mattia Astorino.
9
star
10

django-vaultible

This project has been developed as a POC to show how we can use HashiCorp Vault with Django. The main objective is that there will be no secret in the codebase and application's secret will be read from Vault.
Python
9
star
11

nipy

Nipy is a Python3 blog engine based on Flask micro framework.
HTML
9
star
12

data-structure-practice

Here all the Python3 Data Structure related scripts I've written.
Python
7
star
13

k8s-kickstart

An Ansible Playbook which gifts you all components you require on K8s cluster.
6
star
14

mobot

A Python powered chatbot built on pyAIML.
Python
6
star
15

dockohealer

Monitor and restart unhealthy docker containers.
Go
5
star
16

do-k8s

Terraform codes for launching a managed Kubernetes Cluster on Digitalocean.
HCL
4
star
17

easy-lemp

A Python3 script, helps you to install LEMP( Nginx, PHP-FPM, MariaDB on Linux) just with a single command.
Python
4
star
18

algorithm-practice

Here some of the Algorithms, I have implemented in Python3.
Python
2
star
19

alokik

Extract answer choices from scanned jpg bubble forms.
Python
2
star
20

k8s-on-vagrant

Ruby
2
star
21

maateen-cheatsheet

It's my personal cheatsheet. Please feel free to make it usable for you.
2
star
22

wordpress-bangla-pack

Wordpress Bangla Pack is a simple, smart & easy plugin by which you can localize your Wordpress site in Bangla. It means that your whole site will appear in Bangla. Here I have used the best translation of each phrases & sentences to provide the best plugin to its users. If you ever think about a plugin to translate your Wordpress site in Bangla, you should not choose any other way except Wordpress Bangla Pack. Happy Blogging!!!
PHP
2
star
23

maateen.github.io

Amateur Blogger - Linux Lover - Python Hunter
HTML
1
star
24

columbus

Columbus is a modern service discovery tool for Docker and Traefik, inspired from Registrator. It uses Consul as service registry.
Go
1
star
25

terraform-aws-eks-cluster

Terraform codes for launching a managed Kubernetes Cluster on AWS EKS.
HCL
1
star