$twcweather.alerts Observations

weather

#65

I hate to say this, but it seems that
$twcweather.alerts.length
will also count nulls. :frowning_face:

temp
- OR -
temp

I have had about 15 of these the past few days.
Each time, the weather was only slightly bad.
(not worthy of an alert, IMO)


On a clear day, it usually returns:

temp


#66

The wiki for $twcweather.alerts has been updated.


#68

Thanks @WCmore. That sucks about it counting nulls.


#69

Piston state: at 5:08 P.M. on 8/7 saying [[adminDistrict:Tennessee, adminDistrictCode:TN, areaId:TNC093, areaName:Knox County, areaTypeCode:C, categories:[[category:Other, categoryCode:12]], certainty:Unknown, certaintyCode:5, countryCode:US, countryName:UNITED STATES OF AMERICA, detailKey:e5943d93-5b8c-3947-9912-7c47908c9549, disclaimer:null, effectiveTimeLocal:null, effectiveTimeLocalTimeZone:null, eventDescription:Civil Emergency Message, eventTrackingNumber:0000, expireTimeLocal:2019-08-07T19:15:00-04:00, expireTimeLocalTimeZone:EDT, expireTimeUTC:1565219700, flood:null, headlineText:Civil Emergency Message until WED 7:15 PM EDT, ianaTimeZone:America/New_York, identifier:e26f6474da4efb75c7c7c7a6959b648d, issueTimeLocal:2019-08-07T17:05:00-04:00, issueTimeLocalTimeZone:EDT, latitude:00.00, longitude:00.00, messageType:New, messageTypeCode:1, officeAdminDistrict:Tennessee, officeAdminDistrictCode:TN, officeCode:KOHX, officeCountryCode:US, officeName:Nashville, onsetTimeLocal:null, onsetTimeLocalTimeZone:null, phenomena:TCE, processTimeUTC:1565211936, productIdentifier:CEM, responseTypes:[[responseType:Avoid, responseTypeCode:5]], severity:Moderate, severityCode:3, significance:M, source:National Weather Service, urgency:Unknown, urgencyCode:5]]


#70

Piston state: at 1:47 P.M. on 8/7 saying [[adminDistrict:Puerto Rico, adminDistrictCode:PR, areaId:PRZ005, areaName:North Central, areaTypeCode:Z, categories:[[category:Met, categoryCode:2]], certainty:Unknown, certaintyCode:5, countryCode:US, countryName:UNITED STATES OF AMERICA, detailKey:368aeb51-8b17-3df1-9742-2974b90ef641, disclaimer:null, effectiveTimeLocal:null, effectiveTimeLocalTimeZone:null, eventDescription:Special Weather Statement, eventTrackingNumber:0000, expireTimeLocal:2019-08-07T14:15:00-04:00, expireTimeLocalTimeZone:AST, expireTimeUTC:1565201700, flood:null, headlineText:Special Weather Statement until WED 2:15 PM AST, ianaTimeZone:America/Puerto_Rico, identifier:d8a1e1171262b774c82a236dfc043174, issueTimeLocal:2019-08-07T13:46:00-04:00, issueTimeLocalTimeZone:AST, latitude:00.00, longitude:-00.00, messageType:New, messageTypeCode:1, officeAdminDistrict:Puerto Rico, officeAdminDistrictCode:PR, officeCode:TJSJ, officeCountryCode:US, officeName:San Juan, onsetTimeLocal:null, onsetTimeLocalTimeZone:null, phenomena:TSL, processTimeUTC:1565199981, productIdentifier:SPS, responseTypes:[[responseType:Avoid, responseTypeCode:5]], severity:Minor, severityCode:4, significance:S, source:National Weather Service, urgency:Unknown, urgencyCode:5]]


#71

I have had 50-60 changes to my $twcweather.alerts.length,
but each time, $twcweather.alerts has been null…!!!

temp


