I did some checking and small adjustments. version 0.9.6 should give info
-
Great, it works. Thank you for this version.
-
Thanks for building this plugin, I have been testing with it and seems to work well for timed events. Though I cannot get it to work with all-day events, is that intentional?
What I was trying to do is trigger an action at for instance 7.00 when an all-day event is active (in my case garbage collection day) but that does not trigger anything. -
Yes indeed, I went through your code and figured so much. I couldn’t find a good description of the data format, but could it be the case that an all day event has an empty start and end time and just contains a date? Or maybe a dedicated all-day event field which needs to be checked by your plugin in that case?
Thanks for the quick reply by the way!Edit: found this, might help; https://github.com/icalendar/icalendar/issues/71
-
Hi, i released version 0.9.9 with small fix and extra debug info. You can switch now switch on the debug in the plugin.
For the all-day event with trigger at 7:00, the rule should look like:
when its 7:00 and calendar event with title contains “the all day event” takes place -
Thanks, once again, for you quick response! Has anyone already mentioned you’re a hero? Well; you’re awesome, hattip to you!
I have installed the update and everything seems to be working fine for me!A small tip to save precious time for anyone in the future testing/playing with this: an already ongoing all-day event will not trigger an action unless the event is (re)moved and moved back or added again.
-
Thanks. A remark/question on your tip.
On startup an ongoing all-day event should set the ‘takes place’ value that can be used in a rule.
It’s not a trigger but a condition. The start or stopping of events are triggers.
What happens in your case or what is the type of all-day event that you need to reschedule the event?In the debug log (when debug is switched on) you can see the ‘nextEvents’ (events that will start or stop in the next 10 minutes) and the current ‘ongoing events’.
-
I moved the event just for testing purposes to figure out when it generates a trigger (I am an engineer and love to test/break stuff )
Most of my all-day events are imported from the city garbage collection scheme and tells me when to put out which type of garbage. Yesterday was such a day and as I updated pimatic and installed your plugin that caused me to keep an eye on it and hence finding the earlier mentioned issue.I switched on the debug logging for you; yesterday I copied the all day event to today as well, so one is taking place at this moment. When I add a new rule, or change an existing one; for example
its 15.27 and calendar event with title contains "GFT" takes place
nothing happens when the all-day event is already active.
If I then change the rule toits 15.33 and calendar event with title contains "GFT" takes place
and then remove the event, wait a minute to let the plugin refresh (set to 60 seconds) and then again add the event it does trigger an action. I can spot that the events are refreshed as the list is empty around 15.30:50, at ~15.31 I added the event again and a bit later it shows up (15:31:57). Exactly at 15.33 the second rule was executed.
Just playing around for you, at this point it works fine for my intended purposes. Tomorrow will be another test event: they will be collecting recyclable plastic waste15:29:43.444 [pimatic-calendar2] debug: nextEvents: [ 15:29:43.444 [pimatic-calendar2] debug:> { 15:29:43.444 [pimatic-calendar2] debug:> "start": { 15:29:43.444 [pimatic-calendar2] debug:> "year": 2020, 15:29:43.444 [pimatic-calendar2] debug:> "month": 5, 15:29:43.444 [pimatic-calendar2] debug:> "day": 3, 15:29:43.444 [pimatic-calendar2] debug:> "hour": 0, 15:29:43.444 [pimatic-calendar2] debug:> "minute": 0, 15:29:43.444 [pimatic-calendar2] debug:> "second": 0, 15:29:43.444 [pimatic-calendar2] debug:> "isDate": true, 15:29:43.444 [pimatic-calendar2] debug:> "timezone": "floating" 15:29:43.444 [pimatic-calendar2] debug:> }, 15:29:43.444 [pimatic-calendar2] debug:> "end": { 15:29:43.444 [pimatic-calendar2] debug:> "year": 2020, 15:29:43.444 [pimatic-calendar2] debug:> "month": 5, 15:29:43.444 [pimatic-calendar2] debug:> "day": 4, 15:29:43.444 [pimatic-calendar2] debug:> "hour": 0, 15:29:43.444 [pimatic-calendar2] debug:> "minute": 0, 15:29:43.444 [pimatic-calendar2] debug:> "second": 0, 15:29:43.444 [pimatic-calendar2] debug:> "isDate": true, 15:29:43.444 [pimatic-calendar2] debug:> "timezone": "floating" 15:29:43.444 [pimatic-calendar2] debug:> }, 15:29:43.444 [pimatic-calendar2] debug:> "uid": "6thj6e1k60qm2b9nc4pm8b9kc5gj8b9p68pjgb9l71im2cb2cormaphl6g@google.com", 15:29:43.444 [pimatic-calendar2] debug:> "summary": "GFT", 15:29:43.444 [pimatic-calendar2] debug:> "description": "Ophaaldag: dinsdag" 15:29:43.444 [pimatic-calendar2] debug:> } 15:29:43.444 [pimatic-calendar2] debug:>] 15:29:43.460 [pimatic-calendar2] debug: Ongoing events: { 15:29:43.460 [pimatic-calendar2] debug:> "6thj6e1k60qm2b9nc4pm8b9kc5gj8b9p68pjgb9l71im2cb2cormaphl6g@google.com": { 15:29:43.460 [pimatic-calendar2] debug:> "start": { 15:29:43.460 [pimatic-calendar2] debug:> "year": 2020, 15:29:43.460 [pimatic-calendar2] debug:> "month": 5, 15:29:43.460 [pimatic-calendar2] debug:> "day": 3, 15:29:43.460 [pimatic-calendar2] debug:> "hour": 0, 15:29:43.460 [pimatic-calendar2] debug:> "minute": 0, 15:29:43.460 [pimatic-calendar2] debug:> "second": 0, 15:29:43.460 [pimatic-calendar2] debug:> "isDate": true, 15:29:43.460 [pimatic-calendar2] debug:> "timezone": "floating" 15:29:43.460 [pimatic-calendar2] debug:> }, 15:29:43.460 [pimatic-calendar2] debug:> "end": { 15:29:43.460 [pimatic-calendar2] debug:> "year": 2020, 15:29:43.460 [pimatic-calendar2] debug:> "month": 5, 15:29:43.460 [pimatic-calendar2] debug:> "day": 4, 15:29:43.460 [pimatic-calendar2] debug:> "hour": 0, 15:29:43.460 [pimatic-calendar2] debug:> "minute": 0, 15:29:43.460 [pimatic-calendar2] debug:> "second": 0, 15:29:43.460 [pimatic-calendar2] debug:> "isDate": true, 15:29:43.460 [pimatic-calendar2] debug:> "timezone": "floating" 15:29:43.460 [pimatic-calendar2] debug:> }, 15:29:43.460 [pimatic-calendar2] debug:> "uid": "6thj6e1k60qm2b9nc4pm8b9kc5gj8b9p68pjgb9l71im2cb2cormaphl6g@google.com", 15:29:43.460 [pimatic-calendar2] debug:> "summary": "GFT", 15:29:43.460 [pimatic-calendar2] debug:> "description": "Ophaaldag: dinsdag" 15:29:43.460 [pimatic-calendar2] debug:> } 15:29:43.460 [pimatic-calendar2] debug:>} 15:29:43.491 [pimatic-homeduino] debug: data: "ACK 21.1 1.0" 15:30:13.553 [pimatic-homeduino] debug: data: "ACK 21.1 1.0" 15:30:25.979 [pimatic] info: rule chantal-presence-longtime: set $longtimepresence_chantal to true 15:30:43.687 [pimatic-homeduino] debug: data: "ACK 21.0 1.0" 15:30:50.267 [pimatic-calendar2] debug: nextEvents: [] 15:30:50.297 [pimatic-calendar2] debug: Ongoing events: {} 15:31:13.783 [pimatic-homeduino] debug: data: "ACK 21.0 1.0" 15:31:43.853 [pimatic-homeduino] debug: data: "ACK 21.0 1.0" 15:31:57.430 [pimatic-calendar2] debug: nextEvents: [ 15:31:57.430 [pimatic-calendar2] debug:> { 15:31:57.430 [pimatic-calendar2] debug:> "start": { 15:31:57.430 [pimatic-calendar2] debug:> "year": 2020, 15:31:57.430 [pimatic-calendar2] debug:> "month": 5, 15:31:57.430 [pimatic-calendar2] debug:> "day": 3, 15:31:57.430 [pimatic-calendar2] debug:> "hour": 0, 15:31:57.430 [pimatic-calendar2] debug:> "minute": 0, 15:31:57.430 [pimatic-calendar2] debug:> "second": 0, 15:31:57.430 [pimatic-calendar2] debug:> "isDate": true, 15:31:57.430 [pimatic-calendar2] debug:> "timezone": "floating" 15:31:57.430 [pimatic-calendar2] debug:> }, 15:31:57.430 [pimatic-calendar2] debug:> "end": { 15:31:57.430 [pimatic-calendar2] debug:> "year": 2020, 15:31:57.430 [pimatic-calendar2] debug:> "month": 5, 15:31:57.430 [pimatic-calendar2] debug:> "day": 4, 15:31:57.430 [pimatic-calendar2] debug:> "hour": 0, 15:31:57.430 [pimatic-calendar2] debug:> "minute": 0, 15:31:57.430 [pimatic-calendar2] debug:> "second": 0, 15:31:57.430 [pimatic-calendar2] debug:> "isDate": true, 15:31:57.430 [pimatic-calendar2] debug:> "timezone": "floating" 15:31:57.430 [pimatic-calendar2] debug:> }, 15:31:57.430 [pimatic-calendar2] debug:> "uid": "6thj6e1k60qm2b9nc4pm8b9kc5gj8b9p68pjgb9l71im2cb2cormaphl6g@google.com", 15:31:57.430 [pimatic-calendar2] debug:> "summary": "GFT", 15:31:57.430 [pimatic-calendar2] debug:> "description": "Ophaaldag: dinsdag" 15:31:57.430 [pimatic-calendar2] debug:> } 15:31:57.430 [pimatic-calendar2] debug:>] 15:31:57.478 [pimatic-calendar2] debug: Ongoing events: { 15:31:57.478 [pimatic-calendar2] debug:> "6thj6e1k60qm2b9nc4pm8b9kc5gj8b9p68pjgb9l71im2cb2cormaphl6g@google.com": { 15:31:57.478 [pimatic-calendar2] debug:> "start": { 15:31:57.478 [pimatic-calendar2] debug:> "year": 2020, 15:31:57.478 [pimatic-calendar2] debug:> "month": 5, 15:31:57.478 [pimatic-calendar2] debug:> "day": 3, 15:31:57.478 [pimatic-calendar2] debug:> "hour": 0, 15:31:57.478 [pimatic-calendar2] debug:> "minute": 0, 15:31:57.478 [pimatic-calendar2] debug:> "second": 0, 15:31:57.478 [pimatic-calendar2] debug:> "isDate": true, 15:31:57.478 [pimatic-calendar2] debug:> "timezone": "floating" 15:31:57.478 [pimatic-calendar2] debug:> }, 15:31:57.478 [pimatic-calendar2] debug:> "end": { 15:31:57.478 [pimatic-calendar2] debug:> "year": 2020, 15:31:57.478 [pimatic-calendar2] debug:> "month": 5, 15:31:57.478 [pimatic-calendar2] debug:> "day": 4, 15:31:57.478 [pimatic-calendar2] debug:> "hour": 0, 15:31:57.478 [pimatic-calendar2] debug:> "minute": 0, 15:31:57.478 [pimatic-calendar2] debug:> "second": 0, 15:31:57.478 [pimatic-calendar2] debug:> "isDate": true, 15:31:57.478 [pimatic-calendar2] debug:> "timezone": "floating" 15:31:57.478 [pimatic-calendar2] debug:> }, 15:31:57.478 [pimatic-calendar2] debug:> "uid": "6thj6e1k60qm2b9nc4pm8b9kc5gj8b9p68pjgb9l71im2cb2cormaphl6g@google.com", 15:31:57.478 [pimatic-calendar2] debug:> "summary": "GFT", 15:31:57.478 [pimatic-calendar2] debug:> "description": "Ophaaldag: dinsdag" 15:31:57.478 [pimatic-calendar2] debug:> } 15:31:57.478 [pimatic-calendar2] debug:>}