kudrykv / latex-yearly-planner

Digital planner for Supernote and ReMarkable // Support Ukraine 🇺🇦 https://savelife.in.ua/en
https://github.com/kudrykv/latex-yearly-planner/discussions
MIT License
1.11k stars 162 forks source link

Feat: add ical file support for daily planner #104

Closed ipapast closed 10 months ago

ipapast commented 10 months ago

This PR adds a basic event display on the daily planner. It renders like this:

image

What it acutally does:

The daily planner Notes are shrunk a bit so that we can get a few events in the same space. I have chosen to only include events that have a UTC timestamp (with 'Z') as handling all cases manually and getting timezones in regard is hard. Maybe that can be an additional feature.

How to run:

PLANNER_YEAR=2024 \
PASSES=1 \
CFG="cfg/base.yaml,cfg/template_breadcrumb.yaml,cfg/sn_a5x.breadcrumb.default.yaml" \
NAME="sn_a5x.breadcrumb.default" \
ICSFILE="app/components/icsparser/example_calendar.ics" \ 
./single.

Any comments on making it better/easier are welcome

kudrykv commented 10 months ago

Hi @ipapast! Can you please check out rubify branch? Ultimately, I want to upgrade the repository to that version. Could you please estimate how hard would it be to implement ical there?

ipapast commented 10 months ago

Hi @ipapast! Can you please check out rubify branch? Ultimately, I want to upgrade the repository to that version. Could you please estimate how hard would it be to implement ical there?

Hey, I'll have a look today and let you know :)

ipapast commented 10 months ago

Hi @ipapast! Can you please check out rubify branch? Ultimately, I want to upgrade the repository to that version. Could you please estimate how hard would it be to implement ical there?

Alright, I need to re-work this PR because I have forked main only. I will fork the entire repo again, so possibly this PR will be closed. I will open a new one after, if that happens.

philipsd6 commented 10 months ago

Personally, I'd rather have the ical data put right in the schedule, and leave the notes section for notes! But I obviously understand that's a more significant challenge...

ipapast commented 10 months ago

Personally, I'd rather have the ical data put right in the schedule, and leave the notes section for notes! But I obviously understand that's a more significant challenge...

that would be much better, I agree.

I closed this PR as I need to work on a ruby branch version of it, so it might take some time, but the idea is here, and someone can re-work it if needed.

kudrykv commented 9 months ago

Thank you for your idea and your work I might take look into it next month. The idea looks interesting

However, calendar events are very much fleeting. Aside from putting some birthdays and holidays, I don't see a convenient way to flush new events into the planner and syncing it back to the device where it's being used