Difference between revisions of "TWC Weather"

From webCoRE Wiki - Web-enabled Community's own Rule Engine
Jump to: navigation, search
(Created page with "The <code>$twcweather</code> system variable provides data from The Weather Company following the shutdown of the Weather Underground API that powered <code>$weather</code>. S...")
(No difference)

Revision as of 15:10, 19 February 2019

The $twcweather system variable provides data from The Weather Company following the shutdown of the Weather Underground API that powered $weather. See sample data below which is available for webCoRE installs running on the SmartThings platform.

Conditions

Expression Sample value
$twcweather.conditions.cloudCeiling null
$twcweather.conditions.cloudCoverPhrase "Clear"
$twcweather.conditions.dayOfWeek "Wednesday"
$twcweather.conditions.dayOrNight "D"
$twcweather.conditions.expirationTimeUtc 1545249077
$twcweather.conditions.iconCode 32
$twcweather.conditions.iconCodeExtend 3200
$twcweather.conditions.obsQualifierCode null
$twcweather.conditions.obsQualifierSeverity null
$twcweather.conditions.precip1Hour 0
$twcweather.conditions.precip6Hour 0
$twcweather.conditions.precip24Hour 0
$twcweather.conditions.pressureAltimeter 1018.29
$twcweather.conditions.pressureChange -2.71
$twcweather.conditions.pressureMeanSeaLevel 1018.5
$twcweather.conditions.pressureTendencyCode 2
$twcweather.conditions.pressureTendencyTrend "Falling"
$twcweather.conditions.relativeHumidity 55
$twcweather.conditions.snow1Hour 0
$twcweather.conditions.snow6Hour 0
$twcweather.conditions.snow24Hour 0
$twcweather.conditions.sunriseTimeLocal "2018-12-19T07:28:58-0500"
$twcweather.conditions.sunriseTimeUtc 1545222538
$twcweather.conditions.sunsetTimeLocal "2018-12-19T17:10:52-0500"
$twcweather.conditions.sunsetTimeUtc 1545257452
$twcweather.conditions.temperature 10
$twcweather.conditions.temperatureChange24Hour -2
$twcweather.conditions.temperatureDewPoint 2
$twcweather.conditions.temperatureFeelsLike 9
$twcweather.conditions.temperatureHeatIndex 10
$twcweather.conditions.temperatureMax24Hour 12
$twcweather.conditions.temperatureMaxSince7Am 10
$twcweather.conditions.temperatureMin24Hour -3
$twcweather.conditions.temperatureWindChill 9
$twcweather.conditions.uvDescription "Low"
$twcweather.conditions.uvIndex 1
$twcweather.conditions.validTimeLocal "2018-12-19T14:41:17-0500"
$twcweather.conditions.validTimeUtc 1545248477
$twcweather.conditions.visibility 16.09
$twcweather.conditions.windDirection 180
$twcweather.conditions.windDirectionCardinal "S"
$twcweather.conditions.windGust null
$twcweather.conditions.windSpeed 6
$twcweather.conditions.wxPhraseLong "Sunny"
$twcweather.conditions.wxPhraseMedium "Sunny"
$twcweather.conditions.wxPhraseShort "Sunny"

Forecast

