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.
-
Open the Alfred search UI
-
Type
ir
- If you do not provide an argument, the workflow will return the list of all available stations
- Provide a substring of the station name to filter the list to the station you're looking for
-
Select the station and press enter
-
The workflow will fetch the trains leaving the station within the next 90 minutes
Edit the third (list filter) step which contains the options.
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.
You can change the notification sound on the sound step.
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.