naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
311 stars 61 forks source link

Units always displays in celsius #213

Closed fbara closed 2 years ago

fbara commented 2 years ago

Homebridge v1.3.4

Weather-Plus v3.2.6

Windows 10

Plug-in always uses C for temp, regardless of the “units” entry. Wind speed shows in mph so that’s good. It looks like only temp is impacted.

Here is my config (removed location and api key).

[

        "units": "imperial",
        "interval": 10,
        "stations": [
            {
                "nameNow": "Home",
                "service": "openweathermap",
                "key": "<removed>",
                "locationGeo": [
                    xx.xxxx,
                    -xx.xxxx
                ],
                "units": "imperial",
                "language": "en",
                "compatibility": "home",
                "hidden": [
                    "ConditionCategory",
                    "ObservationStation",
                    "Ozone",
                    "Visibility",
                    "SolarRadiation",
                    "SnowBool"
                ],
                "forecast": [
                    "Today",
                      @@"Tomorrow"
                ],
                "conditionCategory": "simple",
                "now": true,
                "extraHumidity": false
            }
        ]

For units, I’ve tried “us” and “imperial” but there’s no change.

fbara commented 2 years ago

My resolution was to change the Homebridge settings to display in F instead of C.

On Windows 10 I went to Homebridge -> 3 dots in top right -> UI Settings and change Temperature Display Units to F.

fbara commented 2 years ago

Closing now that I fixed the problem.