diff --git a/README.md b/README.md index dc851b8..6eed02f 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ ## Skills +- [ ] Translations - [ ] Alarms - [ ] Calendar - [ ] Gmail diff --git a/backend/api.py b/backend/api.py index e69de29..8408683 100644 --- a/backend/api.py +++ b/backend/api.py @@ -0,0 +1 @@ +#using FastAPI because I used that for ThermalTodos with auth0 auth and dont want to relearn auth0 \ No newline at end of file diff --git a/backend/skills/alarms.py b/backend/skills/alarms.py index 94bf9d1..cfcf8e5 100644 --- a/backend/skills/alarms.py +++ b/backend/skills/alarms.py @@ -1,4 +1,10 @@ +""" +Basically going to be the same as timers.py + +Maybe we just call timers.py from here? + +""" class Alarms: def __init__(self): diff --git a/backend/skills/auth.py b/backend/skills/auth.py index b2a43db..5202aee 100644 --- a/backend/skills/auth.py +++ b/backend/skills/auth.py @@ -1 +1,12 @@ -# TODO: Handle all authentication stuff for verifying client is who we think it is in here. \ No newline at end of file +# TODO: Handle all authentication stuff for verifying client is who we think it is in here. + +""" +Reading material for this: + +https://auth0.com/blog/using-m2m-authorization/ +https://git.imsam.ca/sam/ThermalTodos/src/branch/main/application/main.py (FastAPI + Auth0) +(previous link is based on this) https://auth0.com/blog/build-and-secure-fastapi-server-with-auth0/ + +THIS IS GOING TO BE AN ABSOLUTE PAIN TO WORK ON, I SPENT LITERALLY ABOUT 8 HOURS JUST ON THERMALTODOS AUTH +I HOPE THIS ISNT AS PAINFUL +""" \ No newline at end of file diff --git a/backend/skills/cal.py b/backend/skills/cal.py index 36de8f9..970ebde 100644 --- a/backend/skills/cal.py +++ b/backend/skills/cal.py @@ -1,4 +1,10 @@ +""" +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) +""" class Cal: def __init__(self): diff --git a/backend/skills/gmail.py b/backend/skills/gmail.py index 89ea886..f63d2d0 100644 --- a/backend/skills/gmail.py +++ b/backend/skills/gmail.py @@ -1,4 +1,10 @@ +""" +Reading Material: + +https://developers.google.com/gmail/api/quickstart/python +https://git.imsam.ca/sam/ThermalTodos/src/branch/main/application/sync_calendar.py (for autherizing user) +""" class Gmail: def __init__(self): diff --git a/backend/skills/reminders.py b/backend/skills/reminders.py index 5d1d421..b040d2a 100644 --- a/backend/skills/reminders.py +++ b/backend/skills/reminders.py @@ -1,5 +1,12 @@ +""" +Using notification logic from timers.py to notify at specified time +have web app to access list of reminders? (notion api?) + +look into location based reminders and see if thats possible (maybe ntfy.sh supports this?) +""" + class Reminders: # ntfy.sh notification? def __init__(self): self.trigger_phrase = "reminders" \ No newline at end of file diff --git a/backend/skills/timers.py b/backend/skills/timers.py index eb6117f..f2d6f36 100644 --- a/backend/skills/timers.py +++ b/backend/skills/timers.py @@ -1,6 +1,6 @@ import requests -if __name__ == "__main__": # Handle +if __name__ == "__main__": # Handle running this script directly vs as a project from config import ntfy_url from utility import parsetime2 else: