Open Silvanfelix opened 3 days ago
You can try setting the DEBUG=1
value in env.sh and it should output some more information about why it failed. You can post that log here too, but if there's any personal info please XXXXXX it out.
This is the error log from the Degub file run.log I don't really understand what's the problem
Not much different then.
When you ran the .venv/bin/python3 outlook_util.py
did it show that calendar ID with its included events?
Another thing you could try, in the calendar_providers/outlook.py file, on line 106, add a logging.info(events_data) just before the for loop. That is
logging.info(events_data) # <--- add this line
for event in events_data["value"]:
...
Then see what it outputs when you rerun and look at the log file
This is what I'm getting in the log file if I add logging.info(events_data)
Could it be, that it won't work, because it is the calendar I synchronized with my iPhone, so the Outlook-Calendar-ID is built different? So is it even somehow possible to get the icloud calendar on to the screen?
I don't know about iphone calendars, but I am able to synchronize Google calendars into outlook. From Google Calendar I get an ICS url, and then in Outlook Calendar I add a new calendar and paste that ICS URL. The calendar syncs then I'm able to use it in the waveshare display.
Your other option is to use the ICS URL directly if you can find one for your calendar, see this section: https://github.com/mendhak/waveshare-epaper-display?tab=readme-ov-file#ics-calendar
2024-11-17:23:15:58 INFO [screen-calendar-get.py:95] Fetching ics Calendar Events
2024-11-17:23:15:58 DEBUG [utility.py:80] is_stale(/home/Silvan/waveshare-epaper-display/cache_ics.pickle) - True
2024-11-17:23:15:58 DEBUG [ics.py:26] Pickle is stale, fetching ICS Calendar
Traceback (most recent call last):
File "/home/Silvan/waveshare-epaper-display/screen-calendar-get.py", line 119, in
KeyError: 'webcal'
---------------------------------------
I now insearted the URL from the calendar into to ICS URL section
The only error I get is webcal
Is this because the URL starts with this?
webcal://p159-caldav.icloud.com/published/2/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.ics
Because when I enter the URL into the browser it works and if I change the webcal with https: it won't work
Yes you are right, it needs to be an https://
URL so that it can be fetched by the code. Maybe hunt around to see if they provide some https URL for the calendars?
You might have to search discussion threads if it isn't obvious... not sure how helpful this one is: https://discussions.apple.com/thread/5950029?sortBy=rank
Hi it's me agian
I'm trying to link my calendar to the display.
I have two calendar-IDs, but one won't work. Do you know why? The first one works, but I want the other calendar to be show, but this ID won't work.
AQMkADAwATM3ZmYAZS0yYjg5LWNjAGY5LTAwAi0wMAoARgAAAzL3LrFhcgHAOAXLXNoa4lAvW32BxyY3qUAAAIBBgAAAOAXLXNoa4lAvW32BxyY3qUAAAINSwAAAA==
AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEGAAAiIsqMbYjsT5e-T7KzowPTAAABuC35AAA=
This is the error:
ADD CALENDAR INFO
2024-11-15:12:00:23 INFO [screen-calendar-get.py:88] Fetching Outlook Calendar Events Traceback (most recent call last): File "/home/Silvan/waveshare-epaper-display/screen-calendar-get.py", line 119, in
main()
File "/home/Silvan/waveshare-epaper-display/screen-calendar-get.py", line 101, in main
calendar_events = provider.get_calendar_events()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/Silvan/waveshare-epaper-display/calendar_providers/outlook.py", line 107, in get_calendar_events
for event in events_data["value"]: