Skip to content

Show departure information from ctabustracker (Chicago Transit Authority).

License

Notifications You must be signed in to change notification settings

ravichowdhury88/sensor.ctabustracker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sensor.ctabustracker

Show departure information from ctabustracker (Chicago Transit Authority).

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

HA 0.86.0 or newer:

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

Older versions

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

Example configuration.yaml

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

Configuration variables:

key type description
platform (Required) string The platform name.
api_key (Required) string Your API key
lines (Required) list List of lines you want to track.

Lines configuration

key type description
route (Required) string Route number (rt)
stop_id (Required) string Stop ID (stpid)
departures (Optional) int Number of future departures.
name (Optional) list List of lines you want to track.

BuyMeCoffee

About

Show departure information from ctabustracker (Chicago Transit Authority).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%