-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
# php-wol-redirector | ||
Sends a WOL packet to the specified host on website request and redirects to the hosted website after a timeout | ||
|
||
Sends a WOL packet to the specified host on website request and redirects to the hosted website after a timeout. | ||
|
||
## Installation | ||
|
||
1. Copy it to your hosting solution. | ||
2. Copy the `config.sample.json` to `config.json`. | ||
3. Edit the `config.json` to your liking. | ||
4. Replace the links that point to the devices that are WoL capable. | ||
> Hint: Use the `./encode_url.php` script to generate the parameters. | ||
## `config.json` definition | ||
|
||
| Key | Description | | ||
|------------|------------------------------------------------------------------------------| | ||
| `host.mac` | The MAC address of the adapter that you want to wake (get it with `ip addr`) | | ||
| `host.ip` | The IP address of the device you want to wake (only used for routing) | | ||
| `timeout` | The timeout between refreshes in the browser | |