Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request WOL (Wake On Lan) #159

Open
KillrOfLife opened this issue Jun 7, 2023 · 4 comments
Open

Feature Request WOL (Wake On Lan) #159

KillrOfLife opened this issue Jun 7, 2023 · 4 comments
Labels
wontfix This will not be worked on

Comments

@KillrOfLife
Copy link

Send a Wake On Lan packet to a predefined device. maybe add the possibility of setting a minimum wait time.

@ravngr
Copy link

ravngr commented Jun 29, 2023

While I agree this would be a nice feature (that I would also find useful), I think this is non-trivial to implement. WOL packets are sent via the network broadcast address and are implicitly link-local. Default docker networks are created in bridge mode, creating their own LAN and any WOL packet from sablier wouldn't be forwarded to other hosts on separate networks (i.e. your LAN). I think there are some workarounds, but am not sure on their reliability. The alternative is running sablier or traefik in host mode, which is probably a bad idea if exposed to the internet.

A better solution might be to have the capability to send an arbitrary GET request to another host running a microservice that can fire off the WOL packet. You could then trigger other automations too via webhooks in home-assistant, node-red, whatever...

@webysther
Copy link

WOL is layer 3 and this solution is more layer 7, maybe using with another services that support WOL like, UpSnap, added a rule on midleware to call the api. But this sounds out of scope.

@acouvreur acouvreur added the wontfix This will not be worked on label Oct 10, 2023
@D-Konopka
Copy link

I would be also interested in that feature, but if its out of scope then adding ability to execute shell command on wake would fix the problem. It should be pretty easy to implement

@acouvreur
Copy link
Owner

While the API is layer 7, the calls it can make are not bound to any layer.
Please feel free to create a WakeOnLAN provider.
Open a draft PR and we can discuss about it :)

I think it's a very neat feature actually !

@acouvreur acouvreur reopened this Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants