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

Add support for recurring events #2

Open
mre opened this issue Oct 3, 2022 · 2 comments
Open

Add support for recurring events #2

mre opened this issue Oct 3, 2022 · 2 comments

Comments

@mre
Copy link
Owner

mre commented Oct 3, 2022

  • Daily
  • Weekly
  • Monthly
  • Yearly

I'm open for suggestions for the URL syntax.

@Vinfall
Copy link

Vinfall commented Oct 7, 2022

Just some random thoughts on the format:

# More like natural language
# Repeat every month till forever, case-sensitive
curl -L 'https://zerocal.shuttleapp.rs?start=2022-11-04+20:00&duration=3h&title=Birthday&description=paaarty&recurrence=MONTHLY'
# More programming-friendly
# Repeat every week & for only 4 times, interval is counted in minute
curl -L 'https://zerocal.shuttleapp.rs?start=2022-11-04+20:00&duration=3h&title=Birthday&description=paaarty&repeat=4&interval=10080'

I guess these two can work together to make the format more robust. Or maybe just use something like repeat=0 for one-time event and repeat=FOREVER/repeat=-1 for events recurring forever.

@mre
Copy link
Owner Author

mre commented Oct 9, 2022

I like both. 😉 A mix of both might be nice:

# Repeat every week & for only 4 times, interval is counted in minute
curl -L 'https://zerocal.shuttleapp.rs?start=2022-11-04+20:00&duration=3h&title=Birthday&description=paaarty&repeat=4&interval=1w'

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