eInkCalendar icon indicating copy to clipboard operation
eInkCalendar copied to clipboard

CALDAV without SSL / run on a different display?

Open hansu opened this issue 1 year ago • 8 comments

I tried to run you application with a 5in83b_V2 display. So I adapted the few lines (see https://github.com/hansu/eInkCalendar/commit/309d41103ad1a059bc407b6f7bb0d4c5ba7c9a60).

As I am running the CalDAV server on the local network I get a SSLError which complains about the certificate (what was to be expected).

So I tried http:// instead in the CALDAV_CONTACT_URL which makes the application run without errors or warnings.

My question at this point - does your application display something even with no connection or no data from the calendar?

And can you please clarify why I need I WEBDAV_CALENDAR_URL and I CALDAV_CONTACT_URL ? THanks!

hansu avatar Dec 10 '23 14:12 hansu

Hi, If ther's no connection to the calendar (or none configured), the display will show "the surrounding". So imagine the first picture in the readme without the calendar-entries in the middle (so month, date, month-progress, icons, .... remain).

WEBDAV ist used to get the calendar-entries, CALDAV for birthday-notifications (the bottom left icon will show up, as well as the name of the person)

13Bytes avatar Dec 10 '23 15:12 13Bytes

Hi, thanks for your quick response! So then it's probably more to do to run it on a smaller display (geometry adaption etc.) I assume. Can you point me to the location which needs adaption for my case?

hansu avatar Dec 10 '23 15:12 hansu

I would get started with printing an arbitrary picture on the screen. You can take a look at my show_content function or the documentation of the Waveshare-library. It basically just prints a bitmap. If you get this woking, you can come back to my code. (It basically just autmatically creates this image which gets printed. You can even take a look at the interim-result: the programm should created a EXPORT-black.bmp on every run in the main-folder.)

Unfortunately I can't help you any further, as I only have this one display.

13Bytes avatar Dec 10 '23 15:12 13Bytes

I bought now the same 7.5 inch display which you are using, but the calendar still shows no output. With the manufacturer's demo program the display is working.

I only get a TypeError, but not sure it that is the problem.

$ ./run_calendar.sh 
INFO:app:2023-12-16 16:51:27.310709
INFO:app:Retrieving calendar infos
CRITICAL:app:'webcal'
INFO:app:Retrieving contact (birthday) infos
INFO:app:Exporting finial images
INFO:app:Init display
INFO:app:Writing on display
INFO:app:Set display to sleep-mode
TypeError: 'super' object is not callable

I'm running it on Bullseye - you too?

hansu avatar Dec 16 '23 16:12 hansu

Sorry for the late reply, what python-version do you use? Could you test it once with 3.7?

13Bytes avatar Jan 04 '24 20:01 13Bytes

I have tested with Python 3.10

hansu avatar Jan 04 '24 21:01 hansu

Have you been able to test py3.7 in the meantime? Because if it work there but not in 3.10, I would need to upgrade my raspi and refactor the code ^^

13Bytes avatar Jan 18 '24 15:01 13Bytes

I returned the display because I didn't want to spend so much time in this. This was in December, so I wasn't able to test that unfortunately.

hansu avatar Jan 18 '24 20:01 hansu