Fetch Myki Balance with Scriptable, add to iOS Widget.
- Fetch PTV Timetable Widget visit: Timetable
Important! This Widget is not affiliated to PTV or Myki. For personal use only.
The passenger type (Full Fare, Concession, Child etc) may not accurate, feel free to let me know how to fix them
-
Download Scriptable from App Store
-
Add new Script on Scriptable, copy Everything in MykiBalance.js and paste to your new Script
-
At this stage,you may see an error message if you try to run the code. Don't worry, You are almost there.
-
Go to your Widgets library and find Scriptable, make sure pick the Middle one and Add Widget to your home screen (Not suport layout for Small and Large Widget).
-
Long press the Widget and go Edit Widget, Choose the
Script
you Added, setWhen Interacting
toRun Script
, so you can manually update your balance by tapping the widget. Input your Myki Card Number intoParameter
- Now you may see the Magic, Enjoy! If not, check your card number agian!
- Tips: Tap "Top up >" on the Widget, you will be redirected to Official Myki Topup Website in Chrome (you need Chrome installed on your phone).
Go to your Scriptable -> Settings -> Siri Shortcuts -> Add Siri Shortcut -> Select the Myki Balance Script -> Add to Siri
Now try to ask Siri to check your balance.