Reminders boilerplate and comments

main
samerbam 1 year ago
parent 4e9b212077
commit df6f072158

@ -4,6 +4,12 @@ Reading Material:
https://developers.google.com/calendar/api/quickstart/python
https://git.imsam.ca/sam/ThermalTodos/src/branch/main/application/sync_calendar.py (readonly application of previous link)
Choice:
Google Calendar or iCloud or both
Both would be more work, but would allow for more flexibility
"""
from skills.skill import Skill

@ -17,3 +17,32 @@ from skills.skill import Skill
class Reminders(Skill): # ntfy.sh notification?
def __init__(self):
self.trigger_phrase = "reminders"
def get_reminders(self):
pass
def new_reminder(self, query):
pass
# Call this to add new reminder, this calls
# _add_reminder, parse_reminder_query, and _parse_location or _parse_time if needed
def _add_reminder(self, text, time=None, location=None, leave=False):
"""
Text : reminder text
Time : Time/date to remind
Location : Location to remind
Leave : true/false, if location is not None, this decides if the reminder is upon arrival or departure of location
"""
pass
def parse_reminder_query(self, query):
pass
#TODO: Take sentence like "remind me at 5pm tomorrow to walk the dog" and parse out 5pm tomorrow and walk the dog
#TODO: Or "remind me when I leave my current location to not forget my keys" and parse out "leave current location" and "not forget my keys"
def _parse_location(self, location_text):
pass #Convert verbal location into standardized format
def _parse_time(self, time_text):
pass #Convert time into standardized format
Loading…
Cancel
Save