webCoRE Update v0.3.10a.20190223 - adds $twcweather to replace discontinued $weather, bug fixes


#81

I have finally have some free time to try to convert my weather monitor piston to look for codes in the new API and today there was flood warning in another county but not here but here is the payload I received from the API call using {$twcweather.alerts[1]}. looking at the payload I found the:

phenomena:FL

But my bigger question is why am I seeing a alert for another area? I thought it was supposed to use my location “long/lat” for forecasts and alerts. Am I looking at this right, I am in Cook county not Kane County?

[adminDistrict:Illinois,
adminDistrictCode:IL,
areaId:ILC089,
areaName:Kane County,
areaTypeCode:C,
categories:[[category:Met,
categoryCode:2]],
certainty:Unknown,
certaintyCode:5,
countryCode:US,
countryName:UNITED STATES OF AMERICA,
detailKey:771b47a0-bf02-37e4-b27b-599150b49444,
disclaimer:null,
effectiveTimeLocal:null,
effectiveTimeLocalTimeZone:null,
eventDescription:River Flood Advisory,
eventTrackingNumber:0065,
expireTimeLocal:2019-03-17T07:00:00-05:00,
expireTimeLocalTimeZone:CDT,
expireTimeUTC:1552824000,
flood:[floodCrestTimeLocal:null,
floodCrestTimeLocalTimeZone:null,
floodEndTimeLocal:null,
floodEndTimeLocalTimeZone:null,
floodImmediateCause:Excessive Rainfall,
floodImmediateCauseCode:ER,
floodLocationId:AFBI2,
floodLocationName:Fox River at Algonquin Tailwater,
floodRecordStatus:N/A,
floodRecordStatusCode:OO,
floodSeverity:None,
floodSeverityCode:N,
floodStartTimeLocal:null,
floodStartTimeLocalTimeZone:null],
headlineText:River Flood Advisory until SUN 7:00 AM CDT,
ianaTimeZone:America/Chicago, identifier:9d20a54780963ab5bb05889f45552dc3,
issueTimeLocal:2019-03-10T10:46:00-05:00,
issueTimeLocalTimeZone:CDT, latitude:41.94, longitude:-88.42,
messageType:Update,
messageTypeCode:2,
officeAdminDistrict:Illinois,
officeAdminDistrictCode:IL,
officeCode:KLOT,
officeCountryCode:US,
officeName:Chicago,
onsetTimeLocal:null,
onsetTimeLocalTimeZone:null,
phenomena:FL,
processTimeUTC:1552232775,
productIdentifier:FLS,
responseTypes:[[responseType:Avoid,
responseTypeCode:5]],
severity:Moderate,
severityCode:3,
significance:Y,
source:National
Weather Service,
urgency:Unknown,
urgencyCode:5]


#82

We do not have access to any documentation for the weather data that is coming out of SmartThings.


#83

Please refer to $twcweather.forecast.daypart[0].daypartName. We don’t know for sure but have assumed that all values under the daypart data follow the same pattern.