├── themes ├── dusk │ ├── clock │ │ ├── 0-1.png │ │ ├── 0-2.png │ │ ├── 0-3.png │ │ ├── 0.png │ │ ├── 1-1.png │ │ ├── 1-2.png │ │ ├── 1-3.png │ │ ├── 1.png │ │ ├── 2-1.png │ │ ├── 2-2.png │ │ ├── 2-3.png │ │ ├── 2.png │ │ ├── 3-1.png │ │ ├── 3-2.png │ │ ├── 3-3.png │ │ ├── 3.png │ │ ├── 4-1.png │ │ ├── 4-2.png │ │ ├── 4-3.png │ │ ├── 4.png │ │ ├── 5-1.png │ │ ├── 5-2.png │ │ ├── 5-3.png │ │ ├── 5.png │ │ ├── 6-1.png │ │ ├── 6-2.png │ │ ├── 6-3.png │ │ ├── 6.png │ │ ├── 7-1.png │ │ ├── 7-2.png │ │ ├── 7-3.png │ │ ├── 7.png │ │ ├── 8-1.png │ │ ├── 8-2.png │ │ ├── 8-3.png │ │ ├── 8.png │ │ ├── 9-1.png │ │ ├── 9-2.png │ │ ├── 9-3.png │ │ ├── 9.png │ │ ├── am.png │ │ ├── apm.png │ │ ├── pm.png │ │ ├── 001-1.png │ │ ├── 001-2.png │ │ ├── 001-3.png │ │ ├── 01-1.png │ │ ├── 01-2.png │ │ ├── 01-3.png │ │ ├── 11-1.png │ │ ├── 11-2.png │ │ ├── 11-3.png │ │ ├── 111-1.png │ │ ├── 111-2.png │ │ ├── 111-3.png │ │ ├── 21-1.png │ │ ├── 21-2.png │ │ ├── 21-3.png │ │ ├── 211-1.png │ │ ├── 211-2.png │ │ ├── 211-3.png │ │ ├── 31-1.png │ │ ├── 31-2.png │ │ ├── 31-3.png │ │ ├── 311-1.png │ │ ├── 311-2.png │ │ ├── 311-3.png │ │ ├── 41-1.png │ │ ├── 41-2.png │ │ ├── 41-3.png │ │ ├── 51-1.png │ │ ├── 51-2.png │ │ ├── 51-3.png │ │ ├── 511-1.png │ │ ├── 511-2.png │ │ ├── 511-3.png │ │ ├── dots.png │ │ ├── clockbg1.png │ │ ├── clockbg2.png │ │ ├── clockbg3.png │ │ ├── clockbg4.png │ │ ├── clockbg5.png │ │ ├── clockbg6.png │ │ └── clockbg-blank.png │ ├── forecast.png │ ├── background.png │ ├── refresh_red.png │ ├── refresh_grey.png │ └── weather │ │ ├── htc │ │ ├── na.png │ │ ├── fog.png │ │ ├── hail.png │ │ ├── blank.png │ │ ├── cloudy.png │ │ ├── night.png │ │ ├── pouring.png │ │ ├── snowy.png │ │ ├── sunny.png │ │ ├── thunder.png │ │ ├── night-fog.png │ │ ├── partlycloudy.png │ │ ├── snowy-rainy.png │ │ └── cloudy-night-3.png │ │ └── default │ │ ├── fog.png │ │ ├── na.png │ │ ├── blank.png │ │ ├── hail.png │ │ ├── night.png │ │ ├── snowy.png │ │ ├── sunny.png │ │ ├── cloudy.png │ │ ├── pouring.png │ │ ├── thunder.png │ │ ├── night-fog.png │ │ ├── cloudy night.png │ │ ├── partlycloudy.png │ │ └── snowy-rainy.png └── default │ ├── clock │ ├── 0.png │ ├── 1.png │ ├── 2.png │ ├── 3.png │ ├── 4.png │ ├── 5.png │ ├── 6.png │ ├── 7.png │ ├── 8.png │ ├── 9.png │ ├── am.png │ ├── pm.png │ ├── 0-1.png │ ├── 0-2.png │ ├── 0-3.png │ ├── 001-1.png │ ├── 001-2.png │ ├── 001-3.png │ ├── 01-1.png │ ├── 01-2.png │ ├── 01-3.png │ ├── 1-1.png │ ├── 1-2.png │ ├── 1-3.png │ ├── 11-1.png │ ├── 11-2.png │ ├── 11-3.png │ ├── 111-1.png │ ├── 111-2.png │ ├── 111-3.png │ ├── 2-1.png │ ├── 2-2.png │ ├── 2-3.png │ ├── 21-1.png │ ├── 21-2.png │ ├── 21-3.png │ ├── 211-1.png │ ├── 211-2.png │ ├── 211-3.png │ ├── 3-1.png │ ├── 3-2.png │ ├── 3-3.png │ ├── 31-1.png │ ├── 31-2.png │ ├── 31-3.png │ ├── 311-1.png │ ├── 311-2.png │ ├── 311-3.png │ ├── 4-1.png │ ├── 4-2.png │ ├── 4-3.png │ ├── 41-1.png │ ├── 41-2.png │ ├── 41-3.png │ ├── 5-1.png │ ├── 5-2.png │ ├── 5-3.png │ ├── 51-1.png │ ├── 51-2.png │ ├── 51-3.png │ ├── 511-1.png │ ├── 511-2.png │ ├── 511-3.png │ ├── 6-1.png │ ├── 6-2.png │ ├── 6-3.png │ ├── 7-1.png │ ├── 7-2.png │ ├── 7-3.png │ ├── 8-1.png │ ├── 8-2.png │ ├── 8-3.png │ ├── 9-1.png │ ├── 9-2.png │ ├── 9-3.png │ ├── apm.png │ ├── clockbg1.png │ ├── clockbg2.png │ ├── clockbg3.png │ ├── clockbg4.png │ ├── clockbg5.png │ ├── clockbg6.png │ └── clockbg-blank.png │ ├── background.png │ ├── refresh_red.png │ ├── refresh_grey.png │ ├── weather │ ├── picto │ │ ├── na.png │ │ ├── fog.png │ │ ├── hail.png │ │ ├── blank.png │ │ ├── cloudy.png │ │ ├── night.png │ │ ├── pouring.png │ │ ├── snowy.png │ │ ├── sunny.png │ │ ├── thunder.png │ │ ├── night-fog.png │ │ ├── partlycloudy.png │ │ ├── snowy-rainy.png │ │ └── cloudy-night-3.png │ └── default │ │ ├── na.png │ │ ├── blank.png │ │ ├── fog.png │ │ ├── hail.png │ │ ├── night.png │ │ ├── snowy.png │ │ ├── sunny.png │ │ ├── cloudy.png │ │ ├── pouring.png │ │ ├── thunder.png │ │ ├── night-fog.png │ │ ├── partlycloudy.png │ │ ├── snowy-rainy.png │ │ └── cloudy-night-3.png │ └── background_forecast.png ├── regional.js ├── README.md ├── themes.js ├── htc-flipclock-weather.js └── lib └── jquery-3.4.1.min.js /themes/dusk/clock/0-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/0-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/0-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/0-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/0-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/0-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/0.png -------------------------------------------------------------------------------- /themes/dusk/clock/1-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/1-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/1-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/1-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/1-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/1-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/1.png -------------------------------------------------------------------------------- /themes/dusk/clock/2-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/2-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/2-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/2-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/2-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/2-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/2.png -------------------------------------------------------------------------------- /themes/dusk/clock/3-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/3-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/3-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/3-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/3-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/3-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/3.png -------------------------------------------------------------------------------- /themes/dusk/clock/4-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/4-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/4-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/4-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/4-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/4-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/4.png -------------------------------------------------------------------------------- /themes/dusk/clock/5-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/5-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/5-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/5-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/5-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/5-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/5.png -------------------------------------------------------------------------------- /themes/dusk/clock/6-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/6-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/6-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/6-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/6-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/6-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/6.png -------------------------------------------------------------------------------- /themes/dusk/clock/7-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/7-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/7-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/7-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/7-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/7-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/7.png -------------------------------------------------------------------------------- /themes/dusk/clock/8-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/8-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/8-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/8-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/8-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/8-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/8.png -------------------------------------------------------------------------------- /themes/dusk/clock/9-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/9-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/9-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/9-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/9-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/9-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/9.png -------------------------------------------------------------------------------- /themes/dusk/clock/am.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/am.png -------------------------------------------------------------------------------- /themes/dusk/clock/apm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/apm.png -------------------------------------------------------------------------------- /themes/dusk/clock/pm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/pm.png -------------------------------------------------------------------------------- /themes/dusk/forecast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/forecast.png -------------------------------------------------------------------------------- /themes/default/clock/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/0.png -------------------------------------------------------------------------------- /themes/default/clock/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/1.png -------------------------------------------------------------------------------- /themes/default/clock/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/2.png -------------------------------------------------------------------------------- /themes/default/clock/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/3.png -------------------------------------------------------------------------------- /themes/default/clock/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/4.png -------------------------------------------------------------------------------- /themes/default/clock/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/5.png -------------------------------------------------------------------------------- /themes/default/clock/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/6.png -------------------------------------------------------------------------------- /themes/default/clock/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/7.png -------------------------------------------------------------------------------- /themes/default/clock/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/8.png -------------------------------------------------------------------------------- /themes/default/clock/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/9.png -------------------------------------------------------------------------------- /themes/default/clock/am.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/am.png -------------------------------------------------------------------------------- /themes/default/clock/pm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/pm.png -------------------------------------------------------------------------------- /themes/dusk/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/background.png -------------------------------------------------------------------------------- /themes/dusk/clock/001-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/001-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/001-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/001-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/001-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/001-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/01-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/01-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/01-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/01-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/01-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/01-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/11-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/11-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/11-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/11-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/11-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/11-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/111-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/111-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/111-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/111-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/111-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/111-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/21-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/21-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/21-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/21-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/21-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/21-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/211-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/211-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/211-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/211-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/211-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/211-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/31-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/31-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/31-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/31-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/31-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/31-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/311-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/311-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/311-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/311-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/311-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/311-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/41-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/41-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/41-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/41-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/41-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/41-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/51-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/51-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/51-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/51-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/51-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/51-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/511-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/511-1.png -------------------------------------------------------------------------------- /themes/dusk/clock/511-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/511-2.png -------------------------------------------------------------------------------- /themes/dusk/clock/511-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/511-3.png -------------------------------------------------------------------------------- /themes/dusk/clock/dots.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/dots.png -------------------------------------------------------------------------------- /themes/dusk/refresh_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/refresh_red.png -------------------------------------------------------------------------------- /themes/default/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/background.png -------------------------------------------------------------------------------- /themes/default/clock/0-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/0-1.png -------------------------------------------------------------------------------- /themes/default/clock/0-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/0-2.png -------------------------------------------------------------------------------- /themes/default/clock/0-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/0-3.png -------------------------------------------------------------------------------- /themes/default/clock/001-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/001-1.png -------------------------------------------------------------------------------- /themes/default/clock/001-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/001-2.png -------------------------------------------------------------------------------- /themes/default/clock/001-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/001-3.png -------------------------------------------------------------------------------- /themes/default/clock/01-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/01-1.png -------------------------------------------------------------------------------- /themes/default/clock/01-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/01-2.png -------------------------------------------------------------------------------- /themes/default/clock/01-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/01-3.png -------------------------------------------------------------------------------- /themes/default/clock/1-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/1-1.png -------------------------------------------------------------------------------- /themes/default/clock/1-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/1-2.png -------------------------------------------------------------------------------- /themes/default/clock/1-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/1-3.png -------------------------------------------------------------------------------- /themes/default/clock/11-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/11-1.png -------------------------------------------------------------------------------- /themes/default/clock/11-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/11-2.png -------------------------------------------------------------------------------- /themes/default/clock/11-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/11-3.png -------------------------------------------------------------------------------- /themes/default/clock/111-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/111-1.png -------------------------------------------------------------------------------- /themes/default/clock/111-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/111-2.png -------------------------------------------------------------------------------- /themes/default/clock/111-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/111-3.png -------------------------------------------------------------------------------- /themes/default/clock/2-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/2-1.png -------------------------------------------------------------------------------- /themes/default/clock/2-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/2-2.png -------------------------------------------------------------------------------- /themes/default/clock/2-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/2-3.png -------------------------------------------------------------------------------- /themes/default/clock/21-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/21-1.png -------------------------------------------------------------------------------- /themes/default/clock/21-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/21-2.png -------------------------------------------------------------------------------- /themes/default/clock/21-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/21-3.png -------------------------------------------------------------------------------- /themes/default/clock/211-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/211-1.png -------------------------------------------------------------------------------- /themes/default/clock/211-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/211-2.png -------------------------------------------------------------------------------- /themes/default/clock/211-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/211-3.png -------------------------------------------------------------------------------- /themes/default/clock/3-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/3-1.png -------------------------------------------------------------------------------- /themes/default/clock/3-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/3-2.png -------------------------------------------------------------------------------- /themes/default/clock/3-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/3-3.png -------------------------------------------------------------------------------- /themes/default/clock/31-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/31-1.png -------------------------------------------------------------------------------- /themes/default/clock/31-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/31-2.png -------------------------------------------------------------------------------- /themes/default/clock/31-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/31-3.png -------------------------------------------------------------------------------- /themes/default/clock/311-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/311-1.png -------------------------------------------------------------------------------- /themes/default/clock/311-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/311-2.png -------------------------------------------------------------------------------- /themes/default/clock/311-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/311-3.png -------------------------------------------------------------------------------- /themes/default/clock/4-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/4-1.png -------------------------------------------------------------------------------- /themes/default/clock/4-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/4-2.png -------------------------------------------------------------------------------- /themes/default/clock/4-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/4-3.png -------------------------------------------------------------------------------- /themes/default/clock/41-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/41-1.png -------------------------------------------------------------------------------- /themes/default/clock/41-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/41-2.png -------------------------------------------------------------------------------- /themes/default/clock/41-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/41-3.png -------------------------------------------------------------------------------- /themes/default/clock/5-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/5-1.png -------------------------------------------------------------------------------- /themes/default/clock/5-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/5-2.png -------------------------------------------------------------------------------- /themes/default/clock/5-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/5-3.png -------------------------------------------------------------------------------- /themes/default/clock/51-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/51-1.png -------------------------------------------------------------------------------- /themes/default/clock/51-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/51-2.png -------------------------------------------------------------------------------- /themes/default/clock/51-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/51-3.png -------------------------------------------------------------------------------- /themes/default/clock/511-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/511-1.png -------------------------------------------------------------------------------- /themes/default/clock/511-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/511-2.png -------------------------------------------------------------------------------- /themes/default/clock/511-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/511-3.png -------------------------------------------------------------------------------- /themes/default/clock/6-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/6-1.png -------------------------------------------------------------------------------- /themes/default/clock/6-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/6-2.png -------------------------------------------------------------------------------- /themes/default/clock/6-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/6-3.png -------------------------------------------------------------------------------- /themes/default/clock/7-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/7-1.png -------------------------------------------------------------------------------- /themes/default/clock/7-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/7-2.png -------------------------------------------------------------------------------- /themes/default/clock/7-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/7-3.png -------------------------------------------------------------------------------- /themes/default/clock/8-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/8-1.png -------------------------------------------------------------------------------- /themes/default/clock/8-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/8-2.png -------------------------------------------------------------------------------- /themes/default/clock/8-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/8-3.png -------------------------------------------------------------------------------- /themes/default/clock/9-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/9-1.png -------------------------------------------------------------------------------- /themes/default/clock/9-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/9-2.png -------------------------------------------------------------------------------- /themes/default/clock/9-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/9-3.png -------------------------------------------------------------------------------- /themes/default/clock/apm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/apm.png -------------------------------------------------------------------------------- /themes/default/refresh_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/refresh_red.png -------------------------------------------------------------------------------- /themes/dusk/clock/clockbg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/clockbg1.png -------------------------------------------------------------------------------- /themes/dusk/clock/clockbg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/clockbg2.png -------------------------------------------------------------------------------- /themes/dusk/clock/clockbg3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/clockbg3.png -------------------------------------------------------------------------------- /themes/dusk/clock/clockbg4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/clockbg4.png -------------------------------------------------------------------------------- /themes/dusk/clock/clockbg5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/clockbg5.png -------------------------------------------------------------------------------- /themes/dusk/clock/clockbg6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/clockbg6.png -------------------------------------------------------------------------------- /themes/dusk/refresh_grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/refresh_grey.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/na.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/na.png -------------------------------------------------------------------------------- /themes/default/refresh_grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/refresh_grey.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/fog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/fog.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/hail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/hail.png -------------------------------------------------------------------------------- /themes/default/clock/clockbg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/clockbg1.png -------------------------------------------------------------------------------- /themes/default/clock/clockbg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/clockbg2.png -------------------------------------------------------------------------------- /themes/default/clock/clockbg3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/clockbg3.png -------------------------------------------------------------------------------- /themes/default/clock/clockbg4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/clockbg4.png -------------------------------------------------------------------------------- /themes/default/clock/clockbg5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/clockbg5.png -------------------------------------------------------------------------------- /themes/default/clock/clockbg6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/clockbg6.png -------------------------------------------------------------------------------- /themes/default/weather/picto/na.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/na.png -------------------------------------------------------------------------------- /themes/dusk/clock/clockbg-blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/clock/clockbg-blank.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/fog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/fog.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/na.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/na.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/blank.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/cloudy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/cloudy.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/night.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/night.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/pouring.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/pouring.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/snowy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/snowy.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/sunny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/sunny.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/thunder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/thunder.png -------------------------------------------------------------------------------- /themes/default/weather/default/na.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/na.png -------------------------------------------------------------------------------- /themes/default/weather/picto/fog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/fog.png -------------------------------------------------------------------------------- /themes/default/weather/picto/hail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/hail.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/blank.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/hail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/hail.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/night.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/night.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/snowy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/snowy.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/sunny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/sunny.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/night-fog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/night-fog.png -------------------------------------------------------------------------------- /themes/default/background_forecast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/background_forecast.png -------------------------------------------------------------------------------- /themes/default/clock/clockbg-blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/clock/clockbg-blank.png -------------------------------------------------------------------------------- /themes/default/weather/default/blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/blank.png -------------------------------------------------------------------------------- /themes/default/weather/default/fog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/fog.png -------------------------------------------------------------------------------- /themes/default/weather/default/hail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/hail.png -------------------------------------------------------------------------------- /themes/default/weather/default/night.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/night.png -------------------------------------------------------------------------------- /themes/default/weather/default/snowy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/snowy.png -------------------------------------------------------------------------------- /themes/default/weather/default/sunny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/sunny.png -------------------------------------------------------------------------------- /themes/default/weather/picto/blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/blank.png -------------------------------------------------------------------------------- /themes/default/weather/picto/cloudy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/cloudy.png -------------------------------------------------------------------------------- /themes/default/weather/picto/night.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/night.png -------------------------------------------------------------------------------- /themes/default/weather/picto/pouring.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/pouring.png -------------------------------------------------------------------------------- /themes/default/weather/picto/snowy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/snowy.png -------------------------------------------------------------------------------- /themes/default/weather/picto/sunny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/sunny.png -------------------------------------------------------------------------------- /themes/default/weather/picto/thunder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/thunder.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/cloudy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/cloudy.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/pouring.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/pouring.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/thunder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/thunder.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/partlycloudy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/partlycloudy.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/snowy-rainy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/snowy-rainy.png -------------------------------------------------------------------------------- /themes/default/weather/default/cloudy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/cloudy.png -------------------------------------------------------------------------------- /themes/default/weather/default/pouring.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/pouring.png -------------------------------------------------------------------------------- /themes/default/weather/default/thunder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/thunder.png -------------------------------------------------------------------------------- /themes/default/weather/picto/night-fog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/night-fog.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/night-fog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/night-fog.png -------------------------------------------------------------------------------- /themes/dusk/weather/htc/cloudy-night-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/htc/cloudy-night-3.png -------------------------------------------------------------------------------- /themes/default/weather/default/night-fog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/night-fog.png -------------------------------------------------------------------------------- /themes/default/weather/picto/partlycloudy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/partlycloudy.png -------------------------------------------------------------------------------- /themes/default/weather/picto/snowy-rainy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/snowy-rainy.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/cloudy night.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/cloudy night.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/partlycloudy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/partlycloudy.png -------------------------------------------------------------------------------- /themes/dusk/weather/default/snowy-rainy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/dusk/weather/default/snowy-rainy.png -------------------------------------------------------------------------------- /themes/default/weather/default/partlycloudy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/partlycloudy.png -------------------------------------------------------------------------------- /themes/default/weather/default/snowy-rainy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/snowy-rainy.png -------------------------------------------------------------------------------- /themes/default/weather/picto/cloudy-night-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/picto/cloudy-night-3.png -------------------------------------------------------------------------------- /themes/default/weather/default/cloudy-night-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamBiB/lovelace-htc-flipclock-weather/HEAD/themes/default/weather/default/cloudy-night-3.png -------------------------------------------------------------------------------- /regional.js: -------------------------------------------------------------------------------- 1 | export const regional = { 2 | 'ro': { 3 | monthNames: ['Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun', 'Iul', 'Aug', 'Sept', 'Oct', 'Noi', 'Dec'], 4 | dayNames: ['Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sam'], 5 | windDirections: ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSV','SV','VSV','V','VNV','NV','NVW','N'], 6 | lang: 'ro' 7 | }, 8 | 'en': { 9 | monthNames: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], 10 | dayNames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], 11 | windDirections: ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW','N'], 12 | lang: 'en' 13 | }, 14 | 'nl' : { 15 | monthNames: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'], 16 | dayNames: ['Zon', 'Maa', 'Din', 'Woe', 'Don', 'Vrij', 'Zat'], 17 | windDirections: ['N', 'NNO', 'NO', 'ONO', 'O', 'OZO', 'ZO', 'ZZO', 'Z', 'ZZW', 'ZW', 'WZW', 'W', 'WNW', 'NW', 'NNW', 'N'], 18 | lang: 'nl' 19 | }, 20 | 'cz':{ 21 | monthNames: ['Led', 'Ún', 'Bře', 'Dub', 'Kvě', 'Črv', 'Čvc', 'Srp', 'Zář', 'Říj', 'Lis', 'Pro'], 22 | dayNames: ['Ne', 'Po', 'Út', 'Stř', 'Čt', 'Pá', 'So'], 23 | windDirections: ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW','N'], 24 | lang: 'cz' 25 | }, 26 | 'sv':{ 27 | monthNames: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'], 28 | dayNames: ['Sön', 'Mån', 'Tis', 'Ons', 'Tor', 'Fre', 'Lör'], 29 | windDirections: ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW','N'], 30 | lang: 'sv' 31 | }, 32 | 'it':{ 33 | monthNames: ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'], 34 | dayNames: ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'], 35 | windDirections: ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW','N'], 36 | lang: 'it' 37 | }, 38 | 'pt':{ 39 | monthNames: ['Jan', 'Feb', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dec'], 40 | dayNames: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'], 41 | windDirections: ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW','N'], 42 | lang: 'pt' 43 | }, 44 | 'no':{ 45 | monthNames: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'], 46 | dayNames: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'], 47 | windDirections: ['N','NNØ','NØ','ØNØ','Ø','ØSØ','SØ','SSØ','S','SSV','SV','VSV','V','VNV','NV','NNV','N'], 48 | lang: 'no' 49 | }, 50 | 'dk':{ 51 | monthNames: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'], 52 | dayNames: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'], 53 | windDirections: ['N','NNØ','NØ','ØNØ','Ø','ØSØ','SØ','SSØ','S','SSV','SV','VSV','V','VNV','NV','NNV','N'], 54 | lang: 'dk' 55 | }, 56 | 'de': { 57 | monthNames: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sept', 'Okt', 'Nov', 'Dez'], 58 | dayNames: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], 59 | windDirections: ['N','NNO','NO','ONO','O','OSO','SO','SSO','S','SSW','SW','WSW','W','WNW','NW','NNW','N'], 60 | lang: 'de' 61 | }, 62 | 'fi': { 63 | monthNames: ['Tammi', 'Helmi', 'Maalis', 'Huhti', 'Touko', 'Kesä', 'Heinä', 'Elo', 'Syys', 'Loka', 'Marras', 'Joulu'], 64 | dayNames: ['Su', 'Ma', 'Ti', 'Ke', 'To', 'Pe', 'La'], 65 | windDirections: ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW','N'], 66 | lang: 'fi' 67 | }, 68 | 'fr': { 69 | monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'], 70 | dayNames: ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa'], 71 | windDirections: ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSO','SO','OSO','O','ONO','NO','NNO','N'], 72 | lang: 'fr' 73 | } 74 | }; 75 | 76 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HomeAssistant HTC Flipclock with Weather card 2 | [![](https://img.shields.io/github/release/ibBogdan/htc-hassio-weather-card.svg?style=flat-square)](https://github.com/ibBogdan/htc-hassio-weather-card/releases/latest) 3 | 4 | HTC Flip clock with weather for [Home Assistant](https://github.com/home-assistant/home-assistant) 5 | 6 | ### White theme 7 | ![image](https://user-images.githubusercontent.com/12171894/78888654-bfba4880-7a6a-11ea-9248-31db9ed43255.png) 8 | ### Dark theme 9 | ![image](https://user-images.githubusercontent.com/12171894/78888854-2b9cb100-7a6b-11ea-908a-949fbc2dd867.png) 10 | ### With custom entity 11 | ![image](https://user-images.githubusercontent.com/12171894/78868363-7ad2e980-7a4b-11ea-8d70-e10dd342c715.png) 12 | ### With a theme 13 | ![image](https://user-images.githubusercontent.com/12171894/96269414-02894a00-0fd3-11eb-9d23-37402ad2de36.png) 14 | 15 | # Support 16 | Hey dude! If you like it .. well :beers: or a :coffee: would be nice :D 17 | 18 | [![coffee](https://www.buymeacoffee.com/assets/img/custom_images/black_img.png)](https://www.buymeacoffee.com/fhc0C7A) 19 | 20 | ## Notes 21 | This version requires jQuery (already in the package). I'll probably do a version with no jQuery without the flip clock animation. 22 | 23 | ## Install 24 | 25 | ### REQUIREMENTS 26 | The time is based on time_date sensors. In order for the plugin to work you need to create the following sensors in your HA 27 | ``` 28 | platform: time_date 29 | display_options: 30 | - time 31 | - date 32 | - date_time 33 | - date_time_utc 34 | - date_time_iso 35 | - time_date 36 | - time_utc 37 | - beat 38 | ``` 39 | 40 | ### CLI install 41 | 42 | 1. Move into your `config/www/custom_ui` directory 43 | 44 | 2. Download `lovelace-htc-flipclock-weather` repo and add the `htc-weather` to step 1 folder. 45 | 46 | 3. Add a reference to `htc-flipclock-weather.js` inside your `ui-lovelace.yaml` or through the raw config editor gui. 47 | 48 | ```yaml 49 | resources: 50 | - url: /local/custom_ui/htc-weather/htc-flipclock-weather.js?v1.3.2 51 | type: module 52 | ``` 53 | 54 | 55 | ### Simple install 56 | * Not yet available. I'll see how to upload it to [HACS](https://github.com/custom-components/hacs) (Home Assistant Community Store) 57 | 58 | ## Updating 59 | 1. Simple, do the steps from CLI Install again :D 60 | 61 | ## Using the card 62 | 63 | ### Options 64 | 65 | #### Card options 66 | | Name | Type | Default | Description | 67 | |------|------|---------|-------------| 68 | | type | string | **required** | `custom:htc-weather-card` 69 | | entity | string | **required** | The entity_id from an entity within the `weather` domain. 70 | | name | string | optional | Set a custom name. 71 | | lang | string | optional | Set a language (ro/en/nl/cz available). 72 | | am_pm | string | optional | Set clock in AM/PM format. 73 | | svrOffset | int | optional | If you need offset on time (seconds). 74 | | renderForecast | bool | optional | Render forecast (only 4 days). 75 | | renderClock | bool | optional | Render clock. 76 | | renderDetails | bool | optional | Render sunt details and wind. 77 | | high_low_entity | bool | optional | Replace high / low temperature with a custom entity. Params available entity_id, name. Default high / low temperature today 78 | | renderDetails | bool | optional | Render sunt details and wind. 79 | | theme.name | | optional | Change theme (default/dusk). 80 | | theme.weather_icon_set | | optional | Change theme icon set. For default you have `picto` alternative. For dusk you have `htc` alternative 81 | 82 | ### Example usage 83 | 84 | #### Standard card 85 | ```yaml 86 | type: 'custom:htc-weather-card' 87 | entity: weather.home 88 | sun: sun.sun 89 | ``` 90 | #### With custom high_low_entity entity 91 | ```yaml 92 | type: 'custom:htc-weather-card' 93 | entity: weather.dark_sky 94 | sun: sun.sun 95 | high_low_entity: 96 | entity_id: sensor.time_utc 97 | name: UTC Time 98 | ``` 99 | #### Using a theme 100 | ```yaml 101 | type: 'custom:htc-weather-card' 102 | entity: weather.dark_sky 103 | high_low_entity: 104 | entity_id: sensor.time_utc 105 | name: UTC Time 106 | renderForecast: true 107 | sun: sun.sun 108 | theme: 109 | name: dusk 110 | weather_icon_set: default 111 | ``` 112 | #### Using a theme with custom icons 113 | ```yaml 114 | type: 'custom:htc-weather-card' 115 | entity: weather.dark_sky 116 | high_low_entity: 117 | entity_id: sensor.time_utc 118 | name: UTC Time 119 | renderForecast: true 120 | sun: sun.sun 121 | theme: 122 | name: dusk 123 | weather_icon_set: htc 124 | ``` 125 | ## Problems? 126 | There might be :D .. So give me a shout for issues or even updates :D 127 | 128 | ## License 129 | This project is under the MIT license. 130 | -------------------------------------------------------------------------------- /themes.js: -------------------------------------------------------------------------------- 1 | export const themes = { 2 | 'default': { 3 | css: `#htc-weather-card-container { 4 | width:440px; 5 | height:448px; 6 | background-repeat:no-repeat!important; 7 | position:relative; 8 | overflow:hidden; 9 | font-family:Arial, Verdana, Tahoma, Helvetica, sans-serif; 10 | margin: auto; 11 | background: url("../local/custom_ui/htc-weather/themes/default/background.png") 50% 40px no-repeat; 12 | } 13 | 14 | #htc-weather-card-container p { 15 | margin:0; 16 | padding:0; 17 | } 18 | 19 | #htc-clock { 20 | float:left; 21 | margin-left:18px; 22 | } 23 | 24 | #hours, #minutes { 25 | width:200px; 26 | height:200px; 27 | float:left; 28 | position:relative; 29 | } 30 | 31 | #minutes { 32 | margin-left:4px; 33 | } 34 | 35 | #hours_bg, #minutes_bg { 36 | width:100%; 37 | height:100%; 38 | position:absolute; 39 | top:0; 40 | left:0; 41 | z-index:99; 42 | } 43 | 44 | .first_digit { 45 | width:80px; 46 | height:100%; 47 | position:absolute; 48 | top:0; 49 | left:20px; 50 | z-index:100; 51 | } 52 | 53 | .second_digit { 54 | width:80px; 55 | height:100%; 56 | position:absolute; 57 | top:0; 58 | left:100px; 59 | z-index:100; 60 | } 61 | 62 | .line { 63 | width:175px; 64 | height:2px; 65 | background:#efefef; 66 | position:absolute; 67 | top:97px; 68 | left:12px; 69 | z-index:101; 70 | font-size:1px; 71 | } 72 | 73 | #am_pm { 74 | position:absolute; 75 | top:156px; 76 | left:130px; 77 | z-index:110; 78 | } 79 | 80 | 81 | #htc-weather { 82 | width:100%; 83 | height:313px; 84 | position:absolute; 85 | top:135px; 86 | left:0; 87 | z-index:105; 88 | } 89 | 90 | #htc-weather .loading { 91 | float:left; 92 | margin:90px 0 0 45px; 93 | } 94 | #htc-weather #local { 95 | float:left; 96 | margin:70px 0 0 15px; 97 | color: #fff 98 | } 99 | 100 | .city { 101 | font-size:14pt; 102 | } 103 | .high_low { 104 | font-size:18pt; 105 | } 106 | 107 | #htc-weather #temp { 108 | float:right; 109 | margin:70px 15px 0 0; 110 | text-align:right; 111 | color:#fff 112 | } 113 | 114 | #htc-weather #date { 115 | font-size:14pt; 116 | padding-right:2px; 117 | } 118 | 119 | .temp { 120 | font-size:18pt; 121 | padding:0; 122 | } 123 | 124 | .temp .metric { 125 | margin-left:-3px; 126 | } 127 | 128 | 129 | #htc-weather #forecast { 130 | width:440px; 131 | height:100px; 132 | list-style:none; 133 | margin:175px 0 0 0px; 134 | padding:0; 135 | position: relative; 136 | } 137 | #htc-weather #forecast li:first-child { 138 | border-left: 0px solid; 139 | } 140 | #htc-weather #forecast li { 141 | width:24%; 142 | height:100%; 143 | float:left; 144 | text-align:center; 145 | border-left: 0.1em solid rgb(217, 217, 217); 146 | } 147 | 148 | 149 | #htc-weather #forecast li p { 150 | width:100%; 151 | height:15px; 152 | margin:0; 153 | padding:0; 154 | font-size:18pt; 155 | line-height:20px; 156 | } 157 | 158 | #htc-weather #forecast li .dayname { 159 | font-size:12pt; 160 | font-weight: bold; 161 | } 162 | 163 | #htc-weather #forecast li img { 164 | width:106px; 165 | } 166 | 167 | #htc-weather #forecast li .daytemp { 168 | position:absolute; 169 | bottom: 0px; 170 | width: 25%; 171 | text-align:center; 172 | font-weight: bold 173 | } 174 | 175 | 176 | #htc-weather #bottom { 177 | text-align:right; 178 | margin: 0px 14px 0px 1px; 179 | height: 25px; 180 | } 181 | #htc-weather #sun_details { 182 | margin: 4px 0px 0px 0px; 183 | float: left; 184 | text-align:left; 185 | font-size: 14px; 186 | } 187 | 188 | #htc-weather #wind_details{ 189 | margin: 4px 0px 0px 0px; 190 | float: right; 191 | text-align: left; 192 | font-size: 14px; 193 | } 194 | 195 | #htc-weather #update { 196 | margin:4px 0px 0px 0px; 197 | float:right; 198 | text-align:right; 199 | font-size:10px; 200 | clear: both; 201 | } 202 | 203 | #htc-weather #update img { 204 | margin:-2px 4px 0 0; 205 | vertical-align:middle; 206 | width: 10px; 207 | }`, 208 | 209 | }, 210 | 'dusk': { 211 | css: `#htc-weather-card-container { 212 | width:440px; 213 | height:448px; 214 | background-repeat: no-repeat!important; 215 | background-size:100%!important; 216 | position:relative; 217 | overflow:hidden; 218 | font-family:Arial, Verdana, Tahoma, Helvetica, sans-serif; 219 | margin: auto; 220 | } 221 | 222 | #htc-weather-card-container p { 223 | margin:0; 224 | padding:0; 225 | } 226 | 227 | #htc-clock { 228 | float:left; 229 | margin-left:18px; 230 | 231 | } 232 | 233 | #hours, #minutes { 234 | width:200px; 235 | height:200px; 236 | float:left; 237 | position:relative; 238 | } 239 | 240 | #minutes { 241 | margin-left:4px; 242 | } 243 | 244 | #hours_bg, #minutes_bg { 245 | width:100%; 246 | height:100%; 247 | position:absolute; 248 | top:0; 249 | left:0; 250 | z-index:99; 251 | } 252 | 253 | .first_digit { 254 | width:80px; 255 | height:100%; 256 | position:absolute; 257 | top:0; 258 | left:20px; 259 | z-index:100; 260 | } 261 | 262 | .second_digit { 263 | width:80px; 264 | height:100%; 265 | position:absolute; 266 | top:0; 267 | left:100px; 268 | z-index:100; 269 | } 270 | 271 | .line { 272 | width:0px; 273 | height:0px; 274 | background:#efefef; 275 | position:absolute; 276 | top:97px; 277 | left:12px; 278 | z-index:101; 279 | font-size:1px; 280 | } 281 | 282 | #am_pm { 283 | position:absolute; 284 | top:156px; 285 | left:130px; 286 | z-index:110; 287 | } 288 | 289 | 290 | #htc-weather { 291 | width:100%; 292 | height:313px; 293 | position:absolute; 294 | top:135px; 295 | left:0; 296 | z-index:105; 297 | } 298 | 299 | #htc-weather .loading { 300 | float:left; 301 | margin:90px 0 0 45px; 302 | } 303 | #htc-weather #local { 304 | float:left; 305 | margin:70px 0 0 30px; 306 | color: #fff 307 | } 308 | 309 | .city { 310 | font-size:14pt; 311 | } 312 | .high_low { 313 | font-size:18pt; 314 | } 315 | 316 | #htc-weather #temp { 317 | float:right; 318 | margin:70px 30px 0 0; 319 | text-align:right; 320 | color:#fff 321 | } 322 | 323 | #htc-weather #date { 324 | font-size:14pt; 325 | padding-right:2px; 326 | } 327 | 328 | .temp { 329 | font-size:18pt; 330 | padding:0; 331 | } 332 | 333 | .temp .metric { 334 | margin-left:-3px; 335 | } 336 | 337 | 338 | #htc-weather #forecast { 339 | width:440px; 340 | height:100px; 341 | list-style:none; 342 | margin:150px 0 0 0px; 343 | padding:0; 344 | position: relative; 345 | background-repeat: no-repeat; 346 | background-size:cover !important 347 | } 348 | #htc-weather #forecast li:first-child { 349 | border-left: 0px solid; 350 | } 351 | #htc-weather #forecast li { 352 | width:24%; 353 | height:100%; 354 | float:left; 355 | text-align:center; 356 | border-left: 0.1em solid rgb(217, 217, 217); 357 | } 358 | 359 | 360 | #htc-weather #forecast li p { 361 | width:100%; 362 | height:15px; 363 | margin:0; 364 | padding:0; 365 | font-size:18pt; 366 | line-height:20px; 367 | } 368 | 369 | #htc-weather #forecast li .dayname { 370 | font-size:12pt; 371 | font-weight: bold; 372 | } 373 | 374 | #htc-weather #forecast li img { 375 | width:70px; 376 | } 377 | 378 | #htc-weather #forecast li .daytemp { 379 | position:absolute; 380 | bottom: 0px; 381 | width: 25%; 382 | text-align:center; 383 | font-weight: bold 384 | } 385 | 386 | 387 | #htc-weather #bottom { 388 | text-align:right; 389 | margin: 0px 14px 0px 1px; 390 | height: 25px; 391 | } 392 | #htc-weather #sun_details { 393 | margin: 4px 0px 0px 0px; 394 | float: left; 395 | text-align:left; 396 | font-size: 14px; 397 | } 398 | 399 | #htc-weather #wind_details{ 400 | margin: 4px 0px 0px 0px; 401 | float: right; 402 | text-align: left; 403 | font-size: 14px; 404 | } 405 | 406 | #htc-weather #update { 407 | margin:4px 0px 0px 0px; 408 | float:right; 409 | text-align:right; 410 | font-size:10px; 411 | clear: both; 412 | } 413 | 414 | #htc-weather #update img { 415 | margin:-2px 4px 0 0; 416 | vertical-align:middle; 417 | width: 10px; 418 | }` 419 | } 420 | }; 421 | 422 | -------------------------------------------------------------------------------- /htc-flipclock-weather.js: -------------------------------------------------------------------------------- 1 | import "https://unpkg.com/wired-card@0.8.1/wired-card.js?module"; 2 | import "https://unpkg.com/wired-toggle@0.8.0/wired-toggle.js?module"; 3 | import { 4 | LitElement, 5 | html, 6 | css 7 | } from "https://unpkg.com/lit-element@2.0.1/lit-element.js?module"; 8 | var old_time = {} 9 | var intervalSetNewTime = '' 10 | import { regional } from './regional.js?v1.1.5'; 11 | import { themes } from './themes.js?v1.0.2'; 12 | var forecastFinished = false; 13 | var forecasts = {}; 14 | const weatherDefaults = { 15 | widgetPath: '/local/custom_ui/htc-weather/', 16 | lang: 'en', 17 | am_pm: false, 18 | svrOffset: 0, 19 | render: true, 20 | renderClock: true, 21 | renderDetails: true, 22 | high_low_entity: false, 23 | theme: { 24 | name: 'default', 25 | weather_icon_set: 'default' 26 | } 27 | }; 28 | weatherDefaults['imagesPath'] = weatherDefaults.widgetPath + 'themes/' + weatherDefaults.theme['name'] + '/' 29 | weatherDefaults['clockImagesPath'] = weatherDefaults.imagesPath + 'clock/' 30 | weatherDefaults['weatherImagesPath'] = weatherDefaults.imagesPath + 'weather/' + weatherDefaults.theme['weather_icon_set'] + '/' 31 | 32 | const htcVersion = "1.4.1"; 33 | 34 | 35 | const weatherIconsDay = { 36 | clear: "sunny", 37 | "clear-night": "night", 38 | cloudy: "cloudy", 39 | fog: "fog", 40 | hail: "hail", 41 | lightning: "thunder", 42 | "lightning-rainy": "thunder", 43 | partlycloudy: "partlycloudy", 44 | pouring: "pouring", 45 | rainy: "pouring", 46 | snowy: "snowy", 47 | "snowy-rainy": "snowy-rainy", 48 | sunny: "sunny", 49 | windy: "cloudy", 50 | "windy-variant": "cloudy-day-3", 51 | exceptional: "na" 52 | }; 53 | 54 | const weatherIconsNight = { 55 | ...weatherIconsDay, 56 | fog: "fog", 57 | clear: "night", 58 | sunny: "night", 59 | partlycloudy: "cloudy-night-3", 60 | "windy-variant": "cloudy-night-3" 61 | }; 62 | 63 | 64 | 65 | const fireEvent = (node, type, detail, options) => { 66 | options = options || {}; 67 | detail = detail === null || detail === undefined ? {} : detail; 68 | const event = new Event(type, { 69 | bubbles: options.bubbles === undefined ? true : options.bubbles, 70 | cancelable: Boolean(options.cancelable), 71 | composed: options.composed === undefined ? true : options.composed 72 | }); 73 | event.detail = detail; 74 | node.dispatchEvent(event); 75 | return event; 76 | }; 77 | 78 | function hasConfigOrEntityChanged(element, changedProps) { 79 | if (changedProps.has("_config")) { 80 | return true; 81 | } 82 | const oldHass = changedProps.get("hass"); 83 | if (oldHass) { 84 | return ( 85 | oldHass.states[element._config.entity] !== 86 | element.hass.states[element._config.entity] || 87 | oldHass.states["sun.sun"] !== element.hass.states["sun.sun"] || 88 | oldHass.states["sensor.date_time_iso"] !== element.hass.states["sensor.date_time_iso"] 89 | ); 90 | } 91 | return true; 92 | } 93 | console.info("%c HTC Flip Clock %c ".concat(htcVersion, " "), "color: white; background: #555555; ", "color: white; background: #3a7ec6; "); 94 | class HtcWeather extends LitElement { 95 | numberElements = 0 96 | static get getConfig() { 97 | return this._config; 98 | } 99 | static set setConfig(config) { 100 | this._config = config; 101 | } 102 | static get getHass() { 103 | return this.hass; 104 | } 105 | static set setHass(hass) { 106 | this.hass = hass; 107 | } 108 | static get properties() { 109 | return { 110 | _config: this.getConfig, 111 | hass: this.getHass 112 | }; 113 | } 114 | 115 | async importJquery() { 116 | await import("./lib/jquery-3.4.1.min.js") 117 | return { config: this._config, entity: this.hass.states[this._config.entity], hass_states: this.hass.states } 118 | } 119 | 120 | static getStubConfig() { 121 | return {}; 122 | } 123 | 124 | setConfig(config) { 125 | if (!config.entity) { 126 | throw new Error(`Entity not available/installed: ${config.entity}`); 127 | } 128 | var defaultConfig = {} 129 | for (const property in config) { 130 | defaultConfig[property] = config[property] 131 | if (property == 'lang') { 132 | if (!regional[config[property]]) { 133 | defaultConfig[property] = weatherDefaults[property] 134 | } 135 | } 136 | 137 | } 138 | for (const property in weatherDefaults) { 139 | if (config[property] === undefined) { 140 | defaultConfig[property] = weatherDefaults[property] 141 | } 142 | } 143 | defaultConfig['imagesPath'] = defaultConfig.widgetPath + 'themes/' + defaultConfig.theme['name'] + '/' 144 | defaultConfig['clockImagesPath'] = defaultConfig.imagesPath + 'clock/' 145 | defaultConfig['weatherImagesPath'] = defaultConfig.imagesPath + 'weather/' + defaultConfig.theme['weather_icon_set'] + '/' 146 | this._config = defaultConfig; 147 | } 148 | shouldUpdate(changedProps) { 149 | var shouldUpdate = hasConfigOrEntityChanged(this, changedProps); 150 | if (shouldUpdate) { 151 | HtcWeather.setHass = this.hass 152 | this.render(); 153 | } 154 | if (!forecastFinished) { 155 | this.updateForecasts() 156 | } 157 | return shouldUpdate; 158 | } 159 | updateForecasts() { 160 | if (!this._config || !this.hass) { 161 | return; 162 | } 163 | const self = this; 164 | HtcWeather.setConfig = this._config 165 | HtcWeather.setHass = this.hass 166 | var entity = this._config.entity; 167 | var entity_name = this._config.entity; 168 | if (this._config.high_low_entity) { 169 | if (!this.hass.states[this._config.high_low_entity.entity_id]) { 170 | entity = this.hass.states[this._config.high_low_entity.entity_id] 171 | entity_name = this._config.high_low_entity.entity_id; 172 | } 173 | } 174 | if (!this._config.high_low_entity) { 175 | HtcWeather.getHass.callService('weather', 'get_forecasts', { 'type': 'daily' }, { 'entity_id': self._config.entity }, false, true).then(function (res) { 176 | forecastFinished = true; 177 | forecasts = res.response[self._config.entity].forecast 178 | }) 179 | } 180 | this.render(); 181 | 182 | } 183 | render() { 184 | const self = this; 185 | this.numberElements = 0 186 | if (!this._config || !this.hass) { 187 | return html``; 188 | } 189 | HtcWeather.setConfig = this._config 190 | HtcWeather.setHass = this.hass 191 | var entity = this._config.entity; 192 | var entity_name = this._config.entity; 193 | if (this._config.high_low_entity) { 194 | if (!this.hass.states[this._config.high_low_entity.entity_id]) { 195 | entity = this.hass.states[this._config.high_low_entity.entity_id] 196 | entity_name = this._config.high_low_entity.entity_id; 197 | } 198 | } 199 | 200 | if (forecastFinished) { 201 | return html`` 202 | } 203 | return html` 204 | 205 | ${self.renderCard()} 206 | 207 | `; 208 | } 209 | waitForForecasts() { 210 | if (forecastFinished === false) { 211 | setTimeout(this.waitForForecasts, 1000); /* this checks the flag every 100 milliseconds*/ 212 | } 213 | } 214 | renderCard() { 215 | if (!this.content) { 216 | const card = document.createElement('ha-card'); 217 | this.content = document.createElement('div'); 218 | this.content.style.padding = '16px 16px 16px'; 219 | card.appendChild(this.content); 220 | this.appendChild(card); 221 | } 222 | this.numberElements++; 223 | old_time = HtcWeather.getOldTime() 224 | const stateObj = this.hass.states[this._config.entity]; 225 | const root = this.content; 226 | if (root.lastChild) root.removeChild(root.lastChild); 227 | root.innerHTML = '' 228 | 229 | const script = document.createElement('script'); 230 | script.textContent = this.getScript(); 231 | root.appendChild(script); 232 | 233 | const style = document.createElement('style'); 234 | style.textContent = this.getStyle(this._config); 235 | root.appendChild(style); 236 | 237 | const card = document.createElement('ha-card'); 238 | card.header = this._config.title; 239 | root.appendChild(card); 240 | var container_size = '470px' 241 | if (!this._config.renderForecast) { 242 | var container_size = '320px' 243 | } 244 | const container = document.createElement('div'); 245 | container.id = 'htc-weather-card-container'; 246 | // container.onclick = this._handleClick(this._config.entity) 247 | container.style = `height: ${container_size};` 248 | card.appendChild(container); 249 | 250 | const htc_clock = document.createElement('div') 251 | htc_clock.id = 'htc-clock' 252 | htc_clock.classList.add(`htc-clock-${this.numberElements}`) 253 | container.appendChild(htc_clock) 254 | 255 | const htc_clock_hours = document.createElement('div') 256 | htc_clock_hours.id = 'hours' 257 | htc_clock.appendChild(htc_clock_hours) 258 | 259 | const htc_clock_hours_line = document.createElement('div') 260 | htc_clock_hours_line.classList.add('line') 261 | htc_clock_hours.appendChild(htc_clock_hours_line) 262 | 263 | const hours_bg = document.createElement('div') 264 | hours_bg.id = 'hours_bg' 265 | htc_clock_hours.appendChild(hours_bg) 266 | 267 | const hours_bg_img = document.createElement('img') 268 | hours_bg_img.src = `${this._config.clockImagesPath + 'clockbg1.png'}` 269 | htc_clock_hours.appendChild(hours_bg_img) 270 | 271 | const hours_bg_first = document.createElement('img') 272 | hours_bg_first.id = 'fhd'; 273 | hours_bg_first.src = `${this._config.clockImagesPath + old_time.firstHourDigit + '.png'}` 274 | hours_bg_first.classList.add('first_digit') 275 | htc_clock_hours.appendChild(hours_bg_first) 276 | 277 | const hours_bg_second = document.createElement('img') 278 | hours_bg_second.id = 'shd' 279 | hours_bg_second.src = `${this._config.clockImagesPath + old_time.secondHourDigit + '.png'}` 280 | hours_bg_second.classList.add('second_digit') 281 | htc_clock_hours.appendChild(hours_bg_second) 282 | 283 | const htc_clock_minutes = document.createElement('div') 284 | htc_clock_minutes.id = 'minutes' 285 | htc_clock.appendChild(htc_clock_minutes) 286 | 287 | const htc_clock_minutes_bg = document.createElement('div') 288 | htc_clock_minutes_bg.id = 'minutes_bg' 289 | htc_clock_minutes.appendChild(htc_clock_minutes_bg) 290 | 291 | 292 | const hours_min_img = document.createElement('img') 293 | hours_min_img.src = `${this._config.clockImagesPath + 'clockbg1.png'}` 294 | htc_clock_minutes.appendChild(hours_min_img) 295 | 296 | const htc_clock_minutes_line = document.createElement('div') 297 | htc_clock_minutes_line.classList.add('line') 298 | htc_clock_minutes.appendChild(htc_clock_minutes_line) 299 | 300 | if (this._config.am_pm !== false) { 301 | 302 | const htc_clock_am_pm = document.createElement('div') 303 | htc_clock_am_pm.id = 'am_pm' 304 | htc_clock.appendChild(htc_clock_am_pm) 305 | 306 | const am_pm_img = document.createElement('img') 307 | am_pm_img.src = `${this._config.clockImagesPath + 'am.png'}` 308 | htc_clock_am_pm.appendChild(am_pm_img) 309 | } 310 | 311 | const min_bg_first = document.createElement('img') 312 | min_bg_first.id = 'fmd' 313 | min_bg_first.src = `${this._config.clockImagesPath + old_time.firstMinuteDigit + '.png'}` 314 | min_bg_first.classList.add('first_digit') 315 | htc_clock_minutes.appendChild(min_bg_first) 316 | 317 | const min_bg_second = document.createElement('img') 318 | min_bg_second.id = 'smd' 319 | min_bg_second.src = `${this._config.clockImagesPath + old_time.secondMinuteDigit + '.png'}` 320 | min_bg_second.classList.add('second_digit') 321 | htc_clock_minutes.appendChild(min_bg_second) 322 | 323 | const htc_weather = document.createElement('div') 324 | htc_weather.id = 'htc-weather' 325 | htc_weather.classList.add(`htc-weather-${this.numberElements}`) 326 | container.appendChild(htc_weather) 327 | 328 | const spinner = document.createElement('p') 329 | spinner.classList.add('loading') 330 | spinner.innerHTML = `Fetching weather...` 331 | htc_weather.appendChild(spinner) 332 | 333 | if (!window.jQuery) { 334 | this.importJquery().then(function (result) { 335 | HtcWeather.setNewTime(htc_clock) 336 | HtcWeather.setNewWeather(htc_weather) 337 | }) 338 | } else { 339 | HtcWeather.setNewTime(htc_clock) 340 | HtcWeather.setNewWeather(htc_weather) 341 | } 342 | return html`${root}` 343 | } 344 | static setNewWeather(elem) { 345 | var config = HtcWeather.getConfig; 346 | var stateObj = HtcWeather.getHass.states[HtcWeather.getConfig.entity]; 347 | var hass_states = HtcWeather.getHass.states; 348 | var temp_now = Math.round(stateObj.attributes.temperature * 100) / 100 349 | var weatherIcon = HtcWeather.getWeatherIcon(config, stateObj.state) 350 | var curr_temp = `

