Skip to content

🚏 This is home assistant custom component to pull bus times from TransLink Open API

Notifications You must be signed in to change notification settings

math0ne/translink-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translink Sensor

This is home assistant custom component to pull bus times from TransLink Open API. This is pretty limited right now, simply pulling in the next three times for a given stop and route.

There is a lovelace ui custom card available here: https://github.com/math0ne/translink-card

You can find stop id's here: https://tp.translink.ca/hiwire?.a=iLocationLookup

Register for an API key here: https://developer.translink.ca/Account/Register

Manual Installation

Copy this folder to <config_dir>/custom_components/translink_sensor/.

HACS Custom Install

  1. Go to the community tab of your home assistant installation
  2. Click settings
  3. Add "https://github.com/math0ne/translink-sensor" with the type Integration
  4. Click Save
  5. Restart home assistant

Usage

Add the following to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: translink_sensor
    api_key: XXX
    stop_id: 58652
    route_number: 16

Credits

This based on the work of:

About

🚏 This is home assistant custom component to pull bus times from TransLink Open API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages