Improvement of the Room Temperature and Humidity widgets

This looks great as is, in terms of colors and the UI!
Thanks @Lokkye for all the work.

Hi @Lokkye
Quick question: will this also work for temperature? (but there, red will be required! :blush:)

@pierre-gilles: My bad, I had forgotten to initialize the variables. It’s fixed now.
@cce66: Once we’re completely in agreement on the humidity, I’ll take care of the temperature.

@Lokkye Very nice job, it’s very clean and it works perfectly :sunglasses:

I have a small bit of feedback but it’s really a tiny detail:

For someone who would go up to 100% (which makes little sense, but oh well), the % extends beyond the bar

But otherwise, I find it very intuitive and very clear :slight_smile:

1 Like

Me, actually…
And I don’t have a sauna :winking_face_with_tongue:
For a tropical terrarium, 85% to 100% are the ideal values…

1 Like

It’s clear that it’s nicer with this bar than the first proposal that just showed numbers and colors. This is very clear.

1 Like

@pierre-gilles : I just made the correction for the « 100% » :slight_smile:

2 Likes

@Lokkye Thanks for the feedback, it’s working better !

Small z-index issue though:

@pierre-gilles : It’s fixed :slight_smile:

Excellent @Lokkye! It’s good for me, tested and validated :white_check_mark:

I’ve just merged the PR, it’ll be included in the next version of Gladys.

2 Likes

Great, thanks @Lokkye !!

1 Like

I will therefore tackle the temperature section if that suits everyone.

5 Likes

Here is the result for the temperature:





With the small PR:

7 Likes

I love it! Thank you!

:open_mouth: Great

Can you make the icon yellow when there is no recent value? Use the bg-warning class to be consistent with the latest change on the dashboard

1 Like

@cicoub13 : Done ! :slight_smile:

4 Likes

Thank you :wink: and thank you for all the work on this part

Do you have Bitcoins in your living room ??? :smiley:

1 Like

We need to store them somewhere (in Gladys) :joy:

1 Like

Super tidy @Lokkye :heart_eyes:

The scale might be a bit too high on the positive side, and not low enough on the negative side (0 to 100):

As a result, the default values are bunched up, whereas in our living room the temperature doesn’t go up to 90°C either :stuck_out_tongue:

I would think we could rather use a scale of -20°C → 50°C (I know temperatures can go below or above that, but nobody will set a comfort temperature to -40, or to 60)

I also think we should handle both units: Celsius or Fahrenheit, and adapt the default levels accordingly? You can keep a single default format constant, but do a conversion if the user is in Fahrenheit?