jonkristian / entur-card

Home Assistant Lovelace card card for the Entur public transport component.
MIT License
57 stars 6 forks source link

Styling of show_next departure #15

Closed espizo closed 4 years ago

espizo commented 4 years ago

I want to show the next 3 departures from a bus stop, so I added number_of_departures: 3 to configuration.yaml.

Is it possible to get all 3 departures in the same style?

Now it looks like this: image

It looks correct if I use show_next: false and number_of_departures: 4, but this obviously hides the next departure, which I don't want.

geeewizzz commented 4 years ago

This card is great, but I have the same issue as @espizo . In a stop where I have listed several departures from the same line this issue becomes a problem. Also it seems to have a problem with defining the time until the next departure if the next departure is the next day (after midnigt)

Screenshot 2020-04-28 at 23 30 20
jonkristian commented 4 years ago

Hi, thanks for your kind words and sorry for the late reply. I've been quite busy lately but my schedule is starting to clear up. I will take a look at this as soon as possible.

jonkristian commented 4 years ago

I've pushed quite a lot of changes now which also addresses this issue and hopefully to your likings. It should now be sufficient to use number_of_departures as next_departure will then be included in that list, show_next_departure should then be set to false.

Please let me know if this solved your problem.

jonkristian commented 4 years ago

Closing this for now, feel free to re-open if this didn't fix your issue.