Difference between revisions of "TWC Weather"
(Added icons) |
m (Table formatting) |
||
Line 3: | Line 3: | ||
=Conditions= | =Conditions= | ||
− | {| class=" | + | {| class="mw-datatable" |
|- | |- | ||
! Expression | ! Expression | ||
Line 149: | Line 149: | ||
=Forecast= | =Forecast= | ||
− | {| class=" | + | {| class="mw-datatable" |
|- | |- | ||
! Expression | ! Expression | ||
Line 696: | Line 696: | ||
Forecast Day using the "WU v4" icon set: <code>:wu-v4-{$twcweather.forecast.daypart[0].iconCode[INDEX]}</code> note: You will need to change [INDEX] to a value from 0-7 (0 being the next forecasted half day/night and 7 being the 3rd day/night) | Forecast Day using the "WU v4" icon set: <code>:wu-v4-{$twcweather.forecast.daypart[0].iconCode[INDEX]}</code> note: You will need to change [INDEX] to a value from 0-7 (0 being the next forecasted half day/night and 7 being the 3rd day/night) | ||
− | {| | + | {| class="mw-datatable" |
|- | |- | ||
! Code | ! Code | ||
Line 702: | Line 702: | ||
! TWC Icon | ! TWC Icon | ||
! WU v4 Icon | ! WU v4 Icon | ||
− | |||
|- | |- | ||
| 0 | | 0 | ||
| Tornado | | Tornado | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/00.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/00.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/0.svg" height="50"/> | + | <code>:twc-0:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/0.svg" height="50"/> | |
+ | <code>:wu-v4-0:</code> | ||
|- | |- | ||
| 1 | | 1 | ||
| Tropical Storm | | Tropical Storm | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/01.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/01.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/1.svg" height="50"/> | + | <code>:twc-1:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/1.svg" height="50"/> | |
+ | <code>:wu-v4-1:</code> | ||
|- | |- | ||
| 2 | | 2 | ||
| Hurricane | | Hurricane | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/02.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/02.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/2.svg" height="50"/> | + | <code>:twc-2:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/2.svg" height="50"/> | |
+ | <code>:wu-v4-2:</code> | ||
|- | |- | ||
| 3 | | 3 | ||
| Strong Storms | | Strong Storms | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/03.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/03.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/3.svg" height="50"/> | + | <code>:twc-3:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/3.svg" height="50"/> | |
+ | <code>:wu-v4-3:</code> | ||
|- | |- | ||
| 4 | | 4 | ||
| Thunder and Hail | | Thunder and Hail | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/04.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/04.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/4.svg" height="50"/> | + | <code>:twc-4:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/4.svg" height="50"/> | |
+ | <code>:wu-v4-4:</code> | ||
|- | |- | ||
| 5 | | 5 | ||
| Rain to Snow Showers | | Rain to Snow Showers | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/05.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/05.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/5.svg" height="50"/> | + | <code>:twc-5:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/5.svg" height="50"/> | |
+ | <code>:wu-v4-5:</code> | ||
|- | |- | ||
| 6 | | 6 | ||
| Rain / Sleet | | Rain / Sleet | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/06.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/06.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/6.svg" height="50"/> | + | <code>:twc-6:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/6.svg" height="50"/> | |
+ | <code>:wu-v4-6:</code> | ||
|- | |- | ||
| 7 | | 7 | ||
| Wintry Mix Snow / Sleet | | Wintry Mix Snow / Sleet | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/07.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/07.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/7.svg" height="50"/> | + | <code>:twc-7:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/7.svg" height="50"/> | |
+ | <code>:wu-v4-7:</code> | ||
|- | |- | ||
| 8 | | 8 | ||
| Freezing Drizzle | | Freezing Drizzle | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/08.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/08.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/8.svg" height="50"/> | + | <code>:twc-8:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/8.svg" height="50"/> | |
+ | <code>:wu-v4-8:</code> | ||
|- | |- | ||
| 9 | | 9 | ||
| Drizzle | | Drizzle | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/09.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/09.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/9.svg" height="50"/> | + | <code>:twc-9:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/9.svg" height="50"/> | |
+ | <code>:wu-v4-9:</code> | ||
|- | |- | ||
| 10 | | 10 | ||
| Freezing Rain | | Freezing Rain | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/10.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/10.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/10.svg" height="50"/> | + | <code>:twc-0:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/10.svg" height="50"/> | |
+ | <code>:wu-v4-0:</code> | ||
|- | |- | ||
| 11 | | 11 | ||
| Light Rain | | Light Rain | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/11.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/11.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/11.svg" height="50"/> | + | <code>:twc-1:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/11.svg" height="50"/> | |
+ | <code>:wu-v4-1:</code> | ||
|- | |- | ||
| 12 | | 12 | ||
| Rain | | Rain | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/12.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/12.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/12.svg" height="50"/> | + | <code>:twc-2:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/12.svg" height="50"/> | |
+ | <code>:wu-v4-2:</code> | ||
|- | |- | ||
| 13 | | 13 | ||
| Scattered Flurries | | Scattered Flurries | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/13.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/13.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/13.svg" height="50"/> | + | <code>:twc-3:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/13.svg" height="50"/> | |
+ | <code>:wu-v4-3:</code> | ||
|- | |- | ||
| 14 | | 14 | ||
| Light Snow | | Light Snow | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/14.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/14.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/14.svg" height="50"/> | + | <code>:twc-4:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/14.svg" height="50"/> | |
+ | <code>:wu-v4-4:</code> | ||
|- | |- | ||
| 15 | | 15 | ||
| Blowing / Drifting Snow | | Blowing / Drifting Snow | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/15.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/15.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/15.svg" height="50"/> | + | <code>:twc-5:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/15.svg" height="50"/> | |
+ | <code>:wu-v4-5:</code> | ||
|- | |- | ||
| 16 | | 16 | ||
| Snow | | Snow | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/16.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/16.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/16.svg" height="50"/> | + | <code>:twc-6:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/16.svg" height="50"/> | |
+ | <code>:wu-v4-6:</code> | ||
|- | |- | ||
| 17 | | 17 | ||
| Hail | | Hail | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/17.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/17.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/17.svg" height="50"/> | + | <code>:twc-7:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/17.svg" height="50"/> | |
+ | <code>:wu-v4-7:</code> | ||
|- | |- | ||
| 18 | | 18 | ||
| Sleet | | Sleet | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/18.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/18.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/18.svg" height="50"/> | + | <code>:twc-8:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/18.svg" height="50"/> | |
+ | <code>:wu-v4-8:</code> | ||
|- | |- | ||
| 19 | | 19 | ||
| Blowing Dust / Sandstorm | | Blowing Dust / Sandstorm | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/19.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/19.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/19.svg" height="50"/> | + | <code>:twc-9:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/19.svg" height="50"/> | |
+ | <code>:wu-v4-9:</code> | ||
|- | |- | ||
| 20 | | 20 | ||
| Foggy | | Foggy | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/20.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/20.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/20.svg" height="50"/> | + | <code>:twc-0:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/20.svg" height="50"/> | |
+ | <code>:wu-v4-0:</code> | ||
|- | |- | ||
| 21 | | 21 | ||
| Haze / Windy | | Haze / Windy | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/21.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/21.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/21.svg" height="50"/> | + | <code>:twc-1:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/21.svg" height="50"/> | |
+ | <code>:wu-v4-1:</code> | ||
|- | |- | ||
| 22 | | 22 | ||
| Smoke / Windy | | Smoke / Windy | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/22.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/22.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/22.svg" height="50"/> | + | <code>:twc-2:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/22.svg" height="50"/> | |
+ | <code>:wu-v4-2:</code> | ||
|- | |- | ||
| 23 | | 23 | ||
| Breezy | | Breezy | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/23.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/23.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/23.svg" height="50"/> | + | <code>:twc-3:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/23.svg" height="50"/> | |
+ | <code>:wu-v4-3:</code> | ||
|- | |- | ||
| 24 | | 24 | ||
| Blowing Spray / Windy | | Blowing Spray / Windy | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/24.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/24.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/24.svg" height="50"/> | + | <code>:twc-4:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/24.svg" height="50"/> | |
+ | <code>:wu-v4-4:</code> | ||
|- | |- | ||
| 25 | | 25 | ||
| Frigid / Ice Crystals | | Frigid / Ice Crystals | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/25.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/25.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/25.svg" height="50"/> | + | <code>:twc-5:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/25.svg" height="50"/> | |
+ | <code>:wu-v4-5:</code> | ||
|- | |- | ||
| 26 | | 26 | ||
| Cloudy | | Cloudy | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/26.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/26.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/26.svg" height="50"/> | + | <code>:twc-6:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/26.svg" height="50"/> | |
+ | <code>:wu-v4-6:</code> | ||
|- | |- | ||
| 27 | | 27 | ||
| Mostly Cloudy | | Mostly Cloudy | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/27.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/27.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/27.svg" height="50"/> | + | <code>:twc-7:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/27.svg" height="50"/> | |
+ | <code>:wu-v4-7:</code> | ||
|- | |- | ||
| 28 | | 28 | ||
| Mostly Cloudy | | Mostly Cloudy | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/28.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/28.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/28.svg" height="50"/> | + | <code>:twc-8:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/28.svg" height="50"/> | |
+ | <code>:wu-v4-8:</code> | ||
|- | |- | ||
| 29 | | 29 | ||
| Partly Cloudy | | Partly Cloudy | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/29.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/29.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/29.svg" height="50"/> | + | <code>:twc-9:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/29.svg" height="50"/> | |
+ | <code>:wu-v4-9:</code> | ||
|- | |- | ||
| 30 | | 30 | ||
| Partly Cloudy | | Partly Cloudy | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/30.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/30.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/30.svg" height="50"/> | + | <code>:twc-0:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/30.svg" height="50"/> | |
+ | <code>:wu-v4-0:</code> | ||
|- | |- | ||
| 31 | | 31 | ||
| Clear | | Clear | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/31.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/31.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/31.svg" height="50"/> | + | <code>:twc-1:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/31.svg" height="50"/> | |
+ | <code>:wu-v4-1:</code> | ||
|- | |- | ||
| 32 | | 32 | ||
| Sunny | | Sunny | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/32.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/32.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/32.svg" height="50"/> | + | <code>:twc-2:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/32.svg" height="50"/> | |
+ | <code>:wu-v4-2:</code> | ||
|- | |- | ||
| 33 | | 33 | ||
| Fair / Mostly Clear | | Fair / Mostly Clear | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/33.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/33.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/33.svg" height="50"/> | + | <code>:twc-3:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/33.svg" height="50"/> | |
+ | <code>:wu-v4-3:</code> | ||
|- | |- | ||
| 34 | | 34 | ||
| Fair / Mostly Sunny | | Fair / Mostly Sunny | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/34.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/34.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/34.svg" height="50"/> | + | <code>:twc-4:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/34.svg" height="50"/> | |
+ | <code>:wu-v4-4:</code> | ||
|- | |- | ||
| 35 | | 35 | ||
| Mixed Rain & Hail | | Mixed Rain & Hail | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/35.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/35.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/35.svg" height="50"/> | + | <code>:twc-5:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/35.svg" height="50"/> | |
+ | <code>:wu-v4-5:</code> | ||
|- | |- | ||
| 36 | | 36 | ||
| Hot | | Hot | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/36.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/36.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/36.svg" height="50"/> | + | <code>:twc-6:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/36.svg" height="50"/> | |
+ | <code>:wu-v4-6:</code> | ||
|- | |- | ||
| 37 | | 37 | ||
| Isolated Thunderstorms | | Isolated Thunderstorms | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/37.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/37.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/37.svg" height="50"/> | + | <code>:twc-7:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/37.svg" height="50"/> | |
+ | <code>:wu-v4-7:</code> | ||
|- | |- | ||
| 38 | | 38 | ||
| Thunderstorms | | Thunderstorms | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/38.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/38.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/38.svg" height="50"/> | + | <code>:twc-8:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/38.svg" height="50"/> | |
+ | <code>:wu-v4-8:</code> | ||
|- | |- | ||
| 39 | | 39 | ||
| Scattered Showers | | Scattered Showers | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/39.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/39.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/39.svg" height="50"/> | + | <code>:twc-9:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/39.svg" height="50"/> | |
+ | <code>:wu-v4-9:</code> | ||
|- | |- | ||
| 40 | | 40 | ||
| Heavy Rain | | Heavy Rain | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/40.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/40.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/40.svg" height="50"/> | + | <code>:twc-0:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/40.svg" height="50"/> | |
+ | <code>:wu-v4-0:</code> | ||
|- | |- | ||
| 41 | | 41 | ||
| Scattered Snow Showers | | Scattered Snow Showers | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/41.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/41.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/41.svg" height="50"/> | + | <code>:twc-1:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/41.svg" height="50"/> | |
+ | <code>:wu-v4-1:</code> | ||
|- | |- | ||
| 42 | | 42 | ||
| Heavy Snow | | Heavy Snow | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/42.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/42.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/42.svg" height="50"/> | + | <code>:twc-2:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/42.svg" height="50"/> | |
+ | <code>:wu-v4-2:</code> | ||
|- | |- | ||
| 43 | | 43 | ||
| Blizzard | | Blizzard | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/43.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/43.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/43.svg" height="50"/> | + | <code>:twc-3:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/43.svg" height="50"/> | |
+ | <code>:wu-v4-3:</code> | ||
|- | |- | ||
| 44 | | 44 | ||
| Not Available (N/A) | | Not Available (N/A) | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/44.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/44.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/44.svg" height="50"/> | + | <code>:twc-4:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/44.svg" height="50"/> | |
+ | <code>:wu-v4-4:</code> | ||
|- | |- | ||
| 45 | | 45 | ||
| Scattered Showers | | Scattered Showers | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/45.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/45.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/45.svg" height="50"/> | + | <code>:twc-5:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/45.svg" height="50"/> | |
+ | <code>:wu-v4-5:</code> | ||
|- | |- | ||
| 46 | | 46 | ||
| Scattered Snow Showers | | Scattered Snow Showers | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/46.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/46.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/46.svg" height="50"/> | + | <code>:twc-6:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/46.svg" height="50"/> | |
+ | <code>:wu-v4-6:</code> | ||
|- | |- | ||
| 47 | | 47 | ||
| Scattered Thunderstorms | | Scattered Thunderstorms | ||
− | | <img src="https://smartthings-twc-icons.s3.amazonaws.com/47.png" height="50"/> | + | | style="text-align: center" | <img src="https://smartthings-twc-icons.s3.amazonaws.com/47.png" height="50"/> |
− | | <img src="https://icons.wxug.com/i/c/v4/47.svg" height="50"/> | + | <code>:twc-7:</code> |
− | + | | style="text-align: center" | <img src="https://icons.wxug.com/i/c/v4/47.svg" height="50"/> | |
+ | <code>:wu-v4-7:</code> | ||
|} | |} | ||
Revision as of 17:48, 22 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[0].cloudCover
|
[ 16, 79, 100, 100, 99, 85, 32, 14 ] |
$twcweather.forecast.daypart[0].dayOrNight
|
[ "D", "N", "D", "N", "D", "N", "D", "N" ] |
$twcweather.forecast.daypart[0].daypartName
|
[ "Today", "Tonight", "Tomorrow", "Tomorrow night", "Friday", "Friday night", "Saturday", "Saturday night" ] |
$twcweather.forecast.daypart[0].iconCode
|
[ 34, 27, 12, 12, 12, 26, 34, 33 ] |
$twcweather.forecast.daypart[0].iconCodeExtend
|
[ 3400, 2700, 1200, 1200, 1200, 2600, 3400, 3300 ] |
$twcweather.forecast.daypart[0].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[0].precipChance
|
[ 0, 20, 100, 90, 100, 20, 0, 0 ] |
$twcweather.forecast.daypart[0].precipType
|
[ "rain", "precip", "rain", "rain", "rain", "precip", "rain", "precip" ] |
$twcweather.forecast.daypart[0].qpf
|
[ 0, 0, 0.93, 0.51, 0.48, 0, 0, 0 ] |
$twcweather.forecast.daypart[0].qpfSnow
|
[ 0, 0, 0, 0, 0, 0, 0, 0 ] |
$twcweather.forecast.daypart[0].qualifierCode
|
[ null, null, null, null, "Q8003", null, null, null ] |
$twcweather.forecast.daypart[0].qualifierPhrase
|
[ null, null, null, null, "Thunder possible.", null, null, null ] |
$twcweather.forecast.daypart[0].relativeHumidity
|
[ 63, 85, 93, 96, 92, 76, 55, 72 ] |
$twcweather.forecast.daypart[0].snowRange
|
[ "", "", "", "", "", "", "", "" ] |
$twcweather.forecast.daypart[0].temperature
|
[ 51, 38, 49, 47, 54, 37, 49, 31 ] |
$twcweather.forecast.daypart[0].temperatureHeatIndex
|
[ 50, 43, 48, 50, 54, 46, 48, 39 ] |
$twcweather.forecast.daypart[0].temperatureWindChill
|
[ 44, 39, 41, 46, 43, 34, 33, 32 ] |
$twcweather.forecast.daypart[0].thunderCategory
|
[ "No thunder", "No thunder", "No thunder", "No thunder", "Thunder possible", "No thunder", "No thunder", "No thunder" ] |
$twcweather.forecast.daypart[0].thunderIndex
|
[ 0, 0, 0, 0, 1, 0, 0, 0 ] |
$twcweather.forecast.daypart[0].uvDescription
|
[ "Low", "Low", "Low", "Low", "Low", "Low", "Low", "Low" ] |
$twcweather.forecast.daypart[0].uvIndex
|
[ 1, 0, 1, 0, 1, 0, 2, 0 ] |
$twcweather.forecast.daypart[0].windDirection
|
[ 173, 44, 51, 125, 208, 292, 282, 274 ] |
$twcweather.forecast.daypart[0].windDirectionCardinal
|
[ "S", "NE", "NE", "SE", "SSW", "WNW", "WNW", "W" ] |
$twcweather.forecast.daypart[0].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[0].windSpeed
|
[ 3, 1, 6, 5, 9, 9, 9, 3 ] |
$twcweather.forecast.daypart[0].wxPhraseLong
|
[ "Mostly Sunny", "Mostly Cloudy", "Rain", "Rain", "Rain", "Cloudy", "Mostly Sunny", "Mostly Clear" ] |
$twcweather.forecast.daypart[0].wxPhraseShort
|
[ "M Sunny", "M Cloudy", "Rain", "Rain", "Rain", "Cloudy", "M Sunny", "M Clear" ] |
Weather Icons
Usage
Choose an icon set below and use it with the iconCode values from $twcweather
. The following examples can be used in the Value field.
Current Weather using the "TWC" icon set: :twc-{$twcweather.conditions.iconCode}:
Forecast Day using the "WU v4" icon set: :wu-v4-{$twcweather.forecast.daypart[0].iconCode[INDEX]}
note: You will need to change [INDEX] to a value from 0-7 (0 being the next forecasted half day/night and 7 being the 3rd day/night)
Code | Description | TWC Icon | WU v4 Icon |
---|---|---|---|
0 | Tornado |
|
|
1 | Tropical Storm |
|
|
2 | Hurricane |
|
|
3 | Strong Storms |
|
|
4 | Thunder and Hail |
|
|
5 | Rain to Snow Showers |
|
|
6 | Rain / Sleet |
|
|
7 | Wintry Mix Snow / Sleet |
|
|
8 | Freezing Drizzle |
|
|
9 | Drizzle |
|
|
10 | Freezing Rain |
|
|
11 | Light Rain |
|
|
12 | Rain |
|
|
13 | Scattered Flurries |
|
|
14 | Light Snow |
|
|
15 | Blowing / Drifting Snow |
|
|
16 | Snow |
|
|
17 | Hail |
|
|
18 | Sleet |
|
|
19 | Blowing Dust / Sandstorm |
|
|
20 | Foggy |
|
|
21 | Haze / Windy |
|
|
22 | Smoke / Windy |
|
|
23 | Breezy |
|
|
24 | Blowing Spray / Windy |
|
|
25 | Frigid / Ice Crystals |
|
|
26 | Cloudy |
|
|
27 | Mostly Cloudy |
|
|
28 | Mostly Cloudy |
|
|
29 | Partly Cloudy |
|
|
30 | Partly Cloudy |
|
|
31 | Clear |
|
|
32 | Sunny |
|
|
33 | Fair / Mostly Clear |
|
|
34 | Fair / Mostly Sunny |
|
|
35 | Mixed Rain & Hail |
|
|
36 | Hot |
|
|
37 | Isolated Thunderstorms |
|
|
38 | Thunderstorms |
|
|
39 | Scattered Showers |
|
|
40 | Heavy Rain |
|
|
41 | Scattered Snow Showers |
|
|
42 | Heavy Snow |
|
|
43 | Blizzard |
|
|
44 | Not Available (N/A) |
|
|
45 | Scattered Showers |
|
|
46 | Scattered Snow Showers |
|
|
47 | Scattered Thunderstorms |
|
|
Old icon sets
Several additional icon sets are available but all have a much more limited set of icons. We have ensured that the $twcWeather
icon code numbers map to an approximately accurate representation in the old icon sets. While the old sets work we encourage use of the more expressive TWC and WU v4 icon sets.
All of the icon sets described on the original Weather#Weather_Icons page work with the new codes, for example :wu-b-36:
maps to the "sunny" icon in the "B" icon set.