글로벌 공유자전거(CityBikes)


citybikes 센서 플랫폼은 선택한 지역의 자전거 공유 스테이션에서 자전거가 사용가능한지 모니터링합니다. 이 데이터는 전세계 자전거 공유 시스템을 지원하는 CityBikes에서 제공합니다.

설정

이를 활성화하려면 configuration.yaml에 다음 줄을 추가하십시오 :

# Example configuration.yaml entry (using radius)
sensor:
  - platform: citybikes

Configuration Variables

name

(string)(Optional)

The base name of this group of monitored stations. The entity ID of every monitored station in this group will be prefixed with this base name, in addition to the network ID.

network

(string)(Optional)

The name of the bike sharing system to poll.

Default value:

Defaults to the system that operates in the monitored location.

latitude

(string)(Optional)

Latitude of the location, around which bike stations are monitored.

Default value:

Defaults to the latitude in your configuration.yaml file.

longitude

(string)(Optional)

Longitude of the location, around which bike stations are monitored.

Default value:

Defaults to the longitude in your configuration.yaml file.

radius

(integer)(Optional)

The radius (in meters or feet, depending on the Home Assistant configuration) around the monitored location. Only stations closer than this distance will be monitored.

stations

(list)(Optional)

A list of specific stations to monitor. The list should contain station IDs or UIDs, which can be obtained from the CityBikes API.

사례

추가 설정 샘플 :

# Example configuration.yaml entry (using a list of stations)
sensor:
  - platform: citybikes
    name: Work Stations
    stations:
      - 123
      - 145
      - 436