Connection to radicale server successfull

This commit is contained in:
Edgar P. Burkhart 2020-09-20 22:16:34 +02:00
parent 7c77c50d77
commit e7d81f4811
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
1 changed files with 8 additions and 0 deletions

View File

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