diff --git a/backend/skills/cal.py b/backend/skills/cal.py index 8318789..eb629fd 100644 --- a/backend/skills/cal.py +++ b/backend/skills/cal.py @@ -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 diff --git a/backend/skills/reminders.py b/backend/skills/reminders.py index 650b4ba..42fba88 100644 --- a/backend/skills/reminders.py +++ b/backend/skills/reminders.py @@ -16,4 +16,33 @@ from skills.skill import Skill class Reminders(Skill): # ntfy.sh notification? def __init__(self): - self.trigger_phrase = "reminders" \ No newline at end of file + 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 \ No newline at end of file