/Edinburgh_Bus_Scriptable

Script to display Edinburgh bus times using the iOS Scriptable app

Primary LanguageJavaScript

Edinburgh Bus Timetable for iOS using Scriptable

Description

This application enables you to easily get Edinburgh Lothian bus times using Siri shortcuts. It is implmented on Scriptable by Simon Støvring - available on the Apple app store (https://itunes.apple.com/gb/app/scriptable/id1405459188?mt=8)

Updated on 29/09/2020 - Added Edinburgh Bus Widget that runs within Scriptable and allows iOS 14 users to see bus details on their home screen. Refresh is controlled by iOS so maybe a little bit out.

Usage

API

Note: a valid API key is required before you can access the bustracker API (see: http://www.mybustracker.co.uk/?page=API%20Key)

MD5

The script converts the API key into an MD5 hash. My script implements blueimp implementation - available here. The script needs to be stored on your iCloud in the Scriptable folder to make everything work.

Keychain

I've chosen to hide my API key using the Scriptable Keychain. To set yours, run the following:

let key = Keychain.set('busapi','your_private_code')

IMAGE ALT TEXT HERE

Feedback always appreciated!