Hi,
I am trying to make a flow that after the end time of a meeting booked in a calendar (which is the trigger) gives my husband a chance to change the end time of the meeting, without opening the calendar and go to the right event. I have used the input dialog for time, and I think I should be able to do this by calendar uri intent, but I do not know how to. The flow needs to capture the event (event ID)that has just ended (?using calendar condition?) and paste the new end time into the event in the calendar? I have tried to read about it at developer.android.com but do not know how to apply any of it.
Is there anyone out there that could explain how to do it, or have a flow or a script to show me, that I can tweak?
Also I would like to write all calendar events monthly to a file (?using calendar.contract.events?). I have managed to write to file the event that just finished using calendar event as a trigger. Anyone that has a flow or script to share or help?
Should this post have been posted under General?
Most grateful for help
Changing end time of event without opening calendar
Moderator: Martin
-
- Posts: 186
- Joined: 12 Feb 2014 01:45
Changing end time of event without opening calendar
Best regards,
AngelAtwOrk
AngelAtwOrk
Re: Changing end time of event without opening calendar
Hi,
The intents to edit an event requires that you know the ID of the event, which is not yet made available as a variable by the calendar triggers or conditions so it's probably not possible to do this for now.
I will check if I can add the event ID to the provided variables in the next version of Automagic. You could then use an action Start Activity with action android.intent.action.EDIT and data URI content://com.android.calendar/events/{event_id} to edit an event.
Listing all events probably requires direct access to the database by using either sqlite or content query (something like Execute Root Command: content query --uri content://com.android.calendar/instances/when/{triggertime}/{triggertime}).
Querying calendar events and filling the values into variables is an item on my todo-list but it could take some time until this becomes available since the todo-list is quite long.
Feel free to ask questions regarding Automagic in this forum, the general forum can be used to discuss less Automagic specific topics or automation topics in general.
Regards,
Martin
The intents to edit an event requires that you know the ID of the event, which is not yet made available as a variable by the calendar triggers or conditions so it's probably not possible to do this for now.
I will check if I can add the event ID to the provided variables in the next version of Automagic. You could then use an action Start Activity with action android.intent.action.EDIT and data URI content://com.android.calendar/events/{event_id} to edit an event.
Listing all events probably requires direct access to the database by using either sqlite or content query (something like Execute Root Command: content query --uri content://com.android.calendar/instances/when/{triggertime}/{triggertime}).
Querying calendar events and filling the values into variables is an item on my todo-list but it could take some time until this becomes available since the todo-list is quite long.
Feel free to ask questions regarding Automagic in this forum, the general forum can be used to discuss less Automagic specific topics or automation topics in general.
Regards,
Martin
-
- Posts: 186
- Joined: 12 Feb 2014 01:45
Re: Changing end time of event without opening calendar
Thanks for now , you gave some thoughts to mull over
.
Unfortunately the root command won't do me any good. I am doing this for my husband, and he does not want to root his phone, so I have not rooted mine either.

Unfortunately the root command won't do me any good. I am doing this for my husband, and he does not want to root his phone, so I have not rooted mine either.
Best regards,
AngelAtwOrk
AngelAtwOrk
-
- Posts: 186
- Joined: 12 Feb 2014 01:45
Re: Changing end time of event without opening calendar
Hope you keep this in mind, Martin "I will check if I can add the event ID to the provided variables in the next version of Automagic" 

Best regards,
AngelAtwOrk
AngelAtwOrk
Re: Changing end time of event without opening calendar
Yep, it's already implemented and should become available in a few days as an EAP version.
-
- Posts: 186
- Joined: 12 Feb 2014 01:45