diff options
author | Humberto Alfonso Díaz <humberto.alfonso@asvito.es> | 2019-12-11 09:41:30 +0100 |
---|---|---|
committer | Lorenzo Tilve <ltilve@igalia.com> | 2020-02-04 19:12:47 +0100 |
commit | 4ce65d8965bdebdf35e5f3a4272482c0f40ef2bd (patch) | |
tree | bac6b24ecfd7045975834c18b840dfd723baa2fb /src/templates | |
parent | 6d8916c58d823b13b89477f59bf05373e87f3a98 (diff) |
FUNCT Added homescreen
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/time.template.html | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/src/templates/time.template.html b/src/templates/time.template.html index c8ed97e..5be8b5d 100644 --- a/src/templates/time.template.html +++ b/src/templates/time.template.html @@ -5,6 +5,34 @@ {{ date.hour }} </div> <div class="infoItem wheater"> - <i class="{{ weather.icon }}"></i> - {{ weather.temperature }} + {{ #showTemperature }} + <div class="temperature weatherItem"> + <img src="http://openweathermap.org/img/wn/{{ weather.weather.0.icon }}.png"> + {{ weather.main.temp }}ºF + </div> + {{ /showTemperature }} + {{ #showWind }} + <div class="wind weatherItem"> + <i class="fas fa-wind"></i> + {{ weather.wind.speed }}KMH + </div> + {{ /showWind }} + {{ #showPosition }} + <div class="position weatherItem"> + <i class="fas fa-map-marker-alt"></i> + {{ weather.name }} + </div> + {{ /showPosition }} + {{ #showHumidity }} + <div class="humidity weatherItem"> + <i class="fas fa-tint"></i> + {{ weather.main.humidity }}% + </div> + {{ /showHumidity }} + {{ #showDescription }} + <div class="description weatherItem"> + <i class="fas fa-info-circle"></i> + {{ weather.weather.0.description }} + </div> + {{ /showDescription}} </div>
\ No newline at end of file |