Skip to content

Commit

Permalink
Further clarifications
Browse files Browse the repository at this point in the history
  • Loading branch information
rdnt committed Aug 13, 2019
1 parent bb3d1e0 commit 18c1b3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ When the connection is established, the client will stream data to the server vi

1. Download the *client* binary for your operating system from [here](https://github.com/SHT/Ambilight/releases/latest/).
2. Create a `run.bat` file on the same folder as the binary.
3. Paste the following on the `run.bat` file, replacing `IP`, `PORT`, `LEDS_COUNT` and `FRAMERATE` accordingly.
3. Paste the following on the `run.bat` file, replacing `IP`, `PORT`, `LEDS_COUNT` and `FRAMERATE` accordingly. `IP` and `PORT` are of the controller's. Framerate is limited to 144 frames per second.

```
client.exe IP PORT LEDS_COUNT FRAMERATE
client.exe IP PORT LEDS_COUNT FRAMERATE
```

4. Double click the `run.bat` file to launch the client. It will autoconnect to the server once the server is online.
Expand All @@ -57,20 +57,20 @@ When the connection is established, the client will stream data to the server vi
The arguments `PIN` and `PORT` are optional and default to `18` and `4197` respectively.

```
#!/bin/bash
tmux new-session -d -s ambilight 'cd /AMBILIGHT_FOLDER && ./server LEDS_COUNT BRIGHTNESS PIN PORT'
#!/bin/bash
tmux new-session -d -s ambilight 'cd /AMBILIGHT_FOLDER && ./server LEDS_COUNT BRIGHTNESS PIN PORT'
```

5. (optional) Start the server at boot: Edit the `/etc/rc.local` file, adding the following before the `exit 0` line, replacing `AMBILIGHT_FOLDER` with the folder where the ambilight server binary resides.

```
/AMBILIGHT_FOLDER/run.sh
/AMBILIGHT_FOLDER/run.sh
```

6. Execute the run.sh file to start the Ambilight server (or reboot if you configured start at boot):

```
./run.sh
./run.sh
```

## Modes
Expand Down

0 comments on commit 18c1b3d

Please sign in to comment.