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 Webhooks #169

Open
mweichert opened this issue Sep 26, 2023 · 1 comment
Open

Add Webhooks #169

mweichert opened this issue Sep 26, 2023 · 1 comment
Labels
enhancement New feature or request P3 Priority 3 (low)

Comments

@mweichert
Copy link

Is your feature request related to a problem? Please describe.

I'm using Just Another Workout Timer for as much as I can:

  • Morning Routines
  • Workouts
  • Pomodoro Sessions
  • And more...

I'd like to be able to do the following:

  • Mute distractions
  • Log completed routines into something like Obsidian, Notion, Airtable, etc.

Describe the solution you'd like
Provide a UI for inputting webhooks at the application level. A user could add one or more urls that would receive events formatted in JSON based on what happens in JAWT.

Some events would include:

  • When a "workout" starts
  • When an interval starts
  • When an interval ends
  • When a workout ends

Perhaps later we could add:

  • When someone pauses a workout
  • When someone clicks back or forward during a workout

In the event, there should be properties:

  • Event Type
  • Workout Name
  • Set #
  • Interval Name

Additional context

Event Filtering
Perhaps users would like the ability to configure what events a particular url would receive. This would be great to have but not necessary to begin with, as filtering could always be done at the receiving end.

Global Settings vs Workout-specific Settings
Rather than have these settings global, you could have them configurable per workout. But I think that could come later - have global settings for all workouts, and then later, if requested by many, add the ability to configure workout-level webhooks that override the global settings.

@mweichert mweichert added the enhancement New feature or request label Sep 26, 2023
@mweichert
Copy link
Author

Great work on this app. I'm a daily user and wouldn't want to live without it! Thanks for making it open source. Although I'm a developer, I have zero experience building mobile apps. If you could guide me on how to add these, I'd be happy to create a PR and give it a shot.

@blockbasti blockbasti added the P3 Priority 3 (low) label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P3 Priority 3 (low)
Projects
None yet
Development

No branches or pull requests

2 participants