2024-05-27 08:28:10 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
2024-05-29 10:16:27 +02:00
|
|
|
<title>AEMET Client</title>
|
2024-05-27 08:28:10 +02:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<link href="style.css" rel="stylesheet">
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2024-05-30 08:26:08 +02:00
|
|
|
<div class="container">
|
|
|
|
<div id="main">
|
2024-05-30 09:29:47 +02:00
|
|
|
<b>
|
|
|
|
<ul>
|
2024-05-31 08:57:52 +02:00
|
|
|
<li class="hor">
|
2024-05-30 09:29:47 +02:00
|
|
|
<p><a href="https://git.bulgariu.xyz/raul/aemet" target="_blank">Source code</a></p>
|
|
|
|
</li>
|
2024-05-31 08:57:52 +02:00
|
|
|
<li class="hor">
|
2024-05-30 09:29:47 +02:00
|
|
|
<p><a href="https://git.bulgariu.xyz/raul/aemet" target="_blank">API Docs</a></p>
|
|
|
|
</li>
|
2024-05-31 08:57:52 +02:00
|
|
|
<li class="hor">
|
2024-05-30 09:29:47 +02:00
|
|
|
<p><a href="https://git.bulgariu.xyz/raul/aemet" target="_blank">But why though?</a></p>
|
|
|
|
</li>
|
2024-05-31 08:57:52 +02:00
|
|
|
<li class="hor">
|
2024-05-30 09:29:47 +02:00
|
|
|
<p>
|
2024-05-31 08:57:52 +02:00
|
|
|
<select class="optionCap"
|
2024-05-30 09:29:47 +02:00
|
|
|
onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);">
|
|
|
|
<option value="">Select...</option>
|
|
|
|
{{ range $key, $value := .Localidades }}
|
2024-05-31 08:57:52 +02:00
|
|
|
<option value="{{ $key }}" class="optionCap">{{ $key }}</option>
|
2024-05-30 09:29:47 +02:00
|
|
|
{{ end }}
|
|
|
|
</select>
|
|
|
|
</p>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</b>
|
2024-05-30 08:26:08 +02:00
|
|
|
<table border=1>
|
|
|
|
<th colspan="100%">{{ .Base.Nombre }}</th>
|
2024-05-29 10:16:27 +02:00
|
|
|
|
2024-05-30 08:26:08 +02:00
|
|
|
<tr>
|
|
|
|
{{ range .Base.Prediccion.Dia}}
|
2024-05-31 09:32:49 +02:00
|
|
|
<td class="date">{{ .Fecha }}</td>
|
2024-05-30 08:26:08 +02:00
|
|
|
{{ end }}
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2024-05-31 09:32:49 +02:00
|
|
|
<td class="left" colspan="100%">Temperatura mínima y máxima (°C)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2024-05-30 08:26:08 +02:00
|
|
|
{{ range .Base.Prediccion.Dia}}
|
2024-05-31 09:32:49 +02:00
|
|
|
<td>
|
|
|
|
<cold>{{ .Temperatura.Minima }}</cold> / <hot>{{ .Temperatura.Maxima }}</hot>
|
|
|
|
</td>
|
2024-05-30 08:26:08 +02:00
|
|
|
{{ end }}
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2024-05-31 09:32:49 +02:00
|
|
|
<td class="left" colspan="100%">Sens. térmica mínima y máxima (°C)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
{{ range .Base.Prediccion.Dia }}
|
|
|
|
<td>
|
|
|
|
<cold>{{ .Sens_Termica.Minima }}</cold> / <hot>{{ .Sens_Termica.Maxima }}</hot>
|
|
|
|
</td>
|
2024-05-30 08:26:08 +02:00
|
|
|
{{ end }}
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2024-05-31 09:32:49 +02:00
|
|
|
<td class="left" colspan="100%">Índice UV</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2024-05-30 08:26:08 +02:00
|
|
|
{{ range .Base.Prediccion.Dia}}
|
|
|
|
<td>
|
|
|
|
{{ if eq .UV "" }}
|
|
|
|
No disponible!
|
|
|
|
{{ else }}
|
|
|
|
{{ .UV }}
|
|
|
|
{{ end }}
|
|
|
|
</td>
|
|
|
|
{{ end }}
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-27 08:28:10 +02:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|