-
Notifications
You must be signed in to change notification settings - Fork 14
5. Visualizing the data
Arjan edited this page Jan 1, 2024
·
30 revisions
Using 'multiple entity row' card

When vehcile positions have been added to the configuration, a geojson file is created in your wwww/gtfs2 folder You can create entities with position, using the geojson integration, refering to that file
important: filename is case sensitive

Example geojson entity:
Note: to make the entity unique, the name of the entity is a combination of the route 'B', the direction '(0)' and the last 3 digites of the trip_id
Then you can configure a Map card to show the positions of active vehicles along that route

Note: geojson currently only updates each 5 minutes and can not be refreshed by a service call


type: custom:auto-entities
filter:
include:
- name: '*_local_stop'
exclude:
- state: unavailable
card:
type: custom:flex-table-card
clickable: true
max_rows: 30
title: Local Stop dep.
sort_by:
- next_departures_lines
columns:
- hidden: true
data: next_departures_lines
modify: x.departure
- name: Route
data: next_departures_lines
modify: '''<ha-icon icon='' + x.icon + ''></ha-icon>'' + x.route'
- name: Time
data: next_departures_lines
modify: x.departure
- name: Stop
data: next_departures_lines
modify: x.stop_name
- name: Headsign
data: next_departures_lines
modify: x.headsign
css:
table+: 'padding: 0px'
card_mod:
style: |
ha-card {
overflow: auto;
max-height: 500px;
}