GithubHelp home page GithubHelp logo

dabondi / go-rest-wol Goto Github PK

View Code? Open in Web Editor NEW
125.0 8.0 37.0 59 KB

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

License: MIT License

Go 64.98% HTML 30.08% Dockerfile 4.94%
rest-wol docker wake wol golang wakeonlan

go-rest-wol's People

Contributors

aenduweber avatar bjakobs avatar dabondi avatar dampudia avatar mattheys avatar rdch106 avatar stefan-golinschi avatar vincentcox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-rest-wol's Issues

Can't get work on Docker

Really thank you for your work!

I'm trying to deploy your app into docker, with no success, well it was deployed successfully but can't get work. It seems that no magic packet was send.
Don't know it the problem is inside container or I have to configure some parameters in the host machine.
I'm using 172.17.24.255:9 as broadcast IP, and tested with 172.17.24.254:9 too, none works.

Hope can help me!
Regards

Installation with portainer

Hi,

I would like to install this docker under Portainer, however, I don't understand how to choose the computer.csv file directory.

For other docker, we need to use /config, and set the path to our server, but with this docker image, it doesn't work. I also tried /app, doesn't work.

I also tried to install it with docker command lines, but I can't find the directory of computer.csv on my disk...

Could you tell how can we choose the file directory, or where the computer.csv file is stored to be able to edit it with my computers name ?

Thanks

not working

works for a few minutes and then doesn't work at all

Use go mod + auth + encryption + unittests

I would like to make som improvements do this project like authentication, persistence encryption and also properly import stuff from https://github.com/sabhiram/go-wol. It would be great if you were using go mods as it makes it much easier to import other libs.

I would be happy to make a PR for this. Would you be ok with this?

I'm happy to start with a PR to shuffle things around and make it easier to use modules. Then I can raise other PRs for the extra features.

Ping @daBONDi

Bad shell arguments initialization

The file main.go overwrites the arguments with no checks:

        httpPort := DefaultHTTPPort
	computerFilePath := DefaultComputerFilePath

	// Start Processing Shell Arguments or use Default Values defined i const.go
	httpPort, computerFilePath = processShellArgs()

	// Process Environment Variables
	httpPort, computerFilePath = processEnvVars()

The result of the evaluation o the piece of code is that the environment variables are used or default values are used. The shell arguments always will be overwritten.

Documentation issue

The descriptions in the documentation in Enviroment Variables section are mixed up.

Changes in the WOLFILE are not detected

If you update the WOLFILE, the webinterface does not get updated. It would be nice if that either happens periodically or, preferred, "on change" of this file.

Readme typo: false docker image

Hi,
the Readme is wrong and has a typo.

It says: Docker Image: dabondi/get-rest-wol
Correct would be: Docker Image: dabondi/go-rest-wol

Hope somebody will fix that :)

Port from environment

Can you add an option to set http port environment variable? I use it in docker but I have to set 'network_mode: host'. But I use 8080 for an other service.

Remote shutdown?

Hi!! Love your work! It works flawlessly!!

I know this request is not really an issue, but can we do something to remote shutdown also? I didn't find a nice solution and I think that wol doesn't support shutdown, but I've not found a real solution without installing some third party software on my windows pc.
Do you have any advice?

Docker container

Hello,

Is the docker container already tested? I see WIP (Work In Progress), but I am not sure if it's already tested or not.

image

Are you trying to mount a directory onto a file (or vice-versa)?

Got an error while executing command:
docker run -p 6969:8080 -v $(pwd)/externall-file-on-host.csv:/app/computer.csv dabondi/go-rest-wol
Error:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/etc/docker/wol/go-rest-wol/externall-file-on-host.csv\" to rootfs \"/var/lib/docker/overlay2/362ba73c41a6dbeec788a61feaf4eea29a9f34391d21808d3d0415bd6f88d1b2/merged\" at \"/var/lib/docker/overlay2/362ba73c41a6dbeec788a61feaf4eea29a9f34391d21808d3d0415bd6f88d1b2/merged/app/computer.csv\" caused \"not a directory\""": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.

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.