Alfred Irish Rail Realtime API Search

An Alfred workflow that uses the Irish Rail realtime API to get the list of available stations and the associated train times within the next 90 minutes.

How to use the workflow

  1. Open the Alfred search UI

  2. Type ir

    • If you do not provide an argument, the workflow will return the list of all available stations
    image
    • Provide a substring of the station name to filter the list to the station you're looking for
    image
  3. Select the station and press enter

  4. The workflow will fetch the trains leaving the station within the next 90 minutes

image

6. You can quit the workflow here or proceed by pressing enter to set up a notification 7. You can set up a notification/reminder for the train as the thirs step

image

9. The reminder will be presented in the notification center

image

Customising notifications

Delay options

Edit the third (list filter) step which contains the options. image

The output of this step is passed to the delay operatior. The output needs to be a number representing the number of seconds to wait.

Sound

You can change the notification sound on the sound step. image

About

Created the workflow to quickly look up the next train time. Used this to learn more about Alfred workflows. The workflow scripts are written in Swift.