mirror of
				https://github.com/MichMich/MagicMirror.git
				synced 2025-10-31 02:36:47 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			81 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			81 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
| {% if current %}
 | |
|     {% if not config.onlyTemp %}
 | |
|         <div class="normal medium">
 | |
|             <span class="wi wi-strong-wind dimmed"></span>
 | |
|             <span>
 | |
|                 {% if config.useBeaufort %}
 | |
|                     {{ current.beaufortWindSpeed() | round }}
 | |
|                 {% else %}
 | |
|                     {{ current.windSpeed | round }}
 | |
|                 {% endif %}
 | |
|                 {% if config.showWindDirection %}
 | |
|                     <sup>
 | |
|                         {% if config.showWindDirectionAsArrow %}
 | |
|                             <i class="fa fa-long-arrow-up" style="transform:rotate({{ current.windDirection }}deg);"></i>
 | |
|                         {% else %}
 | |
|                             {{ current.cardinalWindDirection() | translate }}
 | |
|                         {% endif %}
 | |
|                          
 | |
|                     </sup>
 | |
|                 {% endif %}
 | |
|             </span>
 | |
|             {% if config.showHumidity and current.humidity %}
 | |
|                 <span>{{ current.humidity | decimalSymbol }}</span><sup> <i class="wi wi-humidity humidityIcon"></i></sup>
 | |
|             {% endif %}
 | |
|             <span class="wi dimmed wi-{{ current.nextSunAction() }}"></span>
 | |
|             <span>
 | |
|                 {% if current.nextSunAction() === "sunset" %}
 | |
|                     {{ current.sunset | formatTime }}
 | |
|                 {% else %}
 | |
|                     {{ current.sunrise | formatTime }}
 | |
|                 {% endif %}
 | |
|             </span>
 | |
|         </div>
 | |
|     {% endif %}
 | |
|     <div class="large light">
 | |
|         <span class="wi weathericon wi-{{current.weatherType}}"></span>
 | |
|         <span class="bright">
 | |
|             {{ current.temperature | roundValue | unit("temperature") | decimalSymbol }}
 | |
|         </span>
 | |
|     </div>
 | |
|     <div class="normal light indoor">
 | |
|         {% if config.showIndoorTemperature and indoor.temperature %}
 | |
|             <div>
 | |
|                 <span class="fa fa-home"></span>
 | |
|                 <span class="bright">
 | |
|                     {{ indoor.temperature | roundValue | unit("temperature") | decimalSymbol }}
 | |
|                 </span>
 | |
|             </div>
 | |
|         {% endif %}
 | |
|         {% if config.showIndoorHumidity and indoor.humidity %}
 | |
|             <div>
 | |
|                 <span class="fa fa-tint"></span>
 | |
|                 <span class="bright">
 | |
|                     {{ indoor.humidity | roundValue | unit("humidity") | decimalSymbol }}
 | |
|                 </span>
 | |
|             </div>
 | |
|         {% endif %}
 | |
|     </div>
 | |
|     {% if (config.showFeelsLike or config.showPrecipitationAmount) and not config.onlyTemp %}
 | |
|         <div class="normal medium">
 | |
|             {% if config.showFeelsLike %}
 | |
|                 <span class="dimmed">
 | |
|                     {{ "FEELS" | translate }} {{ current.feelsLike() | roundValue | unit("temperature") | decimalSymbol }}
 | |
|                 </span>
 | |
|             {% endif %}
 | |
|             {% if config.showPrecipitationAmount %}
 | |
|                 <span class="dimmed">
 | |
|                     {{ "PRECIP" | translate }} {{ current.precipitation | unit("precip") }}
 | |
|                 </span>
 | |
|             {% endif %}
 | |
|         </div>
 | |
|     {% endif %}
 | |
| {% else %}
 | |
|     <div class="dimmed light small">
 | |
|         {{ "LOADING" | translate | safe }}
 | |
|     </div>
 | |
| {% endif %}
 | |
| 
 | |
| <!-- Uncomment the line below to see the contents of the `current` object. -->
 | |
| <!-- <div style="word-wrap:break-word" class="xsmall dimmed">{{current | dump}}</div> -->
 |