Help with a Siri Shortcut

JasonHB

macrumors 6502
Original poster
Jul 20, 2010
260
164
Warwickshire, UK
Hi Guys,

I really need some help in creating a Siri Shortcut that I am trying to sort out and I hope that all of you that are much more clever than I, are able to help me out.

What I am trying to do is create a shortcut that allows me to log arrival times and departure times from client visits, along with the current location:-

When I arrive at the clients, I would like this to happen:-

Run Shortcut - Called "Arriving at Client"

Gets my current location
Creates a calendar entry for that location with the current time
(In an ideal world, it would be great if Siri could ask me that client name at that point so that the calendar entry is the clients name, although a dialogue box for text input would also be ok)

This I kind of have working with a few little issues, but it is the following step that I am struggling with.

When I leave the client, I would like this to happen:-

Run Shortcut - Called "Leaving Client"

Opens the "Arriving at Client" calendar entry and sets the end time to the current time.

I have done it currently so that there are 2 calendar entries, one for arriving and one for leaving, but if I was able to do it so that the arrival time and departure time were on the same "appointment" that would be the ideal solution

I think that I am too stupid to work this out, so looking forward to all of your brilliant suggestions.

Thanks in advance

Jason
 

ZEEN0j

macrumors 68000
Sep 29, 2014
1,543
696
This work?

https://www.icloud.com/shortcuts/c2a752a8ab8241f79fe50e89a2c1d6d4

When importing choose what calendar you want to add to. Didn’t find a way to edit a calendar entry so it creates a new one and deletes the old one. End result is what you want I believe

Edit: It only works with one pending arrival at a time. After it is logged as done you can create a new one on that day
 

JasonHB

macrumors 6502
Original poster
Jul 20, 2010
260
164
Warwickshire, UK
That’s a massive help.

Only issue is, that after a very short period, the map pin disappears from the calendar entry for some reason.

Apart from that, it’s almost perfect.

Gives me a great starting point and a better understanding of how they’re put together.

Thank you so much for your efforts.

Jason
 

ZEEN0j

macrumors 68000
Sep 29, 2014
1,543
696
When testing it’s only the one being deleted where the map data is lost for some reason. Only happens after you press delete. Glad to help
 

JasonHB

macrumors 6502
Original poster
Jul 20, 2010
260
164
Warwickshire, UK
I’ve run it a few times today for real and the map data appears on the calendar entry when I “leave” but shortly after it disappears.

The address shows on the appointment, but not the map

Jason
 

NoBoMac

Moderator
Staff member
Jul 1, 2014
2,847
1,179
Something with stock Calendar app, as I see it too re: no map in Apple app. Tried to force a location by adding a separate fetch of locaction data to add to new Calendar entry.

The Calendar app I use, Fantastical, is showing the map with no issue.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.