13Bytes / eInkCalendar

A small desk-calendar, portal-themend. It display the current date, the next few events in your calendar and whether a person in your contact list has a birthday
Creative Commons Attribution 4.0 International
180 stars 16 forks source link

CALDAV without SSL / run on a different display? #5

Open hansu opened 10 months ago

hansu commented 10 months ago

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!

13Bytes commented 10 months ago

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)

hansu commented 10 months ago

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?

13Bytes commented 10 months ago

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.

hansu commented 10 months ago

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?

13Bytes commented 9 months ago

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

hansu commented 9 months ago

I have tested with Python 3.10

13Bytes commented 9 months ago

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 ^^

hansu commented 9 months ago

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.