jspricke / python-remind

Python library to convert between Remind and iCalendar
GNU General Public License v3.0
13 stars 6 forks source link

Recurring events not showing properly in .ics #20

Closed R-7200 closed 6 months ago

R-7200 commented 6 months ago

Hi!

The following statements in .reminders aren't included in the generated .ics properly:

REM [moondate(0)-1] MSG ☸️ 六齋日
REM [moondate(0)] MSG ☸️ 六齋日
REM [moondate(1)] MSG ☸️ 六齋日
REM [moondate(2)-1] MSG ☸️ 六齋日
REM [moondate(2)] MSG ☸️ 六齋日
REM [moondate(3)] MSG ☸️ 六齋日

REM [moondate(0)] MSG 🌑 Neumond
REM [moondate(1)] MSG 🌓 Erste Hälfte
REM [moondate(2)] MSG 🌕 Vollmond
REM [moondate(3)] MSG 🌗 Zweite Hälfte

REM AT [sunrise()] MSG ☀️↑ Sonnenaufgang
REM AT [sunset()] MSG ☀️↓ Sonnenuntergang

The first occurrence of a reminder is show (e.g.: sunrise), but the following days are omitted.

Consequently the sunset reminders are not changing, time-wise, i.e. showing the same time for every day. Are this known limitations?

Can provide excerpts from .ics file (stdout), if necessary.

Best wishes.

jspricke commented 6 months ago

Works for me with git master, can you try?

R-7200 commented 6 months ago

Hi!

I installed from Git's master, and the problem persists, after importing to macOS' Calendar.app:

o Dawn is only shown for the first occurrence o I have to specify a shorter time period, i.e. "-m 2" to get a resulting .ics, that includes the "moondate" reminders correctly

Bildschirmfoto 2024-02-25 um 18 22 38

Bildschirmfoto 2024-02-25 um 18 23 14

The resulting .ics shows the dates correctly, I guess:

mk ~ $ ~/Library/Python/3.9/bin/rem2ics -z Europe/Berlin -s -2 -m 2 .reminders
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//PYVOBJECT//NONSGML Version 1//EN
BEGIN:VTIMEZONE
TZID:CET
BEGIN:STANDARD
DTSTART:20001029T040000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20000326T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
UID:a50bf675f7c98c5b31f5aa9e3a4004bc@macintosh.home.arpa
DTSTART;TZID=CET:20240201T132400
DTEND;TZID=CET:20240201T132400
DTSTAMP:20240225T182133
SUMMARY:☀️↑ Sonnenaufgang
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:☀️↑ Sonnenaufgang
TRIGGER:-PT10M
END:VALARM
END:VEVENT
BEGIN:VEVENT
UID:2ee216f57c80ea22ddd7c63e537523e4@Mac-mini-von-Manuel.local
DTSTART;TZID=CET:20240201T230700
DTEND;TZID=CET:20240201T230700
DTSTAMP:20240225T182133
RRULE:FREQ=DAILY;COUNT=36
SUMMARY:☀️↓ Sonnenuntergang
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:☀️↓ Sonnenuntergang
TRIGGER:-PT10M
END:VALARM
END:VEVENT
BEGIN:VEVENT
UID:a50bf675f7c98c5b31f5aa9e3a4004bc@Mac-mini-von-Manuel.local
DTSTART;TZID=CET:20240202T132400
DTEND;TZID=CET:20240202T132400
DTSTAMP:20240225T182133
RDATE;TZID=CET:20240202T132400,20240203T132200,20240204T132000,20240205T132
 000,20240206T131800,20240207T131600,20240208T131600,20240209T131500,202402
 10T131300,20240211T131100,20240212T130900,20240213T130900,20240214T130700,
 20240215T130500,20240216T130300,20240217T130300,20240218T130100,20240219T1
 30000,20240220T125800,20240221T125600,20240222T125400,20240223T125200,2024
 0224T125000,20240225T125000,20240226T124800,20240227T124600,20240228T12430
 0,20240229T124300,20240301T124100,20240302T123900,20240303T123700,20240304
 T123500,20240305T123300,20240306T123100,20240307T123000,20240308T122800,20
 240309T122600,20240310T122400,20240311T122200,20240312T122000,20240313T121
 800,20240314T121600,20240315T121500,20240316T121300,20240317T121100,202403
 18T120900,20240319T120700,20240320T120500,20240321T120300,20240322T120100,
 20240323T120000,20240324T115800,20240325T115600,20240326T115400,20240327T1
 15200,20240328T115000,20240329T114800,20240330T114600,20240331T124500
