Update loops.js

This commit is contained in:
buffbears 2021-04-01 21:49:50 -04:00 committed by GitHub
parent 89d7d44233
commit ce52ac8e79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ function Loops(bindDataManager) {
var displays = {
conditions() {
return obsData(0).current.weather[0].description.toLowerCase();
return (getCC(obsData(0).current.weather[0].id + obsData(0).current.weather[0].icon, obsData(0).current.wind_speed)).toLowerCase();
},
wind(){ return 'wind ' + degToCompass(obsData(0).current.wind_deg) + ' ' + Math.round(parseInt(obsData(0).current.wind_speed)); },
@ -148,7 +148,7 @@ function Loops(bindDataManager) {
var min = Math.min(...temps), // 54
max = Math.max(...temps), // 73
range = (max-min),
prange = (100-78), // percent range for bar height
prange = (95-78), // percent range for bar height
temp, value;
$('.forecast-tile').each(function(){
temp = $(this).find('.high').first().text();