Help with a Siri Shortcut

Discussion in 'iOS 12' started by JasonHB, Oct 2, 2018.

  1. JasonHB macrumors regular

    Joined:
    Jul 20, 2010
    Location:
    Warwickshire, UK
    #1
    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
     
  2. ZEEN0j macrumors 65816

    ZEEN0j

    Joined:
    Sep 29, 2014
    #2
    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
     
  3. JasonHB thread starter macrumors regular

    Joined:
    Jul 20, 2010
    Location:
    Warwickshire, UK
    #3
    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
     
  4. ZEEN0j macrumors 65816

    ZEEN0j

    Joined:
    Sep 29, 2014
    #4
    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
     
  5. JasonHB thread starter macrumors regular

    Joined:
    Jul 20, 2010
    Location:
    Warwickshire, UK
    #5
    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
     
  6. NoBoMac, Oct 2, 2018
    Last edited: Oct 2, 2018

    NoBoMac macrumors 68020

    Joined:
    Jul 1, 2014
    #6
    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.
     
  7. ZEEN0j macrumors 65816

    ZEEN0j

    Joined:
    Sep 29, 2014

Share This Page

6 October 2, 2018