Giter Site home page Giter Site logo

wrench12435678 / wolweb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alchemistake/wolweb

0.0 0.0 0.0 83 KB

Web interface for sending Wake-on-lan (magic packet). An HTTP server built using GoLang and uses Bootstrap for UI.

License: GNU General Public License v3.0

Dockerfile 4.17% Go 49.28% HTML 14.32% CSS 1.24% JavaScript 30.99%

wolweb's Introduction

made-with-Go proc-arch os

Web interface for sending Wake-on-lan (magic packet)

A GoLang based HTTP server which will send a Wake-on-lan package (magic packet) on local network. The request can be send using web interface or directly using HTTP request with mapped device name in the URL. You can bookmark direct link to device(s) on your browsers to wake them using single HTTP call for ease of access.

This is a fork of wolweb for Kubernetes

  • Removes Vdir Support because I want it to run at index all times.
  • Shuffled files around for easier kubernetes setup.
  • Does not fail when config.json and devices.json files does not exists.

Will Do

  • Fix UI Bug on Editing an entry.

Bootstrap UI with JS Grid for editing data

Screenshot

The UI features CRUD operation implemented using js-grid.com plugin.

Wake-up directly using HTTP Request

/wake/<hostname> - Returns a JSON object

{
  "success":true,
  "message":"Sent magic packet to device Server with Mac 34:E6:D7:33:12:71 on Broadcast IP 192.168.1.255:9",
  "error":null
}

Configure the app

The application will use the following default values if they are not explicitly configured as explained in sections below.

Config Description Default Variable Name
Port Define the port on which the webserver will listen 8089 WOLWEBPORT

You can override the default application configuration by setting environment variables.

Using with Docker Container

This project includes Dockerfile (based on Alpine) and docker-compose.yml files which you can use to build the image for your platform and run it using the docker compose file.

Build Docker Image:

docker build -t wolweb .

Run Docker Image:

docker-compose up -d

I could not get this to run using Docker's bridged network. The only way I was able to make it work was to use host network for the docker container. See this docker/for-linux#637 for details.

Build on Windows

(Original Author not me) I use VS Code with Go extension. To build this project on windows

go build -o wolweb.exe .

Build for ASUS Routers (ARM v5)

(Original Author not me) I initially thought of running this application on my router, so I needed to build the application without having to install build tool on my router. I use the following PowerShell one liner to build targeting the ARM v5 platform on my Windows machine with VS Code:

 $Env:GOOS = "linux"; $Env:GOARCH = "arm"; $Env:GOARM = "5"; go build -o wolweb .

Copy the file over to router and make it executable.

chmod +x wolweb

To see detailed instructions on how to run this application as service on ASUS router with custom firmware asuswrt-merlin see this Wiki guide

Credits

Thank you to David Baumann's project https://github.com/dabondi/go-rest-wol for providing the framework which I modified a little to work within constraints of environment.

wolweb's People

Contributors

sameerdhoot avatar wrench12435678 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.