You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.9 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="refresh" content="3600" />
  6. <link href="/icons/weather-icons.css" rel="stylesheet" type="text/css">
  7. <style>
  8. body {
  9. font-size: 170%;
  10. }
  11. h4 {
  12. margin: 0%;
  13. }
  14. .row {
  15. }
  16. .column {
  17. display:inline-block;
  18. padding: 10px;
  19. }
  20. .wi {
  21. font-size: 200%;
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <div class="row">
  27. <div class="column" style="border:1px solid;border-radius:5px;width:30;">
  28. <h4>{{.Current.DateUnix}}</h4>
  29. <div style="margin-top:10px; margin-bottom:10px;">
  30. <!-- <i style="margin:10px;float:left;" class="wi wi-owm-{{(index .Current.Weather 0).Id}}"></i> -->
  31. <!-- {{.Current.Temp}}°C, {{.Current.Humidity}}% -->
  32. {{range $i, $e := .Daily}}{{if lt $i 1}}
  33. <i style="margin:10px;float:left;" class="wi wi-owm-{{(index .Weather 0).Id}}"></i>
  34. {{.Temp.Day}}°C, {{.Humidity}}%
  35. <br>{{.Temp.Min}}/{{.Temp.Max}} °C
  36. </div>
  37. {{(index .Weather 0).Main}}
  38. {{end}}{{end}}
  39. <!-- {{(index .Current.Weather 0).Main}} -->
  40. <br><i class="wi wi-sunrise" style="font-size:90%"></i> {{.Current.Sunrise}}
  41. <br><i class="wi wi-sunset" style="font-size:90%"></i> {{.Current.Sunset}}
  42. </div>
  43. {{range $i, $e := .Daily}}{{if lt $i 6}}{{if gt $i 0}}
  44. <div class="column" style="width:10%;">
  45. <i class="wi wi-owm-{{(index .Weather 0).Id}}"></i>
  46. <h4>{{.DateUnix}}</h4>
  47. {{.Temp.Min}}/{{.Temp.Max}} °C
  48. <!-- <p>{{(index .Weather 0).Main}}, {{(index .Weather 0).Description}}</p> -->
  49. </div>
  50. {{end}}{{end}}{{end}}
  51. </div>
  52. <br>
  53. <div class="row">
  54. {{range $i, $e := .Hourly}}{{if lt $i 9}}
  55. <div class="column" style="font-size:90%;">
  56. <i class="wi wi-owm-{{(index .Weather 0).Id}}"></i>
  57. <h4>{{.DateUnix}}</h4>
  58. {{.Temp}}°C
  59. </div>
  60. {{end}}{{end}}
  61. </div>
  62. <span style="float:right;font-size:70%;">
  63. {{.Date}}
  64. </span>
  65. <p>
  66. </p>
  67. </body>
  68. </html>