Skip to content

Feature: Scheduled Wakeup #3

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

Open
JordanWre opened this issue Jan 21, 2025 · 2 comments
Open

Feature: Scheduled Wakeup #3

JordanWre opened this issue Jan 21, 2025 · 2 comments

Comments

@JordanWre
Copy link

It would be useful to be able to set a Wakeup schedule. Time of day, day of week etc. My specific use case for this is a weekly backup to a NAS that doesn't need to be on all the time.

@Trugamr
Copy link
Owner

Trugamr commented Feb 28, 2025

I'll explore this and see how I can add it without making things too complex. I want to keep the scope of wol simple and focused.

In the meantime, you might want to check out UpSnap. I came across it after starting this project, and it already supports cron scheduling and a lot more.

@JordanWre
Copy link
Author

I am actually working on trying to add this feature right now. I am using "github.com/robfig/cron/v3" cron library for go. My plan is to add a check when wol serve is started to see if there are any schedules listed in the config file and if so start it with the library. Seems like it can be a pretty simple change that wont affect anyone that doesn't add anything to the optional schedule parameter in the config.

That said, this is my first time working with go so its taking me some time to get everything figured out.

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