SUMMARY:☀️↑ Sonnenaufgang
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:☀️↑ Sonnenaufgang
TRIGGER:-PT10M
END:VALARM
END:VEVENT
BEGIN:VEVENT
UID:ee5db838ec7b7301a31c2baab69b6fa4@Mac-mini-von-Manuel.local
DTSTART;VALUE=DATE:20240203
DTSTAMP:20240225T182133
RRULE:FREQ=DAILY;INTERVAL=29;COUNT=2
SUMMARY:☸️ 六齋日
END:VEVENT
BEGIN:VEVENT
UID:282e514076f3087248431c65072ce2d7@Mac-mini-von-Manuel.local
DTSTART;VALUE=DATE:20240203
DTSTAMP:20240225T182133
RRULE:FREQ=DAILY;INTERVAL=29;COUNT=2
SUMMARY:🌗 Zweite Hälfte
END:VEVENT
BEGIN:VEVENT
UID:545edc7014525b64c5f7929752581f87@Mac-mini-von-Manuel.local
DTSTART;VALUE=DATE:20240209
DTSTAMP:20240225T182133
RRULE:FREQ=DAILY;INTERVAL=29;COUNT=2
SUMMARY:☸️ 六齋日
END:VEVENT
BEGIN:VEVENT
UID:f7e12abdefc4ac1dc97cbca8226f9d36@Mac-mini-von-Manuel.local
DTSTART;VALUE=DATE:20240210
DTSTAMP:20240225T182133
RRULE:FREQ=DAILY;INTERVAL=29;COUNT=2
SUMMARY:☸️ 六齋日
END:VEVENT
BEGIN:VEVENT
UID:601c3c95291d90e81d4177bed6ae2208@Mac-mini-von-Manuel.local
DTSTART;VALUE=DATE:20240210
DTSTAMP:20240225T182133
RRULE:FREQ=DAILY;INTERVAL=29;COUNT=2
SUMMARY:🌑 Neumond
END:VEVENT
BEGIN:VEVENT
UID:7024adfaa5efa60098b7c99553bd88ec@Mac-mini-von-Manuel.local
DTSTART;VALUE=DATE:20240216
DTSTAMP:20240225T182133
RRULE:FREQ=DAILY;INTERVAL=30;COUNT=2
SUMMARY:☸️ 六齋日
END:VEVENT
BEGIN:VEVENT
UID:0e6b574dfd117121269bb995909d7ae7@Mac-mini-von-Manuel.local
DTSTART;VALUE=DATE:20240216
DTSTAMP:20240225T182133
RRULE:FREQ=DAILY;INTERVAL=30;COUNT=2
SUMMARY:🌓 Erste Hälfte
END:VEVENT
BEGIN:VEVENT
UID:b36e1f1591bb1d4e85ad2a68d82b57ce@Mac-mini-von-Manuel.local
DTSTART;VALUE=DATE:20240223
DTSTAMP:20240225T182133
RRULE:FREQ=DAILY;INTERVAL=30;COUNT=2
SUMMARY:☸️ 六齋日
END:VEVENT
BEGIN:VEVENT
UID:35bb3ff39838abf94639f203e20653fa@Mac-mini-von-Manuel.local
DTSTART;VALUE=DATE:20240224
DTSTAMP:20240225T182133
RRULE:FREQ=DAILY;INTERVAL=30;COUNT=2
SUMMARY:☸️ 六齋日
END:VEVENT
BEGIN:VEVENT
UID:9f22d45b15065909bd3536a5dab56ea8@Mac-mini-von-Manuel.local
DTSTART;VALUE=DATE:20240224
DTSTAMP:20240225T182133
RRULE:FREQ=DAILY;INTERVAL=30;COUNT=2
SUMMARY:🌕 Vollmond
END:VEVENT
END:VCALENDAR
jspricke commented 6 months ago

For Dawn it looks like a bug in Calendar.app, the time is shown correctly on Android using DAVX5 and Etar. Anything else that needs fixing here?

R-7200 commented 6 months ago

Thank you for asking. Actually yes:

o The following (included) reminders don't show up properly:

PUSH
REM 29 Feb MSG 🍎 [d_holyday], [d_yold] YOLD.%
REM SKIP MSG 🍎 [d_weekday], [d_dayofseason] [d_season] [d_yold] YOLD [iif(d_is_holyday, "% "+d_holyday+"!","")]
POP

Taken from here: https://www.trueelena.org/computers/scripts/discordian_calendar_for_remind.html

Bildschirmfoto 2024-02-25 um 18 57 24

mk ~ $ ~/Library/Python/3.9/bin/rem2ics -z Europe/Berlin -s -2 -m 2 reminder
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//PYVOBJECT//NONSGML Version 1//EN
BEGIN:VEVENT
UID:c2c80fb676f96fd106ec101d3d8d270e@Mac-mini-von-Manuel.local
DTSTART;VALUE=DATE:20240201
DTEND;VALUE=DATE:20240401
DTSTAMP:20240225T185512
SUMMARY:🍎 Boomtime\, 32 Chaos 3190 YOLD
END:VEVENT
BEGIN:VEVENT
UID:f0eb43ed7e9c031bacd0097902858951@Mac-mini-von-Manuel.local
DTSTART;VALUE=DATE:20240229
DTEND;VALUE=DATE:20240301
DTSTAMP:20240225T185512
SUMMARY:🍎 St. Tib's Day\, 3190 YOLD.
END:VEVENT
END:VCALENDAR

Thank you for your time :-)

R-7200 commented 6 months ago

The inital reported .ics is not showing up properly in other platforms, too:

Bildschirmfoto 2024-02-25 um 19 04 37

It seems it is not only related to Calendar.app :-(

jspricke commented 6 months ago

Regarding the discordian example, that is listed as a known limitation in the readme. Btw. please fill unrelated issues as separate bugs and try to include minimal working examples. Closing this as not a bug in python-remind. For the display issues you can probably write a script that converts the rdates to separate events as a workaround.

R-7200 commented 6 months ago

Hi!

As I said - thank you for your time!

I'm contacting Apple and Infomaniak Support. In the meantime, I noticed in the minimal working example provided, that "Sunset" isn't also changing times.

There is only one date & time and not RDATES like in "Dawn". Should I open a separate bug report for this?

Best wishes.

R-7200 commented 6 months ago

Ah, O.K.: "Sunset" and "Dawn" are correctly included, if I change the command line switches from:

~/Library/Python/3.9/bin/rem2ics -z Europe/Berlin -s -2 -m 2 reminder

to

~/Library/Python/3.9/bin/rem2ics -z Europe/Berlin -m 3 reminder

My mistake - please excuse the noise...

R-7200 commented 6 months ago

O.K. - last comment on this already close issue: RDATE doesn't seem to work in different (online) PIM solutions, /except/ calendar.google.com.

Even Microsoft, who co-authored the RFC for the iCalendar format, isn't supporting RDATE :-(

Please see screenshots attached:

Bildschirmfoto 2024-02-26 um 12 22 04

Bildschirmfoto 2024-02-26 um 10 06 05

Minimal working example was:

REM [moondate(0)-1] MSG ☸️ 六齋日
REM [moondate(0)] MSG ☸️ 六齋日
REM [moondate(1)] MSG ☸️ 六齋日
REM [moondate(2)-1] MSG ☸️ 六齋日
REM [moondate(2)] MSG ☸️ 六齋日
REM [moondate(3)] MSG ☸️ 六齋日

REM [moondate(0)] MSG 🌑 Neumond
REM [moondate(1)] MSG 🌓 Erste Hälfte
REM [moondate(2)] MSG 🌕 Vollmond
REM [moondate(3)] MSG 🌗 Zweite Hälfte

REM AT [sunrise()] MSG ☀️↑ Sonnenaufgang
REM AT [sunset()] MSG ☀️↓ Sonnenuntergang