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

Schedule feature request #9

Open
alexanderjacuna opened this issue Aug 2, 2022 · 1 comment
Open

Schedule feature request #9

alexanderjacuna opened this issue Aug 2, 2022 · 1 comment

Comments

@alexanderjacuna
Copy link

Requesting a schedule feature so that devices can be woke up daily at XX:XX time.

@djismgaming
Copy link

djismgaming commented Jan 20, 2024

I think that would be better resolved with something like etherwake and a cron job to execute it when you need it. You can also write a little script that runs multiple etherwake commands to wake multiple machines and do a cron job for the script.

Something like:

#!/bin/bash

# MAC addresses of the devices you want to wake up
device1_mac="00:11:22:33:44:55"
device2_mac="66:77:88:99:AA:BB"

# Function to wake up a device
wake_device() {
    mac_address=$1
    etherwake -i eth0 $mac_address
}

# Wake up the first device
wake_device $device1_mac

# Wait for a moment between waking up devices
sleep 2

# Wake up the second device
wake_device $device2_mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants