Gerben321 / bike-care-tracker

Issue/Suggestion tracker for Bike Care app
3 stars 0 forks source link

Service schedule based on time #7

Closed Gerben321 closed 2 months ago

Gerben321 commented 3 months ago

Ability to make service schedule trigger over elapsed time, not just riding time (e.g. Tyre sealant needs to be replaced/checked every 3 months regardless of how many hours you’ve been riding).

Konstantin-Levin commented 3 months ago

I would like to be able to set the service schedule to repeat every 3 months or 90 days for example from the start date of the latest usage period.

User would then receive a notification and it would be marked as overdue. When the service has been recorded, the schedule should then reset and begin again for another 3 months. Thanks

Gerben321 commented 2 months ago

I woud like to add that I am also planning to do a ride count interval type of schedule. So for example every single ride to clean your suspension fork for example. Or every 10 rides to check something else.

The time interval schedule will be in days I think. So set to 90 days for ~3 months like you said. Maybe I can get a selector for days/weeks/months or something. Have to investigate.

Gerben321 commented 2 months ago

Here's a preview about the ride interval schedule: image

It works like this: It will take the creation date of the schedule, and count all rides for that bike (which the component of the schedule is connected at). It then displays the data. After you create a new service log, it will take that date and count form there. Etc.

Display is like tis on the service schedule table: image

Gerben321 commented 2 months ago

Here are some screenshots regarding time-based service interval: Table: image Hours left: image The remaining text will either show x hours left, x days left, or x months and x days left, depending on what interval you have selected. image Months left: image

Next up is to build some script that checks for overdue time interval schedules. I think it would be fine if this runs maybe every hour. Unless you guys think getting the notification about overdue service is critical and should be checked more frequently, or maybe less?

Here is how you will be able to set the schedule: image

Konstantin-Levin commented 2 months ago

Looking good so far.

Unless you guys think getting the notification about overdue service is critical and should be checked more frequently, or maybe less?

I think a check every hour sounds reasonable

Gerben321 commented 2 months ago

This is now added! Let me know how it works for you.