gadgetchnnel / lovelace-home-feed-card

A custom Lovelace card for displaying a combination of persistent notifications, calendar events, and entities in the style of a feed.
266 stars 22 forks source link

Request: Add a parameter to control end time for calendars #21

Closed editter closed 4 years ago

editter commented 4 years ago

Can you add a config option so calendars can have an end time longer than 2 days out?

Maybe something like this?

const calendar_days = isNaN(this._config.calendar_days) ? 2 : parseInt(this._config.calendar_days);
const end = this.moment.utc().startOf('day').add(calendar_days, 'days').format("YYYY-MM-DDTHH:mm:ss");
gadgetchnnel commented 4 years ago

@editter This has now been added in the latest beta version (0.3.5b2). I have actually split it into two options calendar_days_back and calendar_days_forward so you have more flexibility over the range for which the events will be queries.

gadgetchnnel commented 4 years ago

Closing this as this feature is now in the latest release version