Seems like it started to work again for me atleast, so you can disregard my post.
Unfortunately the app is still crashing continuously. After restarting, it crashes again within one minute. I cannot create a diagnostic report, because the rate is limited. Iām not sure why though.
It syncs 5 calendars for the upcoming 3 days.
All the big dips in the screenshot are crashesā¦
Could you please help me?
Rate Limited is an error message thrown by Homey Core
itself, and iāve read somewhere this is thrown when your Homey receives too many calls (total calls by devices and apps i would think). So Iām guessing this means your Homey has a lot to do.
To be able to see whatās going on i need a diagnostics report!
You can try the following:
If you uninstall the IcalCalendar
app and reinstall it from the App Store, your IcalCalendar
app settings will be cleaned out and you can start with fresh settings and add in one calendar at a time to see if this has any effect.
Donāt worry, uninstalling and reinstalling the app will not mess up your flows. All tags and calendar names will work just as before as long as you name the calendars exactly the same after reinstall!
Uninstalling the app will however remove the IcalCalendar
device (if you have added it, that is)
Thank you for your quick reply. When I have some spare time, I will try it and get back to you with a diagnostics report.
Iāve followed your steps, and will update soon if it is fixed
Sadly, it did not help.
48743ec4-0e04-4720-a197-5be16635e48d
Given the large amount of RAM used, does the app only save the upcoming 3 days and nothing of the past?
From the diagnostics report i see you have added 5 calendarsā¦ Please try to add one at a time until you find the one thatās causing this.
Yes the app only saves the 3 upcoming days, however, the app read the whole .ics file and loops through each event in the calendar to see if itās an upcoming event (based on DTSTART and RRULE)
Thank you. I have removed 4 of them.
What might cause the issue?
- Attachments in appointments?
- Length of address?
- Emojiās used
- Special characters?
- Is any of the above limited to the synced period? Or just if itās in the entire calendar?
I canāt reproduce this crashing on my end, so i have no idea what might causing this.
If you find the calendar thatās causing this, please send a diagnostics report so i can investigate whatās going on.
Attachments shouldnāt have an effect. The calendars i have tested with (Gmail, iCloud and Office 365) all present an attachment as a URL.
Which address are you referring to?
Emojiās is fine. I use them all the time
Which special characters? Iām Norwegian and uses Ć, Ć and Ć a lot.
As stated in the previous post, the entire calendar has to be parsed in to individual events and then looped over to find the ones that the app should keep.
Iāve tested all 5 calendars. None of them singlehandedly results in crashing of the app. Itās the combination. When adding the smallest 4, no problem. Adding the biggest latest? Crash within the minute.
Iām not sure what to do now. I donāt want to delete my history in my calendars, just to have my calendar in Homey.
Do you have other solutions? Can I install the app twice for example?
Is the app checking all calendars at the same time? Or one by one? How often is the app checking the calendars? Does it result in a conflict when starting to check the fourth calendar while still busy with the third? Does it reach a RAM-limit, resulting in Homey shutting down the app?
Good morning,
Thank you to @runely for his work and the time he spends making it evolve.
I want to create a local event in a calendar connected to Google Calendar.
Iām stumbling over the structure of datetimes! Despite numerous attempts, I cannot add it.
Thank you for your help
Hi, sorry for the late reply. A lot going on!
You can not install the app twice (Homey restrictions)
The app is checking calendars one by one.
The app synchronizes all your calendars every 15th minute (see 1. post for full explanation)
Since the calendars are checked one by one, thereās no conflict.
The app must parse the entire .ics file to be able to find which events to import. The rest of the events after import will be discarded. The more events you have, the more RAM it uses (obviously).
The app will be shutdown by Homey if it uses too much RAM or CPU over a period of time. The limits for RAM and CPU (set by Homey) is as far as i know dynamic, and in my understanding, if your Homey has a lot to do, these limits will be lowered (someone correct me if im wrong).
Do you get an error? The datetime syntax to use in the action card Create local event is shown as a hint in the start and end textboxes. The syntax used is ISO 8601 (YYYY-MM-DDTHH:mm:ss)
Example for today would be: 2024-01-18T13:25:00
Thanks for the very quick reply.
I tested again with this format, setting āFalseā to āApply your timezoneā (without error) :
Flow
But I donāt see the event appear when doing see-events-synced-in
Thank you for your extensive reply. My calendars are detailed and go years back.
I will try to download all appointments en put them in a separate āhistory-calendarā, which I will of course not sync with homey
I donāt know French, but it seems like you have used underscore (_) in the Event end
instead of hyphen (-). And that would explain why you donāt see the event.
As of now, the app just logs that the syntax is wrong, and everything seems to be fine in the app.
I will improve this by throwing an error when the action card is run with wrong syntax which will put up a red triangle on the action card which will show the error when clicked (do note that you will only see this red triangle when you have the flow open and you pushed the start button manually)
Youāre right ā¦ sorry
Stupid mistake !
Thx a lot
No problem. FYI: New version available in the app store
You can guess when Iāve deleted the history of my calendarsā¦. Over ten years of appointments are now gone, and it significantly reduces the load on homey. Not very visible on RAM, but definitely on CPU usage. Iām still working on the last calendar, but I havenāt had a crash since. So thank you for your help and insights, this was the solution!
I want to create a list of the events in de agenda so i can add them to my custom homey display.
What would be the best way to do this? It might be a great feature to add a second tab in the app listing the upcoming 5 events or somethingā¦