Expression Sample value
$twcWeather.forecast.dayOfWeek
[
    "Wednesday",
    "Thursday",
    "Friday",
    "Saturday"
]
$twcWeather.forecast.expirationTimeUtc
[
    1545251268,
    1545251268,
    1545251268,
    1545251268
]
$twcWeather.forecast.moonPhase
[
    "Waxing Gibbous",
    "Waxing Gibbous",
    "Waxing Gibbous",
    "Full Moon"
]
$twcWeather.forecast.moonPhaseCode
[
    "WXG",
    "WXG",
    "WXG",
    "F"
]
$twcWeather.forecast.moonPhaseDay
[
    11,
    12,
    13,
    15
]
$twcWeather.forecast.moonriseTimeLocal
[
    "2018-12-19T15:04:06-0500",
    "2018-12-20T15:44:43-0500",
    "2018-12-21T16:32:25-0500",
    "2018-12-22T17:26:58-0500"
]
$twcWeather.forecast.moonriseTimeUtc
[
    1545249846,
    1545338683,
    1545427945,
    1545517618
]
$twcWeather.forecast.moonsetTimeLocal
[
    "2018-12-19T03:50:48-0500",
    "2018-12-20T04:56:24-0500",
    "2018-12-21T06:03:51-0500",
    "2018-12-22T07:11:16-0500"
]
$twcWeather.forecast.moonsetTimeUtc
[
    1545209448,
    1545299784,
    1545390231,
    1545480676
]
$twcWeather.forecast.narrative
[
    "A few clouds. Highs in the low 50s and lows in the upper 30s.",
    "Cloudy, periods of rain. Highs in the upper 40s with temperatures nearly steady overnight.",
    "Cloudy with rain. Highs in the mid 50s and lows in the upper 30s.",
    "Mostly sunny. Highs in the upper 40s and lows in the low 30s."
]
$twcWeather.forecast.qpf
[
    0,
    1.44,
    0.49,
    0
]
$twcWeather.forecast.qpfSnow
[
    0,
    0,
    0,
    0
]
$twcWeather.forecast.sunriseTimeLocal
[
    "2018-12-19T07:28:58-0500",
    "2018-12-20T07:29:31-0500",
    "2018-12-21T07:30:02-0500",
    "2018-12-22T07:30:32-0500"
]
$twcWeather.forecast.sunriseTimeUtc
[
    1545222538,
    1545308971,
    1545395402,
    1545481832
]
$twcWeather.forecast.sunsetTimeLocal
[
    "2018-12-19T17:10:52-0500",
    "2018-12-20T17:11:19-0500",
    "2018-12-21T17:11:47-0500",
    "2018-12-22T17:12:18-0500"
]
$twcWeather.forecast.sunsetTimeUtc
[
    1545257452,
    1545343879,
    1545430307,
    1545516738
]
$twcWeather.forecast.temperatureMax
[
    51,
    49,
    54,
    49
]
$twcWeather.forecast.temperatureMin
[
    38,
    47,
    37,
    31
]
$twcWeather.forecast.validTimeLocal
[
    "2018-12-19T07:00:00-0500",
    "2018-12-20T07:00:00-0500",
    "2018-12-21T07:00:00-0500",
    "2018-12-22T07:00:00-0500"
]
$twcWeather.forecast.validTimeUtc
[
    1545220800,
    1545307200,
    1545393600,
    1545480000
]
$twcWeather.forecast.daypart.cloudCover
[
    16,
    79,
    100,
    100,
    99,
    85,
    32,
    14
]
$twcWeather.forecast.daypart.dayOrNight
[
    "D",
    "N",
    "D",
    "N",
    "D",
    "N",
    "D",
    "N"
]
$twcWeather.forecast.daypart.daypartName
[
    "Today",
    "Tonight",
    "Tomorrow",
    "Tomorrow night",
    "Friday",
    "Friday night",
    "Saturday",
    "Saturday night"
]
$twcWeather.forecast.daypart.iconCode
[
    34,
    27,
    12,
    12,
    12,
    26,
    34,
    33
]
$twcWeather.forecast.daypart.iconCodeExtend
[
    3400,
    2700,
    1200,
    1200,
    1200,
    2600,
    3400,
    3300
]
$twcWeather.forecast.daypart.narrative
[
    "Lots of sunshine. High 51F. Winds light and variable.",
    "Partly cloudy early followed by cloudy skies overnight. Low 38F. Winds light and variable.",
    "Rain likely. High 49F. Winds NE at 5 to 10 mph. Chance of rain 100%. Rainfall near an inch.",
    "Rain likely. Low 47F. Winds light and variable. Chance of rain 90%. Rainfall near a half an inch.",
    "Periods of rain. Thunder possible. High 54F. Winds SSW at 5 to 10 mph. Chance of rain 100%.",
    "Cloudy. Low 37F. Winds WNW at 5 to 10 mph.",
    "A few clouds early, otherwise mostly sunny. High 49F. Winds WNW at 5 to 10 mph.",
    "Clear to partly cloudy. Low 31F. Winds light and variable."
]
$twcWeather.forecast.daypart.precipChance
[
    0,
    20,
    100,
    90,
    100,
    20,
    0,
    0
]
$twcWeather.forecast.daypart.precipType
[
    "rain",
    "precip",
    "rain",
    "rain",
    "rain",
    "precip",
    "rain",
    "precip"
]
$twcWeather.forecast.daypart.qpf
[
    0,
    0,
    0.93,
    0.51,
    0.48,
    0,
    0,
    0
]
$twcWeather.forecast.daypart.qpfSnow
[
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
]
$twcWeather.forecast.daypart.qualifierCode
[
    null,
    null,
    null,
    null,
    "Q8003",
    null,
    null,
    null
]
$twcWeather.forecast.daypart.qualifierPhrase
[
    null,
    null,
    null,
    null,
    "Thunder possible.",
    null,
    null,
    null
]
$twcWeather.forecast.daypart.relativeHumidity
[
    63,
    85,
    93,
    96,
    92,
    76,
    55,
    72
]
$twcWeather.forecast.daypart.snowRange
[
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    ""
]
$twcWeather.forecast.daypart.temperature
[
    51,
    38,
    49,
    47,
    54,
    37,
    49,
    31
]
$twcWeather.forecast.daypart.temperatureHeatIndex
[
    50,
    43,
    48,
    50,
    54,
    46,
    48,
    39
]
$twcWeather.forecast.daypart.temperatureWindChill
[
    44,
    39,
    41,
    46,
    43,
    34,
    33,
    32
]
$twcWeather.forecast.daypart.thunderCategory
[
    "No thunder",
    "No thunder",
    "No thunder",
    "No thunder",
    "Thunder possible",
    "No thunder",
    "No thunder",
    "No thunder"
]
$twcWeather.forecast.daypart.thunderIndex
[
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    0
]
$twcWeather.forecast.daypart.uvDescription
[
    "Low",
    "Low",
    "Low",
    "Low",
    "Low",
    "Low",
    "Low",
    "Low"
]
$twcWeather.forecast.daypart.uvIndex
[
    1,
    0,
    1,
    0,
    1,
    0,
    2,
    0
]
$twcWeather.forecast.daypart.windDirection
[
    173,
    44,
    51,
    125,
    208,
    292,
    282,
    274
]
$twcWeather.forecast.daypart.windDirectionCardinal
[
    "S",
    "NE",
    "NE",
    "SE",
    "SSW",
    "WNW",
    "WNW",
    "W"
]
$twcWeather.forecast.daypart.windPhrase
[
    "Winds light and variable.",
    "Winds light and variable.",
    "Winds NE at 5 to 10 mph.",
    "Winds light and variable.",
    "Winds SSW at 5 to 10 mph.",
    "Winds WNW at 5 to 10 mph.",
    "Winds WNW at 5 to 10 mph.",
    "Winds light and variable."
]
$twcWeather.forecast.daypart.windSpeed
[
    3,
    1,
    6,
    5,
    9,
    9,
    9,
    3
]
$twcWeather.forecast.daypart.wxPhraseLong
[
    "Mostly Sunny",
    "Mostly Cloudy",
    "Rain",
    "Rain",
    "Rain",
    "Cloudy",
    "Mostly Sunny",
    "Mostly Clear"
]
$twcWeather.forecast.daypart.wxPhraseShort
[
    "M Sunny",
    "M Cloudy",
    "Rain",
    "Rain",
    "Rain",
    "Cloudy",
    "M Sunny",
    "M Clear"
]