hasl-sensor / lovelace-hasl-departure-card

Lovelace Departure Card for the HASL Platform
https://hasl.sorlov.com
Apache License 2.0
15 stars 14 forks source link

Wider time frame for departures #11

Closed rasssta closed 4 years ago

rasssta commented 4 years ago

Not sure what the default "time frame" is for departures, but for bus stops with only one or two bus lines passing by it can be 1-2h between each departure so it would be nice to see departures for the next 6-8 hours, or preferably even 24 hours and then limit it by max_departures 5 or similar.

rasssta commented 4 years ago

Seems like CONF_TIMEWINDOW is set to 30 as default but only 60 as possible max limit. Will it cause any problems to increase the following config to max 1440?

            vol.All(vol.Coerce(int), vol.Range(min=0, max=60)),
dimmanramone commented 4 years ago

@rasssta This is something that should be changed in the component and not the lovelace card, though the version 2 of the component is not under development anymore. A new version (3) is under development and you can post a feature request there.

Seems like CONF_TIMEWINDOW is set to 30 as default but only 60 as possible max limit. Will it cause any problems to increase the following config to max 1440?

            vol.All(vol.Coerce(int), vol.Range(min=0, max=60)),

I don't think that it will cause any problem, but I'm not sure if the API is supporting a time frame of 24 hours.