Skip to content

Commit fdc01b6

Browse files
committed
datetime-card
0 parents  commit fdc01b6

22 files changed

+16754
-0
lines changed

.babelrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"node": "current"
8+
}
9+
}
10+
]
11+
]
12+
}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/node_modules/
2+
/dist/
3+
4+
.DS_Store
5+
coverage

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["svelte.svelte-vscode"]
3+
}

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Datetime Card
2+
A minimalistic card for [Home Assistant]( https://github.com/home-assistant/core) Lovelace UI which shows how many days it has been between any input_datetime and today.
3+
4+
Useful to remind you how many days it has been since you replaced your water filter or you watered your favoirite plants.
5+
6+
![chinese_money](images/chinese_money.png "Chinese money")
7+
## Installation
8+
9+
As alternative you can download [datetime-card.js](http://github.com/a-p-z/datetime-card/dist/datetime-card.js) to your `configuration/www` folder and cofigure Lovelace to load it:
10+
```yaml
11+
lovelace:
12+
mode: yaml
13+
resources:
14+
- url: /local/datetime-card.js
15+
type: module
16+
```
17+
18+
## TODO
19+
- [ ] Add the repository to HACS
20+
- [ ] Add autocomplete in the editor for entities
21+
- [ ] Add dnd in the editor for entities

hacs.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "Datetime Card",
3+
"render_readme": true,
4+
"domains": [
5+
"input_datetime"
6+
]
7+
}

images/chinese_money.png

41.2 KB
Loading

0 commit comments

Comments
 (0)