sameerdhoot / wolweb

Web interface for sending Wake-on-lan (magic packet). An HTTP server built using GoLang and uses Bootstrap for UI.
GNU General Public License v3.0
288 stars 74 forks source link

Little Idea #21

Closed nebukadhezer closed 1 year ago

nebukadhezer commented 1 year ago

First off thanks for this! Cool little timesaver.

I am not much into go at all but I was wondering if it would be easily doable to extend the machines, with a simple timer. So one can specify in the json file a boot up time per machine (sure this is just a guess) Once wakeup has been hit the timer counts down... maybe it can even play a sound ... I am having windows machines and I sometimes just miss them as they go to sleep again. If this is not matching your idea of the tool just ignore my proposition :-)

sameerdhoot commented 1 year ago

It is a good idea but unfortunately, I don't have the bandwidth to do this now. I am willing to merge a PR if you are able to put together a working solution.

sameerdhoot commented 1 year ago

Actually, this can be done using cron job in Linux or as PowerShell script in windows running in task scheduler. All you have to do is send a web request at a scheduled time. On linux using curl and in windows use Invoke-WebRequest.

I highly suggest that you have a docker container running crontab-ui

I dont think it is useful to have a timer funtion here to keep things simple.