Skip to content

A sensor that give you information about next departure from spesified stop.

License

Notifications You must be signed in to change notification settings

hwikene/sensor.ruter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

custom_component to get info about next departures

A platform which allows you to get information about next departure from spesified stop.

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

Example configuration.yaml:

sensor:
  platform: ruter
  stopid: 129302
  destination: 'Sandvika (Bussterminal)'

Configuration variables:

key description
platform (Required) The platform name.
stopid (Required) The ID of the stop you are monitoring.
destination (Optional) The destination stop of the line you want to monitor.

Sample overview

Sample overview

Home-Assistant demo site.

This platform is using the Ruter reisapi API to get the information. This component is only usefull for users living near Oslo, Norway that uses Ruter for transportation. To find the stopid go to https://ruter.no/reiseplanlegger/Stoppested and search for your stop. in the url after you have searched there will be an ID right after the 'Stoppested/' in a format like this (129302), the numbers there is what you need to put in the stopid: config option. The destionation: can be used to filter the responses, the name must be exactly the same as on the ruter.no site.


Due to how custom_componentes are loaded, it is normal to see a ModuleNotFoundError error on first boot after adding this, to resolve it, restart Home-Assistant.


buymeacoffee.com

About

A sensor that give you information about next departure from spesified stop.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%