blockbasti / just_another_workout_timer

A simple timer for your workouts, built with Flutter!
MIT License
130 stars 23 forks source link

Calendar integration #93

Closed MaxSchlueter closed 2 years ago

MaxSchlueter commented 2 years ago

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

Describe the solution you'd like I would like to have a button besides a workout that allows me to schedule it in my calendar for a certain time.

Additional context I like this feature a lot in the Transportr app which allows one to add an itinerary to a calendar.

Also, if you give me some pointers where to change the code I would be happy to implement this new feature.

blockbasti commented 2 years ago

Hey, thanks for the idea.

I think an integration directly in the app via notifications would be better in the long run. But for now, a calendar integration would be alright. Once the creation of a schedule is in place, creating the notifications shouldn't be that hard.

A good start would be building a simple UI for selecting the schedule (weekdays+fixed time or different times per day) and saving that schedule in the workout file itself. I'm not decided whether this should be integrated in the workout builder or as a dialog accessible from the home screen. Either version is fine by me. After that is in place, we can focus on creating calendar entries (or notifications) and updating them when changing the schedule.

If you need some more pointers, feel free to contact me.

lamyergeier commented 2 years ago

I too think that having reminders and having events are important to form healthy habits.

MaxSchlueter commented 2 years ago

Alright, thank you for the pointers. I was actually thinking of a calendar symbol next to a workout in the home screen that adds a single event to the calendar. The time can then be adapted in the calendar app and repeaters can also be set up, it's actually quite flexible. Would that be OK as well?

blockbasti commented 2 years ago

But then, what is the improvement over just manually creating a calendar entry? The time savings of having the name of the reminder prefilled is marginal.

MaxSchlueter commented 2 years ago

That's true. For me, it would not only be the name of the event being prefilled, but also the date and time duration. I also use my calendar as a kind of log to see how consistent I have been. Having a button would reduce the friction quite a bit of adding such a workout event to my calendar.

blockbasti commented 2 years ago

This sounds more like #89. Maybe there could be an option to log workouts in the calendar aswell as in a log file.

lamyergeier commented 2 years ago

@blockbasti it is different in the respect : one would create calender events to plan an activity, which one might not do it or skip it, without deleting calendar Events.

But logging is done by the software only when the reps and sets are actually done.

MaxSchlueter commented 2 years ago

I'll close this in favor of #89 then. As for reminders it shouldn't be too much trouble to manually create calendar events.