Skip to content

Weather Variables available

reneboer edited this page May 28, 2019 · 7 revisions

Currently the following weather variables are available for use: Using ServiceID urn:upnp-micasaverde-com:serviceId:Weather1

  • CurrentTemperature, degrees
  • CurrentApparentTemperature, degrees
  • CurrentCloudCover, percentage
  • CurrentDewPoint, degrees
  • CurrentHumidity, percent
  • icon, one of clear-day, clear-night, rain, snow, sleet, wind, fog, cloudy, partly-cloudy-day, or partly-cloudy-night
  • CurrentOzone, dobson
  • CurrentuvIndex,
  • CurrentVisibility, distance
  • CurrentPressure, sea-level pressure
  • CurrentPrecipIntensity,
  • CurrentPrecipProbability, percent
  • CurrentPrecipType, string. E.g. rain, snow, etc.
  • CurrentConditions, string
  • LastUpdate, time of last weather report
  • CurrentWindBearing, direction
  • CurrentWindSpeed, speed
  • CurrentWindGust, speed
  • WeekConditions, string
  • ReportedUnits, the units used for weather data. One of si, us, ca, uk2.

For the forecasts the below values are returned for each of the selected forecast days. The prefix indicates the day of forecast. Day one is today's forecast where [pfx] = Today, for day two [pfx] = Tomorrow, for day three [pfx] = Forecast.3., for day four [pfx] = Forecast.4., and so on till [pfx] = Forecast.7. for day seven.

  • [pfx]Pressure, sea-level pressure
  • [pfx]Conditions, string
  • [pfx]Ozone, dobson
  • [pfx]uvIndex,
  • [pfx]uvIndexTime, expected time of maximum uvIndex
  • [pfx]Visibility, distance
  • [pfx]PrecipIntensity,
  • [pfx]PrecipIntensityMax,
  • [pfx]PrecipIntensityMaxTime, expected time of PrecipIntensityMax
  • [pfx]PrecipProbability, percent
  • [pfx]PrecipType, string. E.g. rain, snow, etc.
  • [pfx]MaxTemp, the maximum temperature during a given date in degrees
  • [pfx]MaxTempTime, expected time of MaxTemp
  • [pfx]MinTemp, the minimum temperature during a given date in degrees
  • [pfx]MinTempTime, expected time of MinTemp
  • [pfx]HighTemp, the daytime high temperature in degrees
  • [pfx]HighTempTime, expected time of HighTemp
  • [pfx]LowTemp, overnight low temperature in degrees
  • [pfx]LowTempTime, expected time of LowTemp
  • [pfx]ApparentMaxTemp, degrees
  • [pfx]ApparentMaxTempTime, expected time of ApparentMaxTemp
  • [pfx]ApparentMinTemp, degrees
  • [pfx]ApparentMinTempTime, expected time of ApparentMinTemp
  • [pfx]Icon, one of clear-day, clear-night, rain, snow, sleet, wind, fog, cloudy, partly-cloudy-day, or partly-cloudy-night
  • [pfx]CloudCover, percentage
  • [pfx]DewPoint, degrees
  • [pfx]Humidity, percentage
  • [pfx]WindBearing, direction
  • [pfx]WindSpeed, speed
  • [pfx]WindGust, speed
  • [pfx]WindGustTime, expected time of WindGust

The variables for the child devices are as follows:

The Apparent Temp. child device

  • ServiceID urn:upnp-org:serviceId:TemperatureSensor1:
  • Variable CurrentTemperature, degrees

The Temperature child device

  • ServiceID urn:upnp-org:serviceId:TemperatureSensor1:
  • Variable CurrentTemperature, degrees

The Humidity child device

  • ServiceID urn:micasaverde-com:serviceId:HumiditySensor1:
  • Variable CurrentLevel, percent

The UV Index child device

  • ServiceID urn:micasaverde-com:serviceId:LightSensor1:
  • Variable CurrentLevel, percent

The other child devices

  • ServiceID urn:micasaverde-com:serviceId:GenericSensor1:
  • Variable CurrentLevel

If you want to do some automation based on weather conditions it is best to use the icon variable. The condition strings are free format text and language dependent making them unsuitable for automation.

See DarkSky API documentation for more information.