forked from TheMClaeys/day-countdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
day-countdown.js
157 lines (133 loc) · 27.2 KB
/
day-countdown.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/*
* Copyright (C) 2018 Scott Harvey <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
class DayCountdown extends HTMLElement {
// The "HASS Setter" (hass) function is triggered every time something in HA changes
// Therefore, try to keep it limited to code that has to run all the time. Move everything
// else down below, inside the 'setConfig' section.
set hass(hass) {
const target = this.config.date;
function date_diff() {
var now = new Date();
var then = new Date(target);
if (now < then) {
var timeDiff = Math.abs(then.getTime() - now.getTime());
var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24));
if (then.getTime() < now.getTime()) {
diffDays = diffDays * -1;
}
return diffDays;
} else if (then < now) {
var timeDiff = Math.abs(now.getTime() - then.getTime());
var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24) - 1);
if (now.getTime() < then.getTime()) {
diffDays = 5;
}
return diffDays;
}
}
const days = date_diff();
// ---- this midsection is what gets displayed -----
this.content.innerHTML = `
<br>
<div align=center>
<p style="font-size:20px;">${this.config.phrase}</p>
<p style="font-size:35px;"><strong>${days}</strong></p>
</div>
`;
} // end of HASS setter
// ---- display section ends at close brace above ----
// Unlke hass, the setConfig function sets up the card and only runs when the card is first
// set up or when the config changes.
setConfig(config) {
if (!config.date) {
throw new Error('You need to provide a date or all of this is pointless!');
}
this.config = config;
this.config.px = 0;
// set up "card" - Lovelace HTML element
const card = document.createElement('ha-card');
this.content = document.createElement('div');
this.content.style.padding = '0 16px 16px';
card.appendChild(this.content);
this.appendChild(card);
if (!this.config.title) {
card.header = "";
} else {
card.header = this.config.title;
}
if (!this.config.phrase) {
var now = new Date();
var then = new Date(this.config.date);
var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
if (now < then) {
this.config.phrase = "Days till Flower";
} else if (then < now) {
this.config.phrase = "Days of Flower"
}
}
// determine icon size
var px;
switch (this.config.icon_size) {
case "small":
px = 32;
break;
case "medium":
px = 64;
break;
case "large":
px = 128;
break;
default:
px = 32;
}
// "hide" icon by setting it to 0px high
if (this.config.hide_icon) {
this.config.px = 0;
} else {
this.config.px = px;
}
// Base64-encoded PNG icons 64px high
function getIconData(iconNum) {
var iconData;
iconData = [
"iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABYgAAAWIBXyfQUwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAc2SURBVHic7Zt9TFvXGcZ/NjSI5jZkTLkQxLCJkVI2EikkbbfaJKxaJP/TrlOazrGaBlQp0raUoW4CYalhAoEFUhaadJqUrRtRI8crWlVVW8cUrYMOs2Vrky2iQZVggIXS2JESIAZqY/vuD9t35sPGmGtThzzS1T0657zvfd7nnvd+nHMvkiQRawPMwDXgfnhvjtc/E23jOaoDpBW2ugRIZIxtLEc5wFzY+A7wq/BeCtfnxCGRUbaxnFVGqf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QFphqE6vRplxs3bmalpfefdXtVrVj8JFyg+GUyGXoLPYYs6dQYkgXyBoqOVl0tuurSSS1/qVy0mOu0cceFNpVSucQj45n/8PgHgDgPCgpSclpb3Y8MDavmwza6a4zbkg+nwQ0goaSk++A6fO6rIAupFGQebBBikGm0soD+YL+zZGx4CbA7j8cD7FJKKaKflvXJXvwPm4Vxj6lSDZNI5IyMTJlMviAFLej3bNYR0HchIWFSaQ/w7IvvtEC3lsBRO3bshMqsra1LTk5ekHoXaaWlZcC5WVnZ8FqYV9C9IGagjNDFWRiXCWwBmhC2d6gqXRZrb+/45JM/MRn14BgwDSqz+mbNtL3gEgyGBCgOMolMgYlRWgo5raqigSaY0bUGw38AlMyNwaOkQtgAAAAASUVORK5CYII="
];
return iconData[iconNum];
}
// did someone forget the 'icon_number' parameter? Default to the first.
var icon_num = 1;
if (!this.config.icon_number) {
icon_num = 1;
} else {
icon_num = this.config.icon_number;
}
this.config.iconData = getIconData(icon_num - 1);
} // end of setConfig
// The height of your card. Home Assistant uses this to automatically
// distribute all cards over the available columns.
getCardSize() {
return 1;
}
}
customElements.define('day-countdown', DayCountdown);