Skip to content

Commit

Permalink
reintroduced cloud cover alongside cloudless, added forecast length
Browse files Browse the repository at this point in the history
  • Loading branch information
mawinkler committed Apr 7, 2022
1 parent 2e708d0 commit cd0e77b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/astroweather-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class AstroWeatherCard extends LitElement {
<li>
<ha-icon icon="mdi:weather-night-partly-cloudy"></ha-icon>
<b
>Cloudless: ${stateObj.attributes.cloudcover_percentage}<span
>Cloudless: ${stateObj.attributes.cloudless_percentage}<span
class="unit"
>
%
Expand Down Expand Up @@ -385,7 +385,7 @@ class AstroWeatherCard extends LitElement {
hour12: false,
})}
<div class="value_item_bold">${daily.condition} %</div>
<div class="value_item">${daily.cloudcover_percentage} %</div>
<div class="value_item">${daily.cloudless_percentage} %</div>
<div class="value_item">${daily.seeing_percentage} %</div>
<div class="value_item">
${daily.transparency_percentage} %
Expand Down Expand Up @@ -439,7 +439,7 @@ class AstroWeatherCard extends LitElement {
var d = forecast[i];
dateTime.push(d.datetime);
condition.push(d.condition);
clouds.push(d.cloudcover_percentage);
clouds.push(d.cloudless_percentage);
seeing.push(d.seeing_percentage);
transparency.push(d.transparency_percentage);
}
Expand Down Expand Up @@ -630,7 +630,7 @@ class AstroWeatherCard extends LitElement {
var d = forecast[i];
dateTime.push(d.datetime);
condition.push(d.condition);
clouds.push(d.cloudcover_percentage);
clouds.push(d.cloudless_percentage);
seeing.push(d.seeing_percentage);
transparency.push(d.transparency_percentage);
}
Expand Down

0 comments on commit cd0e77b

Please sign in to comment.