Would someone be willing to import the following piston to help me determine if this is normal?

If you don’t want the SMS, you can safely delete line 42, and the data will still be recorded in the log


$twcweather Observations
#72

Of course, I’m in…


#73

So, I guess I’m capturing the wrong information for this thread. I’m only capturing the following two:

$twcweather.alerts[0].eventDescription
$twcweather.alerts[0].headlineText

I’m using them to announce through Echo Speaks and to send SMS messages using the following pistons (which is working perfectly now):

Gather information Piston:

Announcements Piston:


#74

Every bit helps. You are under no obligation to capture the entire alert. The only reason I asked that originally is to gather data for all possible outcomes. (It has been calm in my location the past month) Without the contributions of everyone here, the wiki page would take MONTHS for me to put together…


Side Note:
You may want to use:
$twcweather.alerts.eventDescription
$twcweather.alerts.headlineText
without the zeros, since sometimes there is more than one alert currently active.
(with alerts, the 1 does not mean tomorrow. It means the second alert for right now)


#75

For clarity, the responses after this double alert were:


In other words, if you were tracking:
$twcweather.alerts[0].eventDescription
you might not be alerted to the fog…


Edit:
It is very possible that I am describing:
$twcweather.alerts.eventDescription[0]
More testing is required…


#76

@WCmore, I have not received a response from The Weather Company about providing a list of available weather warnings. I guess we are on our own.


#77

Thanks for the update…

I suspect that TWC uses different weather sources in different countries. If my hunch is correct, then the results may not be standardized, and TWC would not have the answers we seek…

Of course, more testing is required…


#78

Does this help

Weather alert: [[adminDistrict:Tennessee, adminDistrictCode:TN, areaId:TNZ069, areaName:Knox County, areaTypeCode:Z, categories:[[category:Met, categoryCode:2]], certainty:Unknown, certaintyCode:5, countryCode:US, countryName:UNITED STATES OF AMERICA, detailKey:5de0f31f-2c66-34e9-812c-34f7058f3c45, disclaimer:null, effectiveTimeLocal:null, effectiveTimeLocalTimeZone:null, eventDescription:Significant Weather Advisory, eventTrackingNumber:0000, expireTimeLocal:2019-08-19T18:30:00-04:00, expireTimeLocalTimeZone:EDT, expireTimeUTC:1566253800, flood:null, headlineText:Significant Weather Advisory until MON 6:30 PM EDT, ianaTimeZone:America/New_York, identifier:9a9f2b78d9af75254b213d75b5d7fcbc, issueTimeLocal:2019-08-19T17:53:00-04:00, issueTimeLocalTimeZone:EDT, latitude:00.00, longitude:00.00, messageType:New, messageTypeCode:1, officeAdminDistrict:Tennessee, officeAdminDistrictCode:TN, officeCode:KMRX, officeCountryCode:US, officeName:Knoxville/Tri-Cities, onsetTimeLocal:null, onsetTimeLocalTimeZone:null, phenomena:TSG, processTimeUTC:1566251600, productIdentifier:SPS, responseTypes:[[responseType:Avoid, responseTypeCode:5]], severity:Minor, severityCode:4, significance:Y, source:National Weather Service, urgency:Unknown, urgencyCode:5]]


#79

Alert.length is back to 0


#80

Thanks @Pantheon!

I will combine & add the last 3 alerts to the wiki on my next day off…


#81

The Wiki has been updated.

Thanks for the new alert, “Civil Emergency Message”, which also included new data for significance and categories.

I believe the other two posts are all duplicate information.


#82

Flash Flood Watch, Severe Thunderstorm Warning, and Flash Flood Warning… About to get pounded with rain.

