Metadata-Version: 2.1
Name: wol-api
Version: 1.0.3
Summary: Full template for python web projects with Docker, Github Actions, PyPI, and more.
Home-page: https://github.com/rix1337/WakeOnLAN-API
Author: rix1337
Author-email: 
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: bottle (==0.12.25)
Requires-Dist: wakeonlan (==3.1.0)

#  WakeOnLAN-API

[![PyPI version](https://badge.fury.io/py/wol-api.svg)](https://badge.fury.io/py/wol-api)
[![Github Sponsorship](https://img.shields.io/badge/support-me-red.svg)](https://github.com/users/rix1337/sponsorship)

A simple http interface to send wake on LAN commands. Just send a `POST` to `/FF:FF:FF:FF:FF:FF` where `FF:FF:FF:FF:FF:FF` is the desired MAC address of the device to be woken up.

# Setup

`pip install wol_api`

# Run

` wol_api --port=8080`

# Docker
```
docker run -d \
  --name="WakeOnLAN-API" \
  -e PORT=8080 \
  --network host \
  rix1337/docker-wol-api:latest
  ```

The desired port is set by environment variable `PORT` for a reason!
You must use `--network host`, else the magic packets will not be sent to the correct network.

