Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.64 KB

README.md

File metadata and controls

52 lines (36 loc) · 1.64 KB

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