naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
314 stars 63 forks source link

Add uv index to OpenWeatherMap API #99

Closed raphaeldavid closed 4 years ago

raphaeldavid commented 4 years ago

This is my config

    {
        "units": "ca",
        "interval": 5,
        "stations": [
            {
                "nameNow": "xxxx",
                "service": "openweathermap",
                "key": "xxxxxxxxx",
                "locationGeo": [
                    xx.xxxx,
                    -xx.xxxx
                ],
                "locationId": xxxx,
                "locationCity": "xxxx",
                "language": "fr",
                "compatibility": "both",
                "conditionCategory": "detailed",
                "now": true,
                "extraHumidity": false,
                "tresholdAirPressure": 1025,
                "tresholdUvIndex": 5,
                "tresholdWindSpeed": 50
            }
        ],
        "platform": "WeatherPlus"
    }
naofireblade commented 4 years ago

UV Index is currently only available for darksky. I will add this for OpenWeatherMap in an upcoming release.

naofireblade commented 4 years ago

see #114

naofireblade commented 4 years ago

Added uvindex in latest beta. You can install the beta with:

npm install -g homebridge-weather-plus@beta