vingerha / gtfs2

Support GTFS in Home Assistant GUI-only
https://github.com/vingerha/gtfs2
MIT License
84 stars 7 forks source link

[FEATURE]: Add source for Bilbao #87

Closed davidclaeysquinones closed 5 months ago

davidclaeysquinones commented 6 months ago

The city of Bilbao provides sources for it's public bus service at this site. Can it be used out of the box ?

Edit: There are even more sources available :

Bilbobus (euskadi.eus) Bilbobus (data.ctb.eus) Metro Bilbao Renfe Cercanias Bus Bilbao-Vitoria

This isn't even the complete list (complete list)

vingerha commented 6 months ago

You can always try else look at gtfs.pro

FabienD74 commented 5 months ago

Hi davidclaeysquinones

Everything worked ? Let us now wich gtfs ( url link to zip ) , ....

Thx Fabien

davidclaeysquinones commented 5 months ago

I tried gtfs.pro and it works fine :) I just wish I was able to filter bus stops.

image

Now I'm seeing multiple bus stops that are near my house, but actually I only want Lehendakari Aguirre 135.

 - type: custom:auto-entities
    filter:
      include:
        - name: '*local_stop_zone.sarriko*'
      exclude:
        - state: unavailable
        - attributes:
            stop_name: '! LEHENDAKARI AGUIRRE 135'
    card:
      type: custom:flex-table-card
      clickable: true
      max_rows: 10
      title: Bilbobus
      strict: true
      sort_by:
        - next_departures_lines
      columns:
        - hidden: true
          data: next_departures_lines
          modify: x.departure
        - name: Linea
          data: next_departures_lines
          modify: '''<ha-icon icon='' + x.icon + ''></ha-icon>'' + x.route'
        - name: Hora
          data: next_departures_lines
          modify: x.departure
        - name: Parada
          data: next_departures_lines
          modify: x.stop_name
        - name: Direcion
          data: next_departures_lines
          modify: x.headsign
      css:
        table+: 'padding: 0px'
      card_mod:
        style: |
          ha-card {
            overflow: auto;
            max-height: 500px;
          }
FabienD74 commented 5 months ago

I guess you have configured a sensor based on gps/location/person.

May be you should try to configure a sensor from "stop A" to "stop B" .... if it better suit your needs. or configure 2 sensors "A->B" and "B->A" ? (That's what i'm using + gps sensor for my phone when i'm travelling...)

Fabien

vingerha commented 5 months ago

The flex-table card does not allow to filter on attribute level, the overarching auto-entities (as per its name) will also not do that. The only option I know of (which does not mean there are no others :) )... is filter via markdown https://github.com/vingerha/gtfs2/wiki/5.-Visualizing-the-data#local-stops-and-departures-filtering-certain-routes

vingerha commented 5 months ago

Closing as no more feedback