cyrof/remotewakeserver

By cyrof

Updated 6 months ago

Wake-on-LAN HTTP server. Send WoL packets via HTTP. Deploy with Docker.

Image
Networking
Internet of things
0

1.7K

cyrof/remotewakeserver repository overview

Wake-on-LAN HTTP Server

This repository provides a simple Wake-on-LAN (WoL) HTTP server that allows you to send WoL magic packets via HTTP requests. It consists of two main scripts:

  • main.py: Sends WoL packets to wake up a target computer.
  • server.py: Handles HTTP GET and POST requests, triggering main.py on POST requests.

Key Features

  • HTTP Interface: Easily send WoL packets using HTTP requests.
  • Dockerized: Simplified deployment with Docker.
  • Environment Variables: Configure MAC address and broadcast IP via environment variables.

Usage

Docker Run
$ docker run -d -p 8000:8000 --env MAC="xx-xx-xx-xx-xx-xx" --env BROADCAST="xxx.xxx.255.255" cyrof/remotewakeserver:latest
Docker Compose
version: '3'
services: 
    wol-server:
        image: cyrof/remotewakeserver:latest
        ports:
          - "8000:8000"
        environment:
          MAC: "xx-xx-xx-xx-xx-xx"
          BROADCAST: "xxx.xxx.255.255"

HTTP Endpoints

  • GET /: Returns "Hello this is working".
  • POST /: Triggers main.py and returns "Post is working".

Full Documentation

For detailed instructions and full documentation, please visit the GitHub repository

Tag summary

Content type

Image

Digest

sha256:bf1fb5a92

Size

75.8 MB

Last updated

6 months ago

docker pull cyrof/remotewakeserver