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>
|
||||||
<div class="large light">
|
<div class="large light">
|
||||||
<span class="wi weathericon wi-{{current.weatherType}}"></span>
|
<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>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@@ -93,8 +93,7 @@ Module.register("weather",{
|
|||||||
return {
|
return {
|
||||||
config: this.config,
|
config: this.config,
|
||||||
current: this.weatherProvider.currentWeather(),
|
current: this.weatherProvider.currentWeather(),
|
||||||
forecast: this.weatherProvider.weatherForecast(),
|
forecast: this.weatherProvider.weatherForecast()
|
||||||
myBoolean: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user