I’m trying to create a shortcut which displays the weather forecast for a user determined calendar event over the next five days. I have been able to achieve this for the next calendar event; however, I can’t get it to work for a user selected event.
Generating the calendar event through user input appears straightforward, and I have access to the Dark Sky API with a key, but Dark Sky just doesn’t seem able to supply the forecast - either the results are blank, or else I get a ‘Conversion Error - Text failed because Shortcuts couldn’t convert from Text to Location.’
I’m not 100% sure why, but if I use the “event” variable you created (i.e. the calendar event itself, rather than the result of “get details of event”) as a location and then choose the longitude and latitude that way, it seems to work. (Also removed an extra comma in he URL).
Link because I don’t think my explanation above was very helpful:
When the shortcut tries to reference the location related text as a calendar event and then tries to extract the location, it fails to produce an event and subsequently to derive a the latitude and longitude.
That’s why the direct event access @Kaitlin applied works where the original does not.