${String(temp_now)} 351 | 352 | ${HtcWeather.getUnit("temperature")}

`; 353 | $(elem).css('background', 'url(' 354 | + weatherIcon 355 | + ') 50% 0 no-repeat'); 356 | var weather = `
357 |

${stateObj.attributes.friendly_name}

358 | ${curr_temp} 359 |
`; 360 | weather += HtcWeather.getHighLow(); 361 | 362 | weather += '

'; 363 | // weather += '

 

' + curr_temp + '
'; 364 | 365 | $(elem).html(weather); 366 | if (config.renderForecast) { 367 | var ulElement = ``; 368 | $(elem).append(ulElement); 369 | 370 | for (var i = 0; i <= 3; i++) { 371 | 372 | var d_day_code = String(i) + '_resume'; 373 | var d_date = new Date(forecasts[i].datetime); 374 | var forecastIcon = HtcWeather.getWeatherIcon(config, forecasts[i].condition, hass_states) 375 | var forecast = `
  • `; 376 | forecast += `

    ${regional[config.lang]['dayNames'][d_date.getDay()]} ${d_date.getDate()}

    377 | ${forecasts[i].condition} 378 |
    ${Math.round(forecasts[i].temperature * 100) / 100}${this.getUnit("temperature")}` 379 | if (forecasts[i].templow) { 380 | forecast += ` / ${Math.round(forecasts[i].templow * 100) / 100}${this.getUnit("temperature")}`; 381 | } 382 | forecast += `
  • `; 383 | $(elem).find('#forecast').append(forecast); 384 | } 385 | } 386 | if (config.renderDetails) { 387 | HtcWeather.renderDetails(elem, config, stateObj, hass_states) 388 | } 389 | } 390 | 391 | static getHighLow() { 392 | var config = HtcWeather.getConfig 393 | var returnEntityHtml = ''; 394 | var high_low_state = ''; 395 | var today_date = `${regional[config.lang]['dayNames'][new Date().getDay()]} ${new Date().getDate()}`; 396 | var is_forecast = true; 397 | if (config.high_low_entity) { 398 | var stateObj = HtcWeather.getHass.states[config.high_low_entity.entity_id] 399 | high_low_state = stateObj.state 400 | var high_low_date = (config.high_low_entity.name) ? config.high_low_entity.name : today_date; 401 | is_forecast = false 402 | } else { 403 | var stateObj = HtcWeather.getHass.states[config.entity] 404 | high_low_state = Math.round(forecasts[0].temperature * 100) / 100 + '°' 405 | var high_low_date = today_date; 406 | } 407 | returnEntityHtml += `

     ${high_low_date}

    408 | ${high_low_state}` 409 | if (is_forecast && forecasts[0].templow) { 410 | returnEntityHtml += ` / ${Math.round(forecasts[0].templow * 100) / 100}°`; 411 | } 412 | return returnEntityHtml; 413 | } 414 | static getOldTime() { 415 | var config = HtcWeather.getConfig 416 | var localtime = new Date(HtcWeather.getHass.states["sensor.date_time_iso"].state); 417 | var now = new Date(localtime.getTime() - (config.svrOffset * 1000)); 418 | var old = new Date(); 419 | old.setTime(now.getTime() - 60000); 420 | 421 | var old_hours, old_minutes, timeOld = ''; 422 | old_hours = old.getHours(); 423 | old_minutes = old.getMinutes(); 424 | 425 | if (config.am_pm) { 426 | old_hours = ((old_hours > 12) ? old_hours - 12 : old_hours); 427 | } 428 | 429 | old_hours = ((old_hours < 10) ? "0" : "") + old_hours; 430 | old_minutes = ((old_minutes < 10) ? "0" : "") + old_minutes; 431 | 432 | var firstHourDigit = old_hours.substr(0, 1); 433 | var secondHourDigit = old_hours.substr(1, 1); 434 | var firstMinuteDigit = old_minutes.substr(0, 1); 435 | var secondMinuteDigit = old_minutes.substr(1, 1); 436 | var old_time = { 437 | firstHourDigit: firstHourDigit, 438 | secondHourDigit: secondHourDigit, 439 | firstMinuteDigit: firstMinuteDigit, 440 | secondMinuteDigit: secondMinuteDigit, 441 | old_hours: old_hours, 442 | old_minutes: old_minutes 443 | } 444 | return old_time 445 | // set minutes 446 | } 447 | static setNewTime(elem) { 448 | var config = HtcWeather.getConfig 449 | var localtime = new Date(HtcWeather.getHass.states["sensor.date_time_iso"].state); 450 | var now = new Date(localtime.getTime() - (config.svrOffset * 1000)); 451 | var old = new Date(); 452 | old.setTime(now.getTime() - 60000); 453 | 454 | var now_hours, now_minutes, old_hours, old_minutes, timeOld = ''; 455 | now_hours = now.getHours(); 456 | now_minutes = now.getMinutes(); 457 | old_hours = old.getHours(); 458 | old_minutes = old.getMinutes(); 459 | 460 | if (config.am_pm) { 461 | var am_pm = now_hours > 11 ? 'pm' : 'am'; 462 | $(elem).find("#am_pm").find('img').attr("src", config.clockImagesPath + am_pm + ".png") 463 | now_hours = ((now_hours > 12) ? now_hours - 12 : now_hours); 464 | old_hours = ((old_hours > 12) ? old_hours - 12 : old_hours); 465 | } 466 | 467 | now_hours = ((now_hours < 10) ? "0" : "") + now_hours; 468 | now_minutes = ((now_minutes < 10) ? "0" : "") + now_minutes; 469 | old_hours = ((old_hours < 10) ? "0" : "") + old_hours; 470 | old_minutes = ((old_minutes < 10) ? "0" : "") + old_minutes; 471 | 472 | var firstHourDigit = old_hours.substr(0, 1); 473 | var secondHourDigit = old_hours.substr(1, 1); 474 | var firstMinuteDigit = old_minutes.substr(0, 1); 475 | var secondMinuteDigit = old_minutes.substr(1, 1); 476 | 477 | if (secondMinuteDigit != '9') { 478 | firstMinuteDigit = firstMinuteDigit + '1'; 479 | } 480 | 481 | if (old_minutes == '59') { 482 | firstMinuteDigit = '511'; 483 | } 484 | var fmd = $(elem).find("#fmd") 485 | var smd = $(elem).find("#smd") 486 | 487 | setTimeout(function () { 488 | $(fmd).attr('src', config.clockImagesPath + firstMinuteDigit + '-1.png'); 489 | $(elem).find('#minutes_bg').find('img').attr('src', config.clockImagesPath + 'clockbg2.png'); 490 | }, 200); 491 | setTimeout(function () { $(elem).find('#minutes_bg').find('img').attr('src', config.clockImagesPath + 'clockbg3.png') }, 250); 492 | setTimeout(function () { 493 | $(fmd).attr('src', config.clockImagesPath + firstMinuteDigit + '-2.png'); 494 | $(elem).find('#minutes_bg').find('img').attr('src', config.clockImagesPath + 'clockbg4.png'); 495 | }, 400); 496 | setTimeout(function () { $(elem).find('#minutes_bg').find('img').attr('src', config.clockImagesPath + 'clockbg5.png') }, 450); 497 | setTimeout(function () { 498 | $(fmd).attr('src', config.clockImagesPath + firstMinuteDigit + '-3.png'); 499 | $(elem).find('#minutes_bg').find('img').attr('src', config.clockImagesPath + 'clockbg6.png'); 500 | }, 600); 501 | 502 | setTimeout(function () { 503 | $(smd).attr('src', config.clockImagesPath + secondMinuteDigit + '-1.png'); 504 | $(elem).find('#minutes_bg').find('img').attr('src', config.clockImagesPath + 'clockbg2.png'); 505 | }, 200); 506 | setTimeout(function () { $(elem).find('#minutes_bg').find('img').attr('src', config.clockImagesPath + 'clockbg3.png') }, 250); 507 | setTimeout(function () { 508 | $(smd).attr('src', config.clockImagesPath + secondMinuteDigit + '-2.png'); 509 | $(elem).find('#minutes_bg').find('img').attr('src', config.clockImagesPath + 'clockbg4.png'); 510 | }, 400); 511 | setTimeout(function () { $(elem).find('#minutes_bg').find('img').attr('src', config.clockImagesPath + 'clockbg5.png') }, 450); 512 | setTimeout(function () { 513 | $(smd).attr('src', config.clockImagesPath + secondMinuteDigit + '-3.png'); 514 | $(elem).find('#minutes_bg').find('img').attr('src', config.clockImagesPath + 'clockbg6.png'); 515 | }, 600); 516 | 517 | setTimeout(function () { $(fmd).attr('src', config.clockImagesPath + now_minutes.substr(0, 1) + '.png') }, 800); 518 | setTimeout(function () { $(smd).attr('src', config.clockImagesPath + now_minutes.substr(1, 1) + '.png') }, 800); 519 | setTimeout(function () { $(elem).find('#minutes_bg').find('img').attr('src', config.clockImagesPath + 'clockbg1.png') }, 850); 520 | 521 | if (now_minutes == '00') { 522 | 523 | if (config.am_pm) { 524 | if (now_hours == '00') { 525 | firstHourDigit = firstHourDigit + '1'; 526 | now_hours = '12'; 527 | } else if (now_hours == '01') { 528 | firstHourDigit = '001'; 529 | secondHourDigit = '111'; 530 | } else { 531 | firstHourDigit = firstHourDigit + '1'; 532 | } 533 | } else { 534 | if (now_hours != '10') { 535 | firstHourDigit = firstHourDigit + '1'; 536 | } 537 | 538 | if (now_hours == '20') { 539 | firstHourDigit = '1'; 540 | } 541 | 542 | if (now_hours == '00') { 543 | firstHourDigit = firstHourDigit + '1'; 544 | secondHourDigit = secondHourDigit + '11'; 545 | } 546 | } 547 | var fhd = $(elem).find('#fhd') 548 | var shd = $(elem).find('#shd') 549 | setTimeout(function () { 550 | $(fhd).attr('src', config.clockImagesPath + firstHourDigit + '-1.png'); 551 | $(elem).find('#hours_bg').find('img').attr('src', config.clockImagesPath + 'clockbg2.png'); 552 | }, 200); 553 | setTimeout(function () { $(elem).find('#hours_bg').find('img').attr('src', config.clockImagesPath + 'clockbg3.png') }, 250); 554 | setTimeout(function () { 555 | $(fhd).attr('src', config.clockImagesPath + firstHourDigit + '-2.png'); 556 | $(elem).find('#hours_bg').find('img').attr('src', config.clockImagesPath + 'clockbg4.png'); 557 | }, 400); 558 | setTimeout(function () { $(elem).find('#hours_bg').find('img').attr('src', config.clockImagesPath + 'clockbg5.png') }, 450); 559 | setTimeout(function () { 560 | $(fhd).attr('src', config.clockImagesPath + firstHourDigit + '-3.png'); 561 | $(elem).find('#hours_bg').find('img').attr('src', config.clockImagesPath + 'clockbg6.png'); 562 | }, 600); 563 | 564 | setTimeout(function () { 565 | $(shd).attr('src', config.clockImagesPath + secondHourDigit + '-1.png'); 566 | $(elem).find('#hours_bg').find('img').attr('src', config.clockImagesPath + 'clockbg2.png'); 567 | }, 200); 568 | setTimeout(function () { $(elem).find('#hours_bg').find('img').attr('src', config.clockImagesPath + 'clockbg3.png') }, 250); 569 | setTimeout(function () { 570 | $(shd).attr('src', config.clockImagesPath + secondHourDigit + '-2.png'); 571 | $(elem).find('#hours_bg').find('img').attr('src', config.clockImagesPath + 'clockbg4.png'); 572 | }, 400); 573 | setTimeout(function () { $(elem).find('#hours_bg').find('img').attr('src', config.clockImagesPath + 'clockbg5.png') }, 450); 574 | setTimeout(function () { 575 | $(shd).attr('src', config.clockImagesPath + secondHourDigit + '-3.png'); 576 | $(elem).find('#hours_bg').find('img').attr('src', config.clockImagesPath + 'clockbg6.png'); 577 | }, 600); 578 | 579 | setTimeout(function () { $(fhd).attr('src', config.clockImagesPath + now_hours.substr(0, 1) + '.png') }, 800); 580 | setTimeout(function () { $(shd).attr('src', config.clockImagesPath + now_hours.substr(1, 1) + '.png') }, 800); 581 | setTimeout(function () { $(elem).find('#hours_bg').find('img').attr('src', config.clockImagesPath + 'clockbg1.png') }, 850); 582 | } 583 | } 584 | static getUnit(measure) { 585 | const lengthUnit = HtcWeather.getHass.config.unit_system.length; 586 | switch (measure) { 587 | case "air_pressure": 588 | return lengthUnit === "km" ? "hPa" : "inHg"; 589 | case "length": 590 | return lengthUnit; 591 | case "precipitation": 592 | return lengthUnit === "km" ? "mm" : "in"; 593 | default: 594 | return HtcWeather.getHass.config.unit_system[measure] || ""; 595 | } 596 | } 597 | 598 | static renderDetails(elem, config, stateObj, hass_states) { 599 | const sun = hass_states["sun.sun"]; 600 | let next_rising; 601 | let next_setting; 602 | 603 | if (sun) { 604 | next_rising = new Date(sun.attributes.next_rising); 605 | next_setting = new Date(sun.attributes.next_setting); 606 | $(elem).append(`
    607 |
    608 |
    609 |
    610 | Last update${new Date(stateObj.last_updated).toLocaleTimeString()} 611 |
    612 |
    `); 613 | var sun_details = `  ${next_rising.toLocaleTimeString()}    ${next_setting.toLocaleTimeString()}`; 614 | $(elem).find('#sun_details').append(sun_details); 615 | $(elem).find('#wind_details').append(` 616 | 617 | ${regional[config.lang]['windDirections'][parseInt((stateObj.attributes.wind_bearing + 11.25) / 22.5)]} ${stateObj.attributes.wind_speed} ${stateObj.attributes.wind_speed} 618 | ${this.getUnit("length")}/h 619 | `); 620 | } 621 | return 622 | } 623 | 624 | static getWeatherIcon(config, condition) { 625 | var hass_states = HtcWeather.getHass.states 626 | return `${config.weatherImagesPath}${hass_states["sun.sun"] && hass_states["sun.sun"] == "below_horizon" 627 | ? weatherIconsNight[condition] 628 | : weatherIconsDay[condition] 629 | }.png`; 630 | } 631 | 632 | _handleClick(entity) { 633 | fireEvent(this, "hass-more-info", { entityId: entity }); 634 | } 635 | 636 | getCardSize() { 637 | return 3; 638 | } 639 | getScript() { } 640 | 641 | getStyle(config) { 642 | 643 | return themes[config.theme['name']]['css']; 644 | } 645 | static get styles() { 646 | // return css(themes[this._config.theme['name']]['css']); 647 | } 648 | 649 | 650 | } 651 | async function waitForForecasts(test) { 652 | const delayMs = 500; 653 | while (!test()) await new Promise(resolve => setTimeout(resolve, delayMs)); 654 | } 655 | customElements.define("htc-weather-card", HtcWeather); 656 | -------------------------------------------------------------------------------- /lib/jquery-3.4.1.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */ 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="
    ",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===k.css(e,"position"))e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0