pluskal / go-rest-wol

Simple HTTP Server with WebUI and REST API for Sending WoL Package over the Wire

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoLang HTTP Server for Remote WOL Requesting from an CSV Computer List

A HTTP Server who send Wake On Lan Package on an HTTP Request.

Simple Bootstrap UI for the easy Usage.

Screenshot

Simple REST API to let a Machine wake someone up

/api/computer/ - Returns a JSON Object

{
  "success":true,
  "message":"Succesfully Wakeup Computer Computer1 with Mac 64-07-2D-BB-BB-BF on Broadcast IP 192.168.10.254:9",
  "error":null
}

Command Line Arguments

Commandline Argument Example Description
--port --port 80 Define the Port where the Webserver will listen to (Default: 8080)
--file --file comp.csv Path to the CSV File containing the Computerlist

Computer List File CSV layout

Columns

<name of the computer>,<mac address of the computer>,<broadcast ip to send the magic packet>

Example

computers.csv

name,mac,ip
Computer1,64-07-2D-BB-BB-BF,192.168.10.254:9
Computer2,2D-F2-3D-06-17-00,192.168.10.254:9
Computer3,FF-B3-95-62-1C-DD,192.168.10.254:9

docker-compose.yml

version: '3'
services:
  wol:
    image: janpluskal/go-rest-wol
    ports:
      - "8080:8080"
    environment:
      - "WOLFILE=/config/computer.csv"
    volumes:
      - "./config:/config"

Credits

Full credits go to daBONDi

About

Simple HTTP Server with WebUI and REST API for Sending WoL Package over the Wire

License:MIT License


Languages

Language:Go 64.3%Language:HTML 31.2%Language:Dockerfile 4.1%Language:Batchfile 0.5%