GithubHelp home page GithubHelp logo

bus_arrivaltime's Introduction

bus arrival time

Show china bus arrival status.

Usage

  1. Clone this repo to config/custom_components
  2. Open this link, choose your city, your bus line, and get the url.
  3. Paste the url into value_extract.py, get the yaml config.
  4. Paste yaml config into configuration.yaml, like below:
# Example configuration.yaml entry  
sensor:
  - platform: bus_arrivaltime
    name: 668_bus_arrival
    lineid: '2557257721'
    linename: '668'
    direction: '1'
    stationname: '星火路·汇文路'
    nextstationname: '星火路地铁站东'
    lineno: '668'
    targetorder: '6'
    cityid: '018'
    #timerange: '083000-093000,174500-183000'

Extra

Integrate bus status into index panel, add this to configuration.yaml

panel_iframe:
  bus_arrialtime:
    title: 'Bus'
    icon: 'mdi:bus'
    url: 'https://web.chelaile.net.cn/ch5/?src=webapp_qqwallet&utm_source=webapp_qqwallet&utm_medium=entrance&hideFooter=1&showFav=0&homePage=around&_wv=1027&showTopLogo=0&supportSubway=1&cityId=018&cityName=%E5%8D%97%E4%BA%AC&cityVersion=2#!/linearound'
    # url: 'https://web.chelaile.net.cn/ch5/?src=webapp_qqwallet&utm_source=webapp_qqwallet&utm_medium=entrance&hideFooter=1&showFav=0&homePage=around&_wv=1027&showTopLogo=0&supportSubway=1&cityId=018&cityName=%E5%8D%97%E4%BA%AC&cityVersion=2#!/linedetail/2557257721/1/%E6%98%9F%E7%81%AB%E8%B7%AF%C2%B7%E6%B1%87%E6%96%87%E8%B7%AF/%E6%98%9F%E7%81%AB%E8%B7%AF%E5%9C%B0%E9%93%81%E7%AB%99%E4%B8%9C/6/668'

reference: 快上车【实时公交】【到站时间】【sensor】【修复bug】

bus_arrivaltime's People

Contributors

duchenpaul avatar mickey50 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.