[[adminDistrict:Kansas, adminDistrictCode:KS, areaId:KSC173, areaName:Sedgwick County, areaTypeCode:C, categories:[[category:Met, categoryCode:2]], certainty:Observed, certaintyCode:1, countryCode:US, countryName:UNITED STATES OF AMERICA, detailKey:11a3517e-674e-3a6f-9457-08a4dd79fe75, disclaimer:null, effectiveTimeLocal:null, effectiveTimeLocalTimeZone:null, eventDescription:Severe Thunderstorm Warning, eventTrackingNumber:0333, expireTimeLocal:2019-08-21T20:00:00-05:00, expireTimeLocalTimeZone:CDT, expireTimeUTC:1566435600, flood:null, headlineText:Severe Thunderstorm Warning until WED 8:00 PM CDT, ianaTimeZone:America/Chicago, identifier:1d07ddb51640dced6904210095afa531, issueTimeLocal:2019-08-21T19:45:00-05:00, issueTimeLocalTimeZone:CDT, latitude:XX.XX, longitude:-XX.XX, messageType:Update, messageTypeCode:2, officeAdminDistrict:Kansas, officeAdminDistrictCode:KS, officeCode:KICT, officeCountryCode:US, officeName:Wichita, onsetTimeLocal:null, onsetTimeLocalTimeZone:null, phenomena:SV, processTimeUTC:1566434737, productIdentifier:SVS, responseTypes:[[responseType:Shelter, responseTypeCode:1]], severity:Severe, severityCode:2, significance:W, source:National Weather Service, urgency:Immediate, urgencyCode:1], [adminDistrict:Kansas, adminDistrictCode:KS, areaId:KSC173, areaName:Sedgwick County, areaTypeCode:C, categories:[[category:Met, categoryCode:2]], certainty:Likely, certaintyCode:2, countryCode:US, countryName:UNITED STATES OF AMERICA, detailKey:ac1f57dd-e42e-340f-ba49-7ce9ac912935, disclaimer:null, effectiveTimeLocal:2019-08-21T19:47:00-05:00, effectiveTimeLocalTimeZone:CDT, eventDescription:Flash Flood Warning, eventTrackingNumber:0076, expireTimeLocal:2019-08-21T23:45:00-05:00, expireTimeLocalTimeZone:CDT, expireTimeUTC:1566449100, flood:[floodCrestTimeLocal:null, floodCrestTimeLocalTimeZone:null, floodEndTimeLocal:null, floodEndTimeLocalTimeZone:null, floodImmediateCause:Excessive Rainfall, floodImmediateCauseCode:ER, floodLocationId:00000, floodLocationName:N/A, floodRecordStatus:N/A, floodRecordStatusCode:OO, floodSeverity:N/A, floodSeverityCode:0, floodStartTimeLocal:null, floodStartTimeLocalTimeZone:null], headlineText:Flash Flood Warning from WED 7:47 PM CDT until WED 11:45 PM CDT, ianaTimeZone:America/Chicago, identifier:75eeeb1f0d17996a0191fe734e184c69, issueTimeLocal:2019-08-21T19:47:00-05:00, issueTimeLocalTimeZone:CDT, latitude:XX.XX, longitude:XX.XX, messageType:New, messageTypeCode:1, officeAdminDistrict:Kansas, officeAdminDistrictCode:KS, officeCode:KICT, officeCountryCode:US, officeName:Wichita, onsetTimeLocal:2019-08-21T19:47:00-05:00, onsetTimeLocalTimeZone:CDT, phenomena:FF, processTimeUTC:1566434880, productIdentifier:FFW, responseTypes:[[responseType:Avoid, responseTypeCode:5]], severity:Severe, severityCode:2, significance:W, source:National Weather Service, urgency:Immediate, urgencyCode:1], [adminDistrict:Kansas, adminDistrictCode:KS, areaId:KSZ083, areaName:Sedgwick County, areaTypeCode:Z, categories:[[category:Met, categoryCode:2]], certainty:Unknown, certaintyCode:5, countryCode:US, countryName:UNITED STATES OF AMERICA, detailKey:a5715b13-69d0-39a0-a9d7-72480684a0c7, disclaimer:null, effectiveTimeLocal:2019-08-21T20:00:00-05:00, effectiveTimeLocalTimeZone:CDT, eventDescription:Flash Flood Watch, eventTrackingNumber:0015, expireTimeLocal:2019-08-22T10:00:00-05:00, expireTimeLocalTimeZone:CDT, expireTimeUTC:1566486000, flood:[floodCrestTimeLocal:null, floodCrestTimeLocalTimeZone:null, floodEndTimeLocal:null, floodEndTimeLocalTimeZone:null, floodImmediateCause:Excessive Rainfall, floodImmediateCauseCode:ER, floodLocationId:00000, floodLocationName:N/A, floodRecordStatus:N/A, floodRecordStatusCode:OO, floodSeverity:N/A, floodSeverityCode:0, floodStartTimeLocal:null, floodStartTimeLocalTimeZone:null], headlineText:Flash Flood Watch from WED 8:00 PM CDT until THU 10:00 AM CDT, ianaTimeZone:America/Chicago, identifier:866dbf0694e515ce7452397c478f528c, issueTimeLocal:2019-08-21T14:46:00-05:00, issueTimeLocalTimeZone:CDT, latitude:XX.XX, longitude:XX.XX, messageType:New, messageTypeCode:1, officeAdminDistrict:Kansas, officeAdminDistrictCode:KS, officeCode:KICT, officeCountryCode:US, officeName:Wichita, onsetTimeLocal:2019-08-21T20:00:00-05:00, onsetTimeLocalTimeZone:CDT, phenomena:FF, processTimeUTC:1566416781, productIdentifier:FFA, responseTypes:[[responseType:Avoid, responseTypeCode:5]], severity:Moderate, severityCode:3, significance:A, source:National Weather Service, urgency:Unknown, urgencyCode:5]]


#83

I keep getting :

Alert.length changed from 0 to 1

and

Alert.length is back to 0


#84

I got one today for air quality.

Weather alert: [[adminDistrict:New York, adminDistrictCode:NY, areaId:NYZ179, areaName:Southern Nassau County, areaTypeCode:Z, categories:[[category:Met, categoryCode:2]], certainty:Unknown, certaintyCode:5, countryCode:US, countryName:UNITED STATES OF AMERICA, detailKey:a04f3542-fbc4-301b-a535-3b03b8896e0f, disclaimer:null, effectiveTimeLocal:null, effectiveTimeLocalTimeZone:null, eventDescription:Air Quality Alert, eventTrackingNumber:0000, expireTimeLocal:2019-08-22T23:00:00-04:00, expireTimeLocalTimeZone:EDT, expireTimeUTC:1566529200, flood:null, headlineText:Air Quality Alert until THU 11:00 PM EDT, ianaTimeZone:America/New_York, identifier:2a7219fb3e46dae8816d4220ff20f2b6, issueTimeLocal:2019-08-21T16:32:00-04:00, issueTimeLocalTimeZone:EDT, latitude:40.70, longitude:-73.59, messageType:New, messageTypeCode:1, officeAdminDistrict:New York, officeAdminDistrictCode:NY, officeCode:KOKX, officeCountryCode:US, officeName:New York City, onsetTimeLocal:null, onsetTimeLocalTimeZone:null, phenomena:TAQ, processTimeUTC:1566419562, productIdentifier:AQA, responseTypes:[[responseType:Avoid, responseTypeCode:5]], severity:Minor, severityCode:4, significance:L, source:National Weather Service, urgency:Unknown, urgencyCode:5]]


#85

When the length is greater than zero, are there any nulls? That piston is supposed to send the alert (or null) whenever the length is 1 or more.


Edit:
If you are using this piston from above, then any time the length is greater than zero, there should be extra information inside that SMS. Such as:

temp

So I guess my question is, what is the extra information you see when length is 1 or more?