$twcweather.alerts Observations

weather

#142

$twcweather.alerts.description
“[NULL]”

$twcweather.alerts.instruction
“[NULL]”

$twcweather.alerts.languageCode
“[NULL]”

$twcweather.alerts.overview
“[NULL]”

$twcweather.alerts
[[adminDistrict:Ohio, adminDistrictCode:OH, areaId:OHZ010, areaName:Lorain County, areaTypeCode:Z, categories:[[category:Met, categoryCode:2]], certainty:Unknown, certaintyCode:5, countryCode:US, countryName:UNITED STATES OF AMERICA, detailKey:16c60565-9e09-3845-9a62-2fbd0317a447, disclaimer:null, effectiveTimeLocal:null, effectiveTimeLocalTimeZone:null, eventDescription:Special Weather Statement, eventTrackingNumber:0000, expireTimeLocal:2019-11-12T20:00:00-05:00, expireTimeLocalTimeZone:EST, expireTimeUTC:1573606800, flood:null, headlineText:Special Weather Statement until TUE 8:00 PM EST, ianaTimeZone:America/New_York, identifier:56af5eda8b87b52d842fd87b517f756f, issueTimeLocal:2019-11-12T18:52:00-05:00, issueTimeLocalTimeZone:EST, latitude:0, longitude:0, messageType:New, messageTypeCode:1, officeAdminDistrict:Ohio, officeAdminDistrictCode:OH, officeCode:KCLE, officeCountryCode:US, officeName:Cleveland, onsetTimeLocal:null, onsetTimeLocalTimeZone:null, phenomena:TSL, processTimeUTC:1573602783, productIdentifier:SPS, responseTypes:[[responseType:Avoid, responseTypeCode:5]], severity:Minor, severityCode:4, significance:S, source:National Weather Service, urgency:Unknown, urgencyCode:5]]


#143

Maybe I am reading the JSON wrong… but without an alert, I cannot test on my end…

temp


We already tried:
$twcweather.alerts.texts.description
$twcweather.alerts.description

but it may be:
$twcweather.alerts.texts[0].description
or some other variant,


#144

Goes to ‘evaluating’ and then returns nothing at all


#145

That extra square bracket above always throws me unless I have an example to test in front of me…


Here is the single curly bracket method used in the flood section.

temp

Seen with:
$twcweather.alerts.flood.floodLocationId


#146

In the alerts I posted above, the [0] is with the ‘alerts’:

$twcweather.alerts[0].eventDescription
“Special Weather Statement”

$twcweather.alerts[0].headlineText
“Special Weather Statement until TUE 8:00 PM EST”


#147

Pulling up a JSON parser now… I am really hoping that hidden data is available to us here in webCoRE


#148

Can you confirm that:
$twcweather.alerts.categoryCode
returns 2


#149

Yes, categoryCode = 2 is in the full text above


#150

Thanks for all your testing… I was really hoping that the full data returned with these queries, but maybe SmartThings did not pay for the “Deluxe Weather Plan”.


#151

Maybe one of these will work then…

$twcweather.alerts[0].texts.description
$twcweather.alerts[0].description


#152

You’re welcome! I will continue to play around and see what happens…


#153

both returned nothing


#154

What I meant here was does the following return “2” in an Expression box?

$twcweather.alerts.categoryCode


#155

You are a real trooper, @dejavux2 !!


#156

comes back with “[NULL]”


#157

I figured as such… That extra bracket changes the format of the request…

If we solve one, it should solve the other


My first thoughts are::

$twcweather.alerts.categories.categoryCode
$twcweather.alerts.categories[0].categoryCode

… but again, I have no alerts to test this myself


#158

“Special Weather Statement” has changed to:

Special Weather Statement

Issued at 18:52 Tuesday 12 November 2019

At 650 PM EST, radar indicated an intense snow squall along a line
extending from near Grafton to 6 miles west of Brunswick to near
Medina. This intense snow squall will drift southeast.

HAZARDS INCLUDE…
2 to 5 inches of quick snow accumulation…

Locations impacted include…
Medina, Lorain, Strongsville, Brunswick, North Royalton, Wadsworth, Grafton,
Chippewa Lake, Eaton, Hinckley, Chippewa-On-The-Lake, Valley City,
Eaton Estates and Briarwood Beach.

Use extra caution if you must travel into or through this snow
squall. Rapid changes in visibility and potentially slick roads are
likely to lead to accidents. Consider delaying travel until the
squall passes your location.


#159

For reference, this is all we have to go on the new (potential) dataPoints:
wiki/$twcweather.alerts/Unverified dataPoints


#160

Ah ha!

$twcweather.alerts.categories.categoryCode

comes back with “[[2]]”


#161

Another “Ah ha!”

$twcweather.alerts.categories[0].categoryCode

comes back with “[2]”