mawinkler/astroweather

Temperature and dewpoint are celsius only

jds11111 opened this issue ยท 10 comments

Do these entities not have device_class: temperature ?

They do
state_class: measurement attribution: Powered by 7Timer unit_of_measurement: ยฐC device_class: temperature icon: mdi:thermometer friendly_name: Astroweather 2m Temperature

Oddly, the forecast temperature converts to the default units fine, but the current temp stays in deg C only.

Are you referring to the lovelace card? If so, this is now fixed with the latest release

I saw that fix. I make a plot with data scraped from different sources for a different dashboard card, and the astroweather one is the only one that stays in C:
image

Are you referring to the lovelace card? If so, this is now fixed with the latest release

Thanks for correcting the Lovelace card, it now displays in F and MPH.

However, it still shows precipitation rate in mm/hour vs. inches/hour

ScreenHunter 357

ALSO, the displayed CIVIL sunrise times are 30 minutes too early and CIVIL sunset times are 30 minutes too late according to my LAT and LON.
ScreenHunter 361
.

For the sun, I'm calculating the twilights for the center of the object not for the upper edge as some do. This matches with Stellarium and SkySafari 6 Pro.

In regards to the unit conversion, I just pushed 0.22.2 which should resolve the issue. I didn't create a release yet, so you would need to redownload astroweather from the main branch.

That fixed it! The units are now corrected on all the cards. Many thanks.

thank you for reporting back ๐ŸŽ‰

However, it still shows precipitation rate in mm/hour vs. inches/hour

I'm still seeing percipitation rate in mm/hr vs. inches/hour.
ScreenHunter 371

This is because the text is currently defined in constants. I will add that to my to-do list for later. This is what I'm working on now.