alert-battery-to-maintain-h.../README.md

34 lines
643 B
Markdown
Raw Permalink Normal View History

2021-08-29 12:31:54 +02:00
<p align="center">
2021-09-19 12:34:53 +02:00
<img src="media/demo.png" width="500">
2021-08-29 12:31:54 +02:00
</p>
2021-09-19 12:33:04 +02:00
Alerts you if your battery is overcharged 🌹 or discharged 🥀 to extend its performance and health.
2021-08-29 12:30:00 +02:00
2021-09-19 12:33:04 +02:00
**Only Linux**: Want more compatible systems? I look forward to your pull requests to add more notification systems. Check line 25 in `src/__main__.py`.
2021-08-29 12:30:00 +02:00
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
2021-08-31 08:36:14 +02:00
poetry run python3 src
2021-08-29 12:26:41 +02:00
```
# Cron
```bash
2021-08-29 12:40:39 +02:00
crontab -e
```
Add the following:
```bash
2021-08-31 08:36:14 +02:00
* * * * * 'cd [absolute path folder] && poetry run python3 src'
2021-08-29 12:30:00 +02:00
```