I hate to remember changing my car oil.
Too many minor things to remember in life already!
So I decided to build a simple Telegram bot that remembers changing the oil for me.
I want to share my thought process before actually coding it.
I want this to be as simple as possible and free as possible, practically costing $0 to maintain.
Oilly will be his name, with a headline that says:
"Oilly will help you preserve your car engine by reminding you to change the oil, so you have one less thing to remember".
Oilly will interact with the user ask them:
- Current mileage
- Roughly estimate the last time the oil has been changed.
- The mileage in the last time oil changed.
- What is the type of the last changed oil 5k, 10k, 15k?
- How frequent they change the oil 3 mo, 6 mo?
- Have they changed the oil filter in the last oil change?
Bot will respond with "Thanks, based on the information you gave me I'll notify you!".
How to calculate the oil change (research)
Upper limit 10,000 KM or 6 months whichever comes first.
- every 6 months
- every 3 months
- every 5000 km or 3 months (recommended)
User input example (my real usage):
- current mileage: 25,258
- last time changed oil: 2 months ago
- mileage last before change: 21,201
- Oil type: 5k
- Change oil frequency: every 3 months
- have you changed the oil filter: No
Simple Process: First state the facts
- Calculate how long the user will take to reach 5k mileage:
Ideal mileage usage 5k in 3 months.
Current mileage - mileage last before change => 25,258 - 21,201 = 4,056 in 2 months.
Avg mileage per day => 4056 /60 = 67.6 KM
Mileages left in distance unit => 5000 - 4,056 = 944 KM
Mileage left in time unit => 1 months
Change Oil filter last time: NO, so this time change it.
My approach:
Easiest way to approach this is by sending notification after 1 month.
Or Mileage left (944) / avg usage (67.6) = 14 days.
Maybe sending the user notification after 14 days that says if you reach (25,258 + 944 = 26,202 KM) it's time to change.
If the user says no, fall back to 1 month change.
I'm trying to get some hold over this process, I would appreciate your take on this whole thing.
Top comments (3)
Part3 is out: dev.to/nagi/part-3-im-building-a-t...
Part2: dev.to/nagi/part-2-im-building-a-t...
I hate remembering to change my car oil, so Iβm building a Telegram bot called Oilly. Itβll ask for basic info like your current mileage, last oil change details, and notify you based on time or distance.
Check out more about car services here: exoticautoservices.ae/car-leak-rep...