2021-08-29 12:31:54 +02:00
|
|
|
<p align="center">
|
|
|
|
<img src="alert_battery_to_maintain_health/icons/battery-status.png" width="200">
|
|
|
|
</p>
|
|
|
|
|
2021-08-29 12:30:00 +02:00
|
|
|
Alerts you if your battery is overcharged or discharged to extend its performance and health.
|
|
|
|
|
|
|
|
Cross-platform compatibility:
|
|
|
|
- Windows.
|
|
|
|
- MacOS.
|
|
|
|
- Linux.
|
|
|
|
- FreeBSD.
|
|
|
|
|
2021-08-29 12:40:39 +02:00
|
|
|
# Preview
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
<img src="media/demo.png" width="500">
|
|
|
|
</p>
|
|
|
|
|
2021-08-29 12:26:41 +02:00
|
|
|
# Install
|
|
|
|
|
|
|
|
```bash
|
2021-08-29 12:30:00 +02:00
|
|
|
git clone git@github.com:tanrax/alert-battery-to-maintain-health.git
|
|
|
|
cd alert-battery-to-maintain-health
|
2021-08-29 12:26:41 +02:00
|
|
|
poetry install
|
|
|
|
```
|
|
|
|
|
|
|
|
# Run
|
|
|
|
|
|
|
|
```bash
|
|
|
|
poetry run python3 alert_battery_to_maintain_health/__init__.py
|
|
|
|
```
|
|
|
|
|
|
|
|
# Cron
|
|
|
|
|
|
|
|
```bash
|
2021-08-29 12:40:39 +02:00
|
|
|
crontab -e
|
|
|
|
```
|
|
|
|
|
|
|
|
Add the following:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
* * * * * cd [absolute path folder] && poetry run python3 alert_battery_to_maintain_health/__init__.py
|
2021-08-29 12:30:00 +02:00
|
|
|
```
|