Skip to content

Show departure information from ctabustracker (Chicago Transit Authority).

License

Notifications You must be signed in to change notification settings

smcpeck/sensor.ctabustracker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sensor.ctabustracker

INTEGRATION STATE: UNMAINTAINED

Show departure information from ctabustracker (Chicago Transit Authority).

This plafrom is based of the findings of @SilvrrGIT in this forum post

Installation

HACS

Add this as a custom repository and restart your HA instance.

Manual

To get started put /custom_components/ctabustracker/sensor.py here:
<config directory>/custom_components/ctabustracker/sensor.py

Example configuration.yaml

sensor:
  platform: ctabustracker
  api_key: 'dfshkdkf7333ykgdfk73'
  type: 'bus'
  lines:
    - stop_id: 77
      departures: 2
      name: 'Union Station'

sensor:
  platform: ctabustracker
  api_key: 'lk38vjklrj4nj'
  type: 'train'
  lines:
    - stop_id: 3045
      departures: 2
      name: 'Logan Square'

Configuration variables

key type description
platform (Required) string The platform name.
api_key (Required) string CTA Bus API Key or CTA Train API Key
type (Required) string Transit type: ["bus", "train"]
lines (Required) list List of lines you want to track.

Note: Bus times and train times each required a different API key.

Lines configuration

key type description
stop_id (Required) string Stop ID (stpid)
departures (Optional) int Number of future departures.
name (Optional) list Name of the HA sensor

Change Log

0.0.3

@ludeeus: Initial release.

0.0.3 (on HACS)

@jonochocki: Added easy install via HACS support.

0.0.4

@smcpeck: Added support for train lines.

  • route config variable is no longer supported since the APIs don't need it was a "bus only" API parameter.

contributor support
@ludeeus BuyMeCoffee
@smcpeck BuyMeCoffee

About

Show departure information from ctabustracker (Chicago Transit Authority).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%