<commit_before># Mookfist LimitlessLED Controller v0.0.1

Intended as a simple wrapper around the LimitlessLED wifi protocol written in python.

Currently only supports version 4 (and possibly version 5) but is designed to support multiple versions.

There are some differences from the original LimitlessLED protocol:

1. Brightness is a percentage between 0 and 100. LimitlessLED protocol's brightness ranges from 2 to 27
2. Color is a value between 0 and 255 and starts and ends with the color red. LimitlesLED protocol's color starts from blue

## Installation

Download the code: https://github.com/mookfist/mookfist-limitlessled-controller/archive/master.zip

```
$ unzip master.zip
$ python setup.py install
$ python lled.py --help
```

## Commands
| Command | Description |
| ------- | ----------- |
| fade <start> <end>   | Fade brightness from <start> to <end>. Values can be between 0 and 100 |
| fadec <start> <end> | Fade the color from <start> to <end>. Values can be between 0 and 255 |
| color <color> | Set color to <color>. Value can be between 0 and 255 |
| brightness <brightness> | Set the brightness to <brightness>. Value can be between 0 and 255 |


## Options
| Argument | Description | Default Value |
| -------- | ----------- | ------------- |
| --repeat-count | Number of times to repeat a command. Increasing this value could improve smoothness, but means it will take a longer time to perform fades | 1 |
| --pause  | Number of milliseconds to pause between sending commands. Decreasing this value below 100ms might mean some commands are not processed | 100 |
| --group  | Group number. Repeat the argument for each group you want to send a command to | n/a |
| --debug  | Turn on debug logging | false |
| --host   | The IP/hostname of the bridge. If omitted the bridge will be automatically scanned down | n/a |
| --port   | The port number of the bridge. | 8899 |
| --version | The version of the LimitlessLED protocol | 4 |


## Examples


Fade light group 1 to 0% brightness

```
python lled.py fade 100 0 --group 1
```

Set color to groups 1 and 2
```
python lled.py color 128 --group 1 --group 2
```
<commit_msg>Few changes to readme<commit_after># Mookfist LimitlessLED Controller v0.0.1

Intended as a simple wrapper around the LimitlessLED wifi protocol written in python.

Currently only supports version 4 (and possibly version 5) but is designed to support multiple versions.

There are some differences from the original LimitlessLED protocol:

1. Brightness is a percentage between 0 and 100. LimitlessLED protocol's brightness ranges from 2 to 27
2. Color is a value between 0 and 255 and starts and ends with the color red. LimitlesLED protocol's color starts from blue

## Installation

Download the code: https://github.com/mookfist/mookfist-limitlessled-controller/archive/master.zip

```
$ unzip master.zip
$ python setup.py install
$ python lled.py --help
```

## Commands
| Command | Description |
| ------- | ----------- |
| fade <start> <end>   | Fade brightness from <start> to <end>. Values can be between 0 and 100 |
| fadec <start> <end> | Fade the color from <start> to <end>. Values can be between 0 and 255 |
| color <color> | Set color to <color>. Value can be between 0 and 255 |
| brightness <brightness> | Set the brightness to <brightness>. Value can be between 0 and 255 |


## Options
| Argument | Description | Default Value |
| -------- | ----------- | ------------- |
| --repeat-count | Number of times to repeat a command. Increasing this value could improve smoothness, but means it will take a longer time to perform fades | 1 |
| --pause  | Number of milliseconds to pause between sending commands. Decreasing this value below 100ms might mean some commands are not processed | 100 |
| --group  | Group number. Repeat the argument for each group you want to send a command to | n/a |
| --debug  | Turn on debug logging | false |
| --host   | The IP/hostname of the bridge. If omitted the bridge will be automatically scanned down | n/a |
| --port   | The port number of the bridge. | 8899 |
| --version | The version of the LimitlessLED protocol | 4 |


## Examples


Fade light group 1 to 0% brightness

```
$ python lled.py fade 100 0 --group 1
```

Set color to groups 1 and 2
```
$ python lled.py color 128 --group 1 --group 2
```

Set brightness to 50% for group 3
```
$ python lled.py brightness 50 --group 3
```
{'fraction_non_alphanumeric': 0.10671217292377702, 'fraction_numerical': 0.028668941979522185, 'mean_word_length': 3.272108843537415, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1806158', 'n_tokens_mistral': 1369, 'n_tokens_neox': 1177, 'n_words': 610}