vche / appdaemon_weatherentity

Appdaemon widget for displaying homeassistant weather entities in dashboards
GNU General Public License v3.0
11 stars 5 forks source link

ClimaCell Implementation Rain Amount/Probablility not rounded and no units #6

Closed PFHUTCHINS closed 2 years ago

PFHUTCHINS commented 2 years ago

The weatherenitity works well with ClimaCell except for the Precipitation Amount. This value is not rounded and can sometimes contain 10 digits to the right of the decimal, which causes the cells to wrap around beneath the row below it. I've attached a screenshot of an example. Can you help?

- ClimaCell Implementation

vche commented 2 years ago

Rounded to 2 digits, as you can see before and after.

 before after

Let me know if that fix your issue. I will close the issue next week if no comments.

PFHUTCHINS commented 2 years ago

Thank you for the quick response. This fixed the rounding issue, but what are the units of measure? Can you add units?

image

vche commented 2 years ago

Hey ! I forgot to add the units indeed.

Units are mm or inches depending on your config

I'll add a config to set it in a bit

vche commented 2 years ago

I also noticed that precipitation probability is now implemented, so i'll add the option to choose between % or mm/in

vche commented 2 years ago

the last commits should fix this

PFHUTCHINS commented 2 years ago

Looks fantastic! Thanks!

image