Read the statement by Michael Teeuw here.
MMM-CalendarEXT2 - Calendar Read Failing When Time Value Is Missing from ics file
-
@edd189 generally yes, regardless of where it is…
no, no need to do any compile
sory, forgo this darned forum changes quotes not in a code block …
make sure they are the straight up and down ones
look back at my example -
@sdetweil Doh, the error reporter already shows me the aValue.
aValue = 2022-01-01T::
By my count, that is 13 characters. Let me see if simply changing 10 to 13 in the above code fixes it.
-
@sdetweil Is this right?
ICAL.Time.fromString = function fromString(aValue) {
if (aValue.length > 10) {
return ICAL.Time.fromDateTimeString(aValue);
Log.log([CALEXT2] calendar: >> greater 10
);
Console.log($avalue.length );
} else {
return ICAL.Time.fromDateString(aValue);
Log.log([CALEXT2] calendar: >> less 10
);
Console.log($avalue.length );
}
}; -
@edd189 said in MMM-CalendarEXT2 - Calendar Read Failing When Time Value Is Missing from ics file:
Log.log([CALEXT2] calendar: >> greater 10);
Console.log($avalue.length );no… those new statements are after the return… so will never be executed
Log.log and console.log are the same here …
-
Thanks for your help. Not sure I’m finding the right place where the call is made to fromDateTimeString. I found a few more instances in a file under the build directory. I was previously only looking under the lib directory.
Not sure how I missed it, but I need to take a break for the evening. Pick it back up later.
-
Look at file design.js here: https://github.com/kewisch/ical.js/tree/main/lib/ical
What does line 401 do? The call on line 403 is where I get the error. I’m not familiar enough with java to know what decorate means.
-
@edd189 sorry. no idea
-
Ok, plan B – read the ICS files, save them locally, append the time to the DTSTART and DTEND fields.
Create a script to do this automatically every 24 hours.
Wish me luck! I’m in over my head, but its kinda fun.
Any advice? I am running this on linux, so figured I can just run a cronjob every 24 hours. What’s the best service to language to use to write such a simple script?
-
@edd189 people write in python, I do most of mine in bash shell.
-
Sorry for late reply. I was outside in holidays. I’ll study what your issue is tomorrow.