# \[APP\]\[Pro\] IcalCalendar

**URL:** <https://community.homey.app/t/app-pro-icalcalendar/80708>\
**Category:** Apps\
**Tags:** app, tools, homey-pro\
**Created:** [May 18, 2023, 2:29pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708 "2023-05-18T14:29:43Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [March 2, 2024, 8:10pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/104 "2024-03-02T20:10:27Z")

</div>

A whole day event starts and stops at 00:00. You can of course set the event to start at 12:00 one day and 12:00 another day

---

<div class="post-metadata">

**Author:** ![Robinjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robinjo/32/2656_2.png) [@Robinjo](https://community.homey.app/u/Robinjo)\
**Post date:** [March 4, 2024, 5:19pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/105 "2024-03-04T17:19:21Z")

</div>

Thanks for the explanation. Can I do something about it to get it working?

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [March 4, 2024, 6:46pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/106 "2024-03-04T18:46:34Z")

</div>

I can’t help you with this I’m afraid. This is something that has to be solved by your calendar provider

---

<div class="post-metadata">

**Author:** ![RikB](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rikb/32/79135_2.png) [@RikB](https://community.homey.app/u/RikB)\
**Post date:** [March 11, 2024, 7:25am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/107 "2024-03-11T07:25:24Z")

</div>

Hi there,

So I am using the iCal app and it is working great, I use it to send myself a whatsapp message 1 hour before the event starts. however I would really like to send myself a whatsapp message on the night before about all events for the following day. is there anyway to achieve this? I cant seem to figure this out.

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [March 11, 2024, 11:28am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/108 "2024-03-11T11:28:48Z")

</div>

Yes there is 👍

The IcalCalendar app exposes several global tokens (tags) that can be used in any flow card as input.

The token (tag) you are asking for is called `Tomorrows events, title and time`.  
All the available global tokens (tags) can be found here: [GitHub - runely/calendar-homey: Gives Homey flow cards to trigger on your calendar events](https://github.com/runely/calendar-homey?tab=readme-ov-file#global-flow-tags-can-be-used-in-any-app-and-service)

---

<div class="post-metadata">

**Author:** ![RikB](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rikb/32/79135_2.png) [@RikB](https://community.homey.app/u/RikB)\
**Post date:** [March 11, 2024, 12:30pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/109 "2024-03-11T12:30:50Z")

</div>

Works perfect! thanks!

Only thing left is that I would like to convert the returned events into a message style.  
So now I receive "event1 ; Full day; event2; 13:00 till 15:00; etc etc.

Do you know if there is any way to convert this csv style message into a proper styled message that I can send to my phone?

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [March 11, 2024, 1:16pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/110 "2024-03-11T13:16:26Z")

</div>

That’s not something that IcalCalendar can help you with. You can probably do this with HomeyScript for instance

---

<div class="post-metadata">

**Author:** ![RikB](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rikb/32/79135_2.png) [@RikB](https://community.homey.app/u/RikB)\
**Post date:** [March 12, 2024, 9:50am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/111 "2024-03-12T09:50:59Z")

</div>

For anyone else trying to achieve this or something similar  
I have managed to get it done with the homeyscript run code with argument card.  
I am sure the code could be written much more efficient but this is the best I could do.  
For anyone interested here is the code I wrote:

```auto
let text = args.toString(); 
var e = 0
const result1 = text.replace(/; /g, match => ++e === 2 ? '\n' : match)
var e = 0
const result2 = result1.replace(/; /g, match => ++e === 3 ? '\n' : match)
var e = 0
const result3 = result2.replace(/; /g, match => ++e === 4 ? '\n' : match)
var e = 0
const result4 = result3.replace(/; /g, match => ++e === 5 ? '\n' : match)
var e = 0
const result5 = result4.replace(/; /g, match => ++e === 6 ? '\n' : match)
var e = 0
const result6 = result5.replace(/; /g, match => ++e === 7 ? '\n' : match)
var e = 0
const result7 = result6.replace(/; /g, match => ++e === 8 ? '\n' : match)
var e = 0
const result8 = result7.replace(/; /g, match => ++e === 9 ? '\n' : match)
var e = 0
const result9 = result8.replace(/; /g, match => ++e === 10 ? '\n' : match)
var e = 0
const result10 = result9.replace(/; /g, match => ++e === 10 ? '\n' : match)
var e = 0
const result11 = result10.replace(/; /g, match => ++e === 10 ? '\n' : match)
var e = 0
const result12 = result11.replace(/; /g, match => ++e === 10 ? '\n' : match)
var e = 0
const result13 = result12.replace(/; /g, match => ++e === 10 ? '\n' : match)
let final = result13.replace(/;/g, " -");
await tag('WH Message Rik', final);

```

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [April 1, 2024, 9:14am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/112 "2024-04-01T09:14:29Z")

</div>

In the newly released version **2.7.1** adjustable synchronization is implemented.

You can enable/disable automatic synchronization. You can also change the interval by specifying a cron expression.

If automatic synchronization is disabled, calendars will only be synchronized when the action card **Sync calendars** is called in a flow

---

<div class="post-metadata">

**Author:** ![TKroon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tkroon/32/9504_2.png) [@TKroon](https://community.homey.app/u/TKroon)\
**Post date:** [April 1, 2024, 5:53pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/113 "2024-04-01T17:53:46Z")

</div>

That is awesome, thank you!! I’ve made a check when the CPU load is too high, and now I can skip syncing the calendars at the peak CPU times.

---

<div class="post-metadata">

**Author:** ![KaiF](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kaif/32/17746_2.png) [@KaiF](https://community.homey.app/u/KaiF)\
**Post date:** [May 2, 2024, 7:10pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/114 "2024-05-02T19:10:08Z")

</div>

The app used to work quite well. Just recently I realized that since some unknown period of time, some of my calendar related flows did no longer work. When looking at the app settings a few minutes ago, I realized the following error message

> “Loading the ics file(s) has failed:  
> Uri errors  
> Familie: (name ||”‘’). toLowerCase is not a function"

Any idea how to resolve this?  
I tried to delete the respective calendar and re-add it but the message remains. Thx!

---

<div class="post-metadata">

**Author:** ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)\
**Post date:** [May 2, 2024, 7:29pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/115 "2024-05-02T19:29:50Z")

</div>

No idea to be honest. But you also used ‘fresh’ url or re-used the one you had? Any changes in the calendar you are using?

---

<div class="post-metadata">

**Author:** ![KaiF](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kaif/32/17746_2.png) [@KaiF](https://community.homey.app/u/KaiF)\
**Post date:** [May 2, 2024, 7:35pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/116 "2024-05-02T19:35:45Z")

</div>

Seems I found the resolution.  
Asked my web calendar to refresh the url and copied that one. Now it seems to work again. Somehow it did no longer like to old url even when removing and re-adding it.

---

<div class="post-metadata">

**Author:** ![Patrick\_Van\_Deursen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_van_deursen/32/56539_2.png) [@Patrick\_Van\_Deursen](https://community.homey.app/u/Patrick_Van_Deursen)\
**Post date:** [May 6, 2024, 10:13am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/117 "2024-05-06T10:13:25Z")

</div>

HI, thanks for the great app! really love it and helps with various automation activities.

I do have a bit of a challenge with recurring events, and was reading in the notes, that many improvements have been made already.

My issue is the following:

I have a recurring event, which during import gets imported correctly. If however I remove one of those events from my agenda (remove occurrence, not the whole series), during import into Homey, this occurrence doesn’t get deleted is seems. If I add a separate event with the exact same content it recognizes it, and if I delete the separate made event or the whole series, the event is indeed no longer there also in the ical app in Homey.

So it seems that removing an occurrence from outlook from a series, does not remove it in your app. Or maybe I am doing something wrong? I did notice you had some improvement with respect to moving an occurrence in a series. maybe this is different somehow?

One thing that might impact this is the start-time of the recurring series? Maybe the import window does not work if the recurring event started months ago?

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [May 7, 2024, 4:40am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/118 "2024-05-07T04:40:49Z")

</div>

> [@Patrick\_Van\_Deursen](#):
>
> I have a recurring event, which during import gets imported correctly. If however I remove one of those events from my agenda (remove occurrence, not the whole series), during import into Homey, this occurrence doesn’t get deleted is seems. If I add a separate event with the exact same content it recognizes it, and if I delete the separate made event or the whole series, the event is indeed no longer there also in the ical app in Homey.
> 
> So it seems that removing an occurrence from outlook from a series, does not remove it in your app. Or maybe I am doing something wrong? I did notice you had some improvement with respect to moving an occurrence in a series. maybe this is different somehow?
> 
> One thing that might impact this is the start-time of the recurring series? Maybe the import window does not work if the recurring event started months ago?

I remove single occurences from a series of recurring events regularly and this works as it should.

I tried:

- To create a new recurring series in Outlook that had its starting point a year back
- To create a new recurring series in Outlook that had its starting point a week in the future
- To create a new recurring series in Gmail that had its starting point a year back
- To create a new recurring series in Gmail that had its starting point a week in the future

And then i removed a single event from all series on the same day, and they all were removed from **IcalCalendar**.

So i’m sorry, i cant reproduce this

---

<div class="post-metadata">

**Author:** ![Patrick\_Van\_Deursen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_van_deursen/32/56539_2.png) [@Patrick\_Van\_Deursen](https://community.homey.app/u/Patrick_Van_Deursen)\
**Post date:** [May 8, 2024, 11:29am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/119 "2024-05-08T11:29:29Z")

</div>

Ok, than I have to try it again, and see what happens.

---

<div class="post-metadata">

**Author:** ![Patrick\_Van\_Deursen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_van_deursen/32/56539_2.png) [@Patrick\_Van\_Deursen](https://community.homey.app/u/Patrick_Van_Deursen)\
**Post date:** [May 8, 2024, 6:27pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/120 "2024-05-08T18:27:18Z")

</div>

did you try this also with all day recurring events? I am getting very different results, can’t pin down when it works and when not. Still trying different instantiations. by the way, individual events works fine (with exactly the same text.

My issue is in outlook by the way (corporate exchange)

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [May 8, 2024, 8:37pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/121 "2024-05-08T20:37:22Z")

</div>

I did not try with all day recurring events. Tried it now and this i can reproduce.

I’ll look into it when I get the chance

---

<div class="post-metadata">

**Author:** ![Patrick\_Van\_Deursen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_van_deursen/32/56539_2.png) [@Patrick\_Van\_Deursen](https://community.homey.app/u/Patrick_Van_Deursen)\
**Post date:** [May 8, 2024, 8:52pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/122 "2024-05-08T20:52:00Z")

</div>

Thanks. No hurry, as I will use single events till then, also good to know that it indeed is a bug and that I can stop trouble shooting 🤪. Thanks for checking 👍🏻👍🏻

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [May 11, 2024, 6:08pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/123 "2024-05-11T18:08:04Z")

</div>

After looking a little into this, i can only reproduce this problem with Outlook (Exchange) calendars.

[Previous page](https://community.homey.app/t/app-pro-icalcalendar/80708.md?page=5)

[Next page](https://community.homey.app/t/app-pro-icalcalendar/80708.md?page=7)
