summaryrefslogtreecommitdiffstats
path: root/src/templates/time.template.html
diff options
context:
space:
mode:
authorHumberto Alfonso Díaz <humberto.alfonso@asvito.es>2019-12-11 09:41:30 +0100
committerLorenzo Tilve <ltilve@igalia.com>2020-02-04 19:12:47 +0100
commit4ce65d8965bdebdf35e5f3a4272482c0f40ef2bd (patch)
treebac6b24ecfd7045975834c18b840dfd723baa2fb /src/templates/time.template.html
parent6d8916c58d823b13b89477f59bf05373e87f3a98 (diff)
FUNCT Added homescreen
Diffstat (limited to 'src/templates/time.template.html')
-rw-r--r--src/templates/time.template.html32
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