Connection to radicale server successfull
This commit is contained in:
parent
7c77c50d77
commit
e7d81f4811
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,7 @@ TIMETABLE = [
|
|||
('16:45','16:45'),
|
||||
('17:45','17:45'),
|
||||
]
|
||||
DAVURL = "https://cal.edgarpierre.fr"
|
||||
|
||||
|
||||
class GoogleSheetsCalParser(HTMLParser):
|
||||
|
@ -105,3 +106,10 @@ calParser = GoogleSheetsCalParser()
|
|||
calParser.feed(r.text)
|
||||
|
||||
# Pushing events to caldav server
|
||||
import priv
|
||||
|
||||
client = caldav.DAVClient(url=DAVURL, username=priv.USERNAME,
|
||||
password=priv.PASSWORD)
|
||||
pr = client.principal()
|
||||
calendars = pr.calendars()
|
||||
print(calendars)
|
||||
|
|
Reference in a new issue