reading material

This commit is contained in:
samerbam 2023-09-05 11:50:38 -04:00
parent aeaba9bcc5
commit 8b60202f35
9 changed files with 42 additions and 3 deletions

View File

@ -8,6 +8,7 @@
## Skills
- [ ] Translations
- [ ] Alarms
- [ ] Calendar
- [ ] Gmail

View File

@ -0,0 +1 @@
#using FastAPI because I used that for ThermalTodos with auth0 auth and dont want to relearn auth0

View File

@ -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):

View File

@ -1 +1,12 @@
# TODO: Handle all authentication stuff for verifying client is who we think it is in here.
# 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
"""

View File

@ -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):

View File

@ -1 +1,2 @@
ntfy_url="jgjaifnfi"
ntfy_url="jgjaifnfi"
deepl_api_key=""

View File

@ -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):

View File

@ -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"

View File

@ -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: