$twcweather.alerts Observations

weather

#1

I’ve been meaning to do this for some time… So far, there’s been no alerts for my location, but I am now using a piston similar to this to try to capture the events:

Once some data comes in, I may split it into more specific variables, but I am flying blind at the moment…


Of course, the real goal of this piston is to gather data for the Wiki page.

All of us can benefit if we import this piston, and share our $twcweather.alerts. (since my location is very calm at the moment) The good news is, it will only log & send a SMS when there is a change in the weather alert, so you shouldn’t get spammed. If you don’t want the notifications, you can safely delete the SMS command (line 38), and the piston will still gather data in the log.

(I recommend that you turn logging to Minimal before editing so the log does not get erased)


Please post any Alerts (verbatim) that appear for your location & I’ll update the Wiki with your contributions.

To contribute anonymously, you can change the city/county name etc., but otherwise it’s crucial to post exact spelling, symbols & spacing. (since thousands of people will reference & code, based on that page)


EDIT :
When posting your alerts here, everybody please use 0 for your latitude & longitude.
(This is for your safety. An example seen below)


EDIT 2 :
Questions about all other weather data (that’s not an Alert) can be found in another thread.


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

Excellent idea. I’ve added the piston to my dashboard and will post if I get any data.


#3

Is this what you’re looking for?

Weather alert: [[adminDistrict:New York, adminDistrictCode:NY, areaId:NYZ179, areaName:Southern Nassau County, areaTypeCode:Z, categories:[[category:Met, categoryCode:2]], certainty:Likely, certaintyCode:2, countryCode:US, countryName:UNITED STATES OF AMERICA, detailKey:48c9955c-0485-375e-8f34-01a59a6f4abc, disclaimer:null, effectiveTimeLocal:2019-07-30T10:00:00-04:00, effectiveTimeLocalTimeZone:EDT, eventDescription:Heat Advisory, eventTrackingNumber:0003, expireTimeLocal:2019-07-30T21:00:00-04:00, expireTimeLocalTimeZone:EDT, expireTimeUTC:1564534800, flood:null, headlineText:Heat Advisory from TUE 10:00 AM EDT until TUE 9:00 PM EDT, ianaTimeZone:America/New_York, identifier:5d6d7df2afaf611f9c9a3990fcbe6372, issueTimeLocal:2019-07-30T03:21:00-04:00, issueTimeLocalTimeZone:EDT, latitude:00.00, longitude:-00.00, messageType:Update, messageTypeCode:2, officeAdminDistrict:New York, officeAdminDistrictCode:NY, officeCode:KOKX, officeCountryCode:US, officeName:New York City, onsetTimeLocal:2019-07-30T10:00:00-04:00, onsetTimeLocalTimeZone:EDT, phenomena:HT, processTimeUTC:1564471315, productIdentifier:NPW, responseTypes:[[responseType:Execute, responseTypeCode:4]], severity:Moderate, severityCode:3, significance:Y, source:National Weather Service, urgency:Expected, urgencyCode:2]]


#4

I blanked out the latitude and longitude. :slight_smile:
@WCmore


#5

Thanks @Koyfam, this is great!! It looks like we’ll be able to make quite complex logic for alerts here in webCoRE.

Can you confirm that large paragraph above was from the code: “$twcweather.alerts”??

If so, phase two of my testing might focus on the “most useful” datapoints:

CODE                                | SAMPLE OUTPUT
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
$twcweather.alerts.certainty        | Likely
$twcweather.alerts.certaintyCode    | 2
$twcweather.alerts.eventDescription | Heat Advisory
$twcweather.alerts.expireTimeLocal  | 2019-07-30T21:00:00-04:00
$twcweather.alerts.expireTimeUTC    | 1564534800
$twcweather.alerts.headlineText     | Heat Advisory from TUE 10:00 AM EDT until TUE 9:00 PM EDT
$twcweather.alerts.messageType      | Update
$twcweather.alerts.messageTypeCode  | 2
$twcweather.alerts.phenomena        | HT
$twcweather.alerts.severity         | Moderate
$twcweather.alerts.severityCode     | 3
$twcweather.alerts.significance     | Y
$twcweather.alerts.urgency          | Expected
$twcweather.alerts.urgencyCode      | 2

Side note:
Once we have a bit more data gathered, I’ll turn my attention to updating the Wiki.


#6

Yep that’s the sms I received after importing your piston code.

I actually got two more alerts. I can post those as well if you’d like.


#7

Yes please. There should be different wording in those other ones


#8

[[adminDistrict:New York, adminDistrictCode:NY, areaId:NYZ179, areaName:Southern Nassau County, areaTypeCode:Z, categories:[[category:Met, categoryCode:2]], certainty:Likely, certaintyCode:2, countryCode:US, countryName:UNITED STATES OF AMERICA, detailKey:48c9955c-0485-375e-8f34-01a59a6f4abc, disclaimer:null, effectiveTimeLocal:null, effectiveTimeLocalTimeZone:null, eventDescription:Heat Advisory, eventTrackingNumber:0003, expireTimeLocal:2019-07-30T21:00:00-04:00, expireTimeLocalTimeZone:EDT, expireTimeUTC:1564534800, flood:null, headlineText:Heat Advisory until TUE 9:00 PM EDT, ianaTimeZone:America/New_York, identifier:7b6b657a7fa1bd14225a6f3e20bdc2bb, issueTimeLocal:2019-07-30T15:38:00-04:00, issueTimeLocalTimeZone:EDT, latitude:00.00, longitude:-00.00, messageType:Update, messageTypeCode:2, officeAdminDistrict:New York, officeAdminDistrictCode:NY, officeCode:KOKX, officeCountryCode:US, officeName:New York City, onsetTimeLocal:null, onsetTimeLocalTimeZone:null, phenomena:HT, processTimeUTC:1564515539, productIdentifier:NPW, responseTypes:[[responseType:Execute, responseTypeCode:4]], severity:Moderate, severityCode:3, significance:Y, source:National Weather Service, urgency:Expected, urgencyCode:2]]


#9

@WCmore, Should I be getting something with this piston? I have had it running for a couple of days…nothing.


#10

Thank you @Koyfam. I appreciate your contribution!!


Note to self:

Here is what changed between the two alerts. (shown highlighted)

(The left side was the original)


#11

Only when there is an alert for your location…
99% of the time, “$twcweather.alerts” will be empty, so there’ll be no log or SMS.


#12

Ok, Just trying to help with the wiki documentation.


#13

I really appreciate it.

The more people that are logging this, the quicker the data will be gathered, and the Wiki updated. :sunglasses:


#14

I got an alert earlier today, hopefully this is the right info:
Piston state: at 12:43 P.M. on 7/31 saying [[adminDistrict:Alabama, adminDistrictCode:AL, areaId:ALZ006, areaName:Madison County, areaTypeCode:Z, categories:[[category:Met, categoryCode:2]], certainty:Unknown, certaintyCode:5, countryCode:US, countryName:UNITED STATES OF AMERICA, detailKey:aa7a8e56-35fe-3f18-9042-983d5e901e06, disclaimer:null, effectiveTimeLocal:null, effectiveTimeLocalTimeZone:null, eventDescription:Significant Weather Advisory, eventTrackingNumber:0000, expireTimeLocal:2019-07-31T12:45:00-05:00, expireTimeLocalTimeZone:CDT, expireTimeUTC:1564595100, flood:null, headlineText:Significant Weather Advisory until WED 12:45 PM CDT, ianaTimeZone:America/Chicago, identifier:56811c6bc70219fe416b8c6ca2d953ff, issueTimeLocal:2019-07-31T12:20:00-05:00, issueTimeLocalTimeZone:CDT, latitude:00.00, longitude:-00.00, messageType:New, messageTypeCode:1, officeAdminDistrict:Alabama, officeAdminDistrictCode:AL, officeCode:KHUN, officeCountryCode:US, officeName:Huntsville, onsetTimeLocal:null, onsetTimeLocalTimeZone:null, phenomena:TSG, processTimeUTC:1564593625, productIdentifier:SPS, responseTypes:[[responseType:Avoid, responseTypeCode:5]], severity:Minor, severityCode:4, significance:Y, source:National Weather Service, urgency:Unknown, urgencyCode:5]]


#15

Thanks @J_B_1!! That info really helps…

A couple more posts, and I can combine this data on the Wiki


#16

I got this alert, hope it helps

Piston state: at 8:57 P.M. on 7/31 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:8f26c8d4-0199-3500-84f1-695191abc89b, disclaimer:null, effectiveTimeLocal:null, effectiveTimeLocalTimeZone:null, eventDescription:Flash Flood Watch, eventTrackingNumber:1, expireTimeLocal:2019-07-31T21:00:00-04:00, expireTimeLocalTimeZone:AST, expireTimeUTC:1564621200, flood:null, headlineText:Flash Flood Watch until WED 9:00 PM AST, ianaTimeZone:America/Puerto_Rico, identifier:5d1280a865e4eff46be9e2825c809f2d, issueTimeLocal:2019-07-31T20:47: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:FF, processTimeUTC:1564620431, productIdentifier:FFA, responseTypes:[[responseType:Avoid, responseTypeCode:5]], severity:Moderate, severityCode:3, significance:A, source:National Weather Service, urgency:Unknown, urgencyCode:5]]


#17

Thank you @st_kbron!! You guys are awesome!!

Keep 'em coming!!


#18

I really want to play…but I have nothing…


#19

I feel your pain @Pantheon

It was tricky for me to create this piston with absolutely no way to test it!
(other than waiting for bad weather)

I am quite pleased I nailed it on the first attempt


#20

Here’s one more.

[[adminDistrict:null, adminDistrictCode: , areaId:ANZ335, areaName:Long Island Sound West of New Haven CT/Port Jefferson NY, areaTypeCode:Z, categories:[[category:Met, categoryCode:2]], certainty:Possible, certaintyCode:3, countryCode:US, countryName:UNITED STATES OF AMERICA, detailKey:80ad7be2-8d7b-3d68-8196-742564230c1a, disclaimer:null, effectiveTimeLocal:null, effectiveTimeLocalTimeZone:null, eventDescription:Severe Thunderstorm Watch, eventTrackingNumber:0547, expireTimeLocal:2019-07-31T21:00:00-04:00, expireTimeLocalTimeZone:EDT, expireTimeUTC:1564621200, flood:null, headlineText:Severe Thunderstorm Watch until WED 9:00 PM EDT, ianaTimeZone:America/New_York, identifier:e1cac16b282366c95a81fc3867998a07, issueTimeLocal:2019-07-31T15:17:00-04:00, issueTimeLocalTimeZone:EDT, latitude:00.00, longitude:-00.00, messageType:Update, messageTypeCode:2, officeAdminDistrict:New York, officeAdminDistrictCode:NY, officeCode:KOKX, officeCountryCode:US, officeName:New York City, onsetTimeLocal:null, onsetTimeLocalTimeZone:null, phenomena:SV, processTimeUTC:1564600652, productIdentifier:WCN, responseTypes:[[responseType:Monitor, responseTypeCode:6]], severity:Severe, severityCode:2, significance:A, source:National Weather Service, urgency:Future, urgencyCode:3], [adminDistrict:New York, adminDistrictCode:NY, areaId:NYC059, areaName:Nassau County, areaTypeCode:C, categories:[[category:Met, categoryCode:2]], certainty:Possible, certaintyCode:3, countryCode:US, countryName:UNITED STATES OF AMERICA, detailKey:0ae82386-e584-34d6-a484-d4dc92969cc9, disclaimer:null, effectiveTimeLocal:null, effectiveTimeLocalTimeZone:null, eventDescription:Severe Thunderstorm Watch, eventTrackingNumber:0547, expireTimeLocal:2019-07-31T21:00:00-04:00, expireTimeLocalTimeZone:EDT, expireTimeUTC:1564621200, flood:null, headlineText:Severe Thunderstorm Watch until WED 9:00 PM EDT, ianaTimeZone:America/New_York, identifier:e1cac16b282366c95a81fc3867998a07, issueTimeLocal:2019-07-31T15:17:00-04:00, issueTimeLocalTimeZone:EDT, latitude:00.00, longitude:-00.00, messageType:Update, messageTypeCode:2, officeAdminDistrict:New York, officeAdminDistrictCode:NY, officeCode:KOKX, officeCountryCode:US, officeName:New York City, onsetTimeLocal:null, onsetTimeLocalTimeZone:null, phenomena:SV, processTimeUTC:1564600652, productIdentifier:WCN, responseTypes:[[responseType:Monitor, responseTypeCode:6]], severity:Severe, severityCode:2, significance:A, source:National Weather Service, urgency:Future, urgencyCode:3]]