Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

current.njk 3.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {% if current %}
  2. {% if not config.onlyTemp %}
  3. <div class="normal medium">
  4. <span class="wi wi-strong-wind dimmed"></span>
  5. <span>
  6. {% if config.useBeaufort %}
  7. {{ current.beaufortWindSpeed() | round }}
  8. {% else %}
  9. {% if config.useKmh %}
  10. {{ current.kmhWindSpeed() | round }}
  11. {% else %}
  12. {{ current.windSpeed | round }}
  13. {% endif %}
  14. {% endif %}
  15. {% if config.showWindDirection %}
  16. <sup>
  17. {% if config.showWindDirectionAsArrow %}
  18. <i class="fa fa-long-arrow-up" style="transform:rotate({{ current.windDirection }}deg);"></i>
  19. {% else %}
  20. {{ current.cardinalWindDirection() | translate }}
  21. {% endif %}
  22. &nbsp;
  23. </sup>
  24. {% endif %}
  25. </span>
  26. {% if config.showHumidity and current.humidity %}
  27. <span>{{ current.humidity | decimalSymbol }}</span><sup>&nbsp;<i class="wi wi-humidity humidityIcon"></i></sup>
  28. {% endif %}
  29. {% if config.showSun %}
  30. <span class="wi dimmed wi-{{ current.nextSunAction() }}"></span>
  31. <span>
  32. {% if current.nextSunAction() === "sunset" %}
  33. {{ current.sunset | formatTime }}
  34. {% else %}
  35. {{ current.sunrise | formatTime }}
  36. {% endif %}
  37. </span>
  38. {% endif %}
  39. </div>
  40. {% endif %}
  41. <div class="large light">
  42. <span class="wi weathericon wi-{{current.weatherType}}"></span>
  43. <span class="bright">
  44. {{ current.temperature | roundValue | unit("temperature") | decimalSymbol }}
  45. </span>
  46. </div>
  47. <div class="normal light indoor">
  48. {% if config.showIndoorTemperature and indoor.temperature %}
  49. <div>
  50. <span class="fa fa-home"></span>
  51. <span class="bright">
  52. {{ indoor.temperature | roundValue | unit("temperature") | decimalSymbol }}
  53. </span>
  54. </div>
  55. {% endif %}
  56. {% if config.showIndoorHumidity and indoor.humidity %}
  57. <div>
  58. <span class="fa fa-tint"></span>
  59. <span class="bright">
  60. {{ indoor.humidity | roundValue | unit("humidity") | decimalSymbol }}
  61. </span>
  62. </div>
  63. {% endif %}
  64. </div>
  65. {% if (config.showFeelsLike or config.showPrecipitationAmount) and not config.onlyTemp %}
  66. <div class="normal medium feelslike">
  67. {% if config.showFeelsLike %}
  68. <span class="dimmed">
  69. {{ "FEELS" | translate({DEGREE: current.feelsLike() | roundValue | unit("temperature") | decimalSymbol }) }}
  70. </span>
  71. {% endif %}
  72. {% if config.showPrecipitationAmount %}
  73. <span class="dimmed">
  74. {{ "PRECIP" | translate }} {{ current.precipitation | unit("precip") }}
  75. </span>
  76. {% endif %}
  77. </div>
  78. {% endif %}
  79. {% else %}
  80. <div class="dimmed light small">
  81. {{ "LOADING" | translate }}
  82. </div>
  83. {% endif %}
  84. <!-- Uncomment the line below to see the contents of the `current` object. -->
  85. <!-- <div style="word-wrap:break-word" class="xsmall dimmed">{{current | dump}}</div> -->