Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
updated readme. Fixed swiper card hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
peternijssen committed Aug 25, 2019
1 parent a27fcca commit 904a57b
Show file tree
Hide file tree
Showing 4 changed files with 398 additions and 515 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ resources:

### Installation and tracking with `HACS` _(Recommended)_
1. Make sure you've the [HACS](https://custom-components.github.io/hacs/) component installed and working
2. Add a new `Custom Plugin Repository` under `Settings` with the following URL: `https://github.com/peternijssen/lovelace-postnl-card`
2. Search for the PostNL card in the store
3. Configure Lovelace to load the card:

```yaml
Expand Down Expand Up @@ -94,6 +94,9 @@ cards:
## Inspired by
* [simple-thermostat](https://github.com/nervetattoo/simple-thermostat)
* [mini-media-player](https://github.com/kalkih/mini-media-player)
* [swiper-card](https://github.com/bramkragten/custom-ui)
## Contributors
* [Peter Nijssen](https://github.com/peternijssen)
* [Rob van Uden](https://github.com/robvanuden)
7 changes: 3 additions & 4 deletions dist/postnl-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -7388,7 +7388,7 @@
nl: {
unavailable_entities: "De opgegeven entiteiten zijn niet beschikbaar. Controleer je card configuratie",
unavailable_letters: "Het lijkt er op dat je brieven hebt geconfigureerd in deze card, maar je hebt deze niet binnen de PostNL app geactiveerd. Verwijder de brieven van deze card of activeer ze binnen de PostNL app.",
letters: "Brieven",
letters: "Brieven2",
title: "Titel",
status: "Status",
delivery_date: "Bezorgdatum",
Expand Down Expand Up @@ -7426,7 +7426,7 @@
set hass(e) {
this._hass = e, this.config.delivery && (this.deliveryObject = e.states[this.config.delivery]), this.config.distribution && (this.distributionObject = e.states[this.config.distribution]), this.config.letters && (this.letterObject = e.states[this.config.letters]), this.config.hide && (this._hide = { ...this._hide,
...this.config.hide
}), "string" == typeof this.config.name ? this.name = this.config.name : this.name = "PostNL", this.config.icon ? this.icon = this.config.icon : this.icon = "mdi:mailbox", this.config.date_format ? this.date_format = this.config.date_format : this.date_format = "DD MMM YYYY", this.config.time_format ? this.time_format = this.config.time_format : this.time_format = "HH:mm", this.config.past_days ? this.past_days = parseInt(this.config.past_days, 10) : this.past_days = 1, this._language = e.language, "nl" !== this._language && (this._language = "en"), this.delivery_enroute = [], this.delivery_delivered = [], this.distribution_enroute = [], this.distribution_delivered = [], this.letters = [], this.letterObject && Object.entries(this.letterObject.attributes.letters).sort((e, t) => new Date(t[1].delivery_date) - new Date(e[1].delivery_date)).map(([e, t]) => {
}), "string" == typeof this.config.name ? this.name = this.config.name : this.name = "PostNL", this.config.icon ? this.icon = this.config.icon : this.icon = "mdi:mailbox", this.config.date_format ? this.date_format = this.config.date_format : this.date_format = "DD MMM YYYY", this.config.time_format ? this.time_format = this.config.time_format : this.time_format = "HH:mm", void 0 !== this.config.past_days ? this.past_days = parseInt(this.config.past_days, 10) : this.past_days = 1, this._language = e.language, "nl" !== this._language && (this._language = "en"), this.delivery_enroute = [], this.delivery_delivered = [], this.distribution_enroute = [], this.distribution_delivered = [], this.letters = [], this.letterObject && Object.entries(this.letterObject.attributes.letters).sort((e, t) => new Date(t[1].delivery_date) - new Date(e[1].delivery_date)).map(([e, t]) => {
oe(t.delivery_date).isBefore(oe().subtract(this.past_days, "days").startOf("day")) || this.letters.push(t);
}), this.deliveryObject && (Object.entries(this.deliveryObject.attributes.enroute).sort((e, t) => new Date(t[1].planned_date) - new Date(e[1].planned_date)).map(([e, t]) => {
this.delivery_enroute.push(t);
Expand Down Expand Up @@ -7468,8 +7468,7 @@
padding: 16px 0;
}
.info-body,
.detail-body,
.img-body {
.detail-body {
display: flex;
flex-direction: row;
justify-content: space-around;
Expand Down
Loading

0 comments on commit 904a57b

Please sign in to comment.