dabondi / go-rest-wol Goto Github PK
View Code? Open in Web Editor NEWSimple HTTP Server with WebUI and REST API for Sending WoL Package over the Wire
License: MIT License
Simple HTTP Server with WebUI and REST API for Sending WoL Package over the Wire
License: MIT License
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.
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
Can you add this to docker hub?
works for a few minutes and then doesn't work at all
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?
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.
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.
The descriptions in the documentation in Enviroment Variables section are mixed up.
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 :)
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
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
Hi,
the variable WOLHTTPPORT does not work. I have set the variable at Portainer under ENV but it the container always starts with :8080
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.
Hi! It would be nice to have a a functionality to Add/Modify/delete hosts records via API.
Excellent app I really liked!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.