<commit_before># Battery alert

Small tool that keeps an eye on your laptop's battery and gives you a warning when it is full or almost empty. This tool's warnings are meant to tell the user when to disconnect and reconnect to power in order to make the best of the battery life.

The tool will run in the background after starting it (auto start is not available yet) and check the battery life every minute.

The default minimal percentage is `15` and the default maximum percentage is `100`.

## Requirements

- Built for OSX (battery life command)
- Shell
- Growl (for notifications)

## Installation

```sh
git clone <EMAIL>:tombruijn/battery-alert.git
cd battery-alert
chmod +x battery-alert main
```

## Usage

`./battery-alert COMMAND`

### Available commands:

- `start`
- `stop`
- `status`

## Configuration

All options that are configurable are available in the `config.cfg` file.
Such as: minimum and maximum percentage, check up interval, notification rest period and some internally used variables.

### Scheduling

You can a scheduled alerts, something that reminds you to charge your laptop's battery an hour before you have to leave.
Scheduled alerts are based on time, meaning that they will go off every day at that time.

Use the `schedule.csv` file (name configureable in `config.cfg`) to schedule alerts.
Use the following order and format for your schedule file.

```csv
%TIME(%H:%M),%PERCENTAGE(Integer),"$MESSAGE(String)"
```

Example:

```csv
08:00,10,"We'll you'll never charge me in time for the commute!"
17:00,40,"Almost time to go home dummy! Charge that battery!"
```

## License

Battery alert released under the MIT License. See the bundled LICENSE file for details.<commit_msg>Fix spelling mistake in README<commit_after># Battery alert

Small tool that keeps an eye on your laptop's battery and gives you a warning when it is full or almost empty. This tool's warnings are meant to tell the user when to disconnect and reconnect to power in order to make the best of the battery life.

The tool will run in the background after starting it (auto start is not available yet) and check the battery life every minute.

The default minimal percentage is `15` and the default maximum percentage is `100`.

## Requirements

- Built for OSX (battery life command)
- Shell
- Growl (for notifications)

## Installation

```sh
git clone git@github.com:tombruijn/battery-alert.git
cd battery-alert
chmod +x battery-alert main
```

## Usage

`./battery-alert COMMAND`

### Available commands:

- `start`
- `stop`
- `status`

## Configuration

All options that are configurable are available in the `config.cfg` file.
Such as: minimum and maximum percentage, check up interval, notification rest period and some internally used variables.

### Scheduling

You can a scheduled alerts, something that reminds you to charge your laptop's battery an hour before you have to leave.
Scheduled alerts are based on time, meaning that they will go off every day at that time.

Use the `schedule.csv` file (name configureable in `config.cfg`) to schedule alerts.
Use the following order and format for your schedule file.

```csv
%TIME(%H:%M),%PERCENTAGE(Integer),"$MESSAGE(String)"
```

Example:

```csv
08:00,10,"Well, you'll never charge me in time for the commute!"
17:00,40,"Almost time to go home dummy! Charge that battery!"
```

## License

Battery alert released under the MIT License. See the bundled LICENSE file for details.
{'fraction_non_alphanumeric': 0.08, 'fraction_numerical': 0.009855072463768115, 'mean_word_length': 4.530448717948718, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '845829', 'n_tokens_mistral': 985, 'n_tokens_neox': 912, 'n_words': 491}