mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Set temperature rounding.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
</div>
|
||||
<div class="large light">
|
||||
<span class="wi weathericon wi-{{current.weatherType}}"></span>
|
||||
<span class="bright"> {{current.temperature | round(1)}}°</span></div> <!-- should show in correct number of decimals -->
|
||||
<span class="bright"> {{current.temperature | round(0 if config.roundTemp else 1)}}°</span></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
@@ -93,8 +93,7 @@ Module.register("weather",{
|
||||
return {
|
||||
config: this.config,
|
||||
current: this.weatherProvider.currentWeather(),
|
||||
forecast: this.weatherProvider.weatherForecast(),
|
||||
myBoolean: true
|
||||
forecast: this.weatherProvider.weatherForecast()
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user