|
@ -2,7 +2,7 @@ |
|
|
<html> |
|
|
<html> |
|
|
<head> |
|
|
<head> |
|
|
<meta charset="utf-8"> |
|
|
<meta charset="utf-8"> |
|
|
<meta http-equiv="refresh" content="600" /> |
|
|
|
|
|
|
|
|
<meta http-equiv="refresh" content="3600" /> |
|
|
<link href="/icons/weather-icons.css" rel="stylesheet" type="text/css"> |
|
|
<link href="/icons/weather-icons.css" rel="stylesheet" type="text/css"> |
|
|
<style> |
|
|
<style> |
|
|
body { |
|
|
body { |
|
@ -27,15 +27,18 @@ |
|
|
<div class="column" style="border:1px solid;border-radius:5px;width:30;"> |
|
|
<div class="column" style="border:1px solid;border-radius:5px;width:30;"> |
|
|
<h4>{{.Current.DateUnix}}</h4> |
|
|
<h4>{{.Current.DateUnix}}</h4> |
|
|
<div style="margin-top:10px; margin-bottom:10px;"> |
|
|
<div style="margin-top:10px; margin-bottom:10px;"> |
|
|
<i style="margin:10px;float:left;" class="wi wi-owm-{{(index .Current.Weather 0).Id}}"></i> |
|
|
|
|
|
{{.Current.Temp}}°C, {{.Current.Humidity}}% |
|
|
|
|
|
{{range $i, $e := .Daily}}{{if lt $i 1}} |
|
|
|
|
|
|
|
|
<!-- <i style="margin:10px;float:left;" class="wi wi-owm-{{(index .Current.Weather 0).Id}}"></i> --> |
|
|
|
|
|
<!-- {{.Current.Temp}}°C, {{.Current.Humidity}}% --> |
|
|
|
|
|
{{range $i, $e := .Daily}}{{if lt $i 1}} |
|
|
|
|
|
<i style="margin:10px;float:left;" class="wi wi-owm-{{(index .Weather 0).Id}}"></i> |
|
|
|
|
|
{{.Temp.Day}}°C, {{.Humidity}}% |
|
|
<br>{{.Temp.Min}}/{{.Temp.Max}} °C |
|
|
<br>{{.Temp.Min}}/{{.Temp.Max}} °C |
|
|
</div> |
|
|
</div> |
|
|
{{(index .Weather 0).Main}}, {{(index .Weather 0).Description}} |
|
|
|
|
|
|
|
|
{{(index .Weather 0).Main}} |
|
|
{{end}}{{end}} |
|
|
{{end}}{{end}} |
|
|
<br>{{.Current.Sunrise}} |
|
|
|
|
|
<br>{{.Current.Sunset}} |
|
|
|
|
|
|
|
|
<!-- {{(index .Current.Weather 0).Main}} --> |
|
|
|
|
|
<br><i class="wi wi-sunrise" style="font-size:90%"></i> {{.Current.Sunrise}} |
|
|
|
|
|
<br><i class="wi wi-sunset" style="font-size:90%"></i> {{.Current.Sunset}} |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
{{range $i, $e := .Daily}}{{if lt $i 6}}{{if gt $i 0}} |
|
|
{{range $i, $e := .Daily}}{{if lt $i 6}}{{if gt $i 0}} |
|
@ -49,11 +52,11 @@ |
|
|
</div> |
|
|
</div> |
|
|
<br> |
|
|
<br> |
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
{{range $i, $e := .Hourly}}{{if lt $i 7}} |
|
|
|
|
|
<div class="column" style="width:10%;"> |
|
|
|
|
|
|
|
|
{{range $i, $e := .Hourly}}{{if lt $i 9}} |
|
|
|
|
|
<div class="column" style="font-size:90%;"> |
|
|
<i class="wi wi-owm-{{(index .Weather 0).Id}}"></i> |
|
|
<i class="wi wi-owm-{{(index .Weather 0).Id}}"></i> |
|
|
<h4>{{.DateUnix}}</h4> |
|
|
<h4>{{.DateUnix}}</h4> |
|
|
{{.Temp}}°C, {{.Humidity}}% |
|
|
|
|
|
|
|
|
{{.Temp}}°C |
|
|
</div> |
|
|
</div> |
|
|
{{end}}{{end}} |
|
|
{{end}}{{end}} |
|
|
</div> |
|
|
</div> |
|
|