@atmosx/event-product-parser 3.0.4 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +1 -1
- package/.github/SUPPORTED_EVENTS.md +370 -0
- package/.github/docs/docs-functions.md +30 -0
- package/.github/docs/docs-general-configurations.md +199 -0
- package/.github/docs/docs-integrations.md +38 -0
- package/.github/docs/docs-listeners.md +28 -0
- package/.github/docs/docs-source-configuration.md +218 -0
- package/.github/docs/docs-technical.md +50 -0
- package/.github/logo.png +0 -0
- package/.github/samples/SAMPLE_EAS_GENERATION.wav +0 -0
- package/.github/samples/SAMPLE_GEOJSON.json +204 -0
- package/.github/samples/SAMPLE_TEXT_PRODUCT.txt +119 -0
- package/README.md +157 -337
- package/dist/cjs/index.cjs +24125 -15815
- package/dist/esm/index.mjs +24144 -15839
- package/package.json +56 -53
- package/pnpm-workspace.yaml +4 -0
- package/src/bootstrap.ts +83 -43
- package/src/building/CreateEvent.ts +54 -0
- package/src/{@building/building.clean.ts → building/GetCleanedEvent.ts} +4 -4
- package/src/building/GetEventAttachments.ts +88 -0
- package/src/building/GetEventDirection.ts +28 -0
- package/src/{@building/building.enhance.ts → building/GetEventEnhancedName.ts} +13 -17
- package/src/{@building/building.geometry.ts → building/GetEventGeometry.ts} +19 -13
- package/src/{@building/building.headers.ts → building/GetEventHeader.ts} +13 -13
- package/src/{@building/building.polygon.ts → building/GetEventNodes.ts} +26 -22
- package/src/{@building/building.office.ts → building/GetEventOffice.ts} +14 -14
- package/src/building/GetEventProperties.ts +105 -0
- package/src/{@building/building.signature.ts → building/GetEventSignature.ts} +16 -17
- package/src/{@core/core.createListener.ts → building/GetEventTags.ts} +11 -6
- package/src/building/GetEventTheme.ts +26 -0
- package/src/building/GetEventTracking.ts +64 -0
- package/src/components/audio/GenerateAudioMessage.ts +149 -0
- package/src/components/audio/components/GetCleanDescription.ts +91 -0
- package/src/{@modules/@eas/eas.getFloatPCM16.ts → components/audio/components/GetFloatPCM16.ts} +3 -3
- package/src/{@modules/@eas/eas.getMergedPCM16.ts → components/audio/components/GetMergedPCM16.ts} +3 -3
- package/src/{@modules/@eas/eas.getPCM16.ts → components/audio/components/GetPCM16.ts} +13 -8
- package/src/{@modules/@eas/eas.getPCMToFloat.ts → components/audio/components/GetPCMToFloat.ts} +3 -3
- package/src/{@modules/@eas/eas.getSampledPCM16.ts → components/audio/components/GetSampledPCM16.ts} +14 -8
- package/src/components/audio/components/GetTTS.ts +61 -0
- package/src/{@modules/@eas/eas.getWavPCM16.ts → components/audio/components/GetWavPCM16.ts} +8 -8
- package/src/{@modules/@eas/eas.setAFSK.ts → components/audio/components/SetAFSK.ts} +12 -8
- package/src/{@modules/@eas/eas.setAsciiToBits.ts → components/audio/components/SetAsciiToBits.ts} +3 -4
- package/src/{@modules/@eas/eas.setAttentionTone.ts → components/audio/components/SetAttentionTone.ts} +11 -6
- package/src/{@modules/@eas/eas.setNoise.ts → components/audio/components/SetNoise.ts} +14 -8
- package/src/{@modules/@eas/eas.setRadioEffect.ts → components/audio/components/SetRadioEffect.ts} +14 -8
- package/src/{@modules/@eas/eas.setSameHeader.ts → components/audio/components/SetSameHeader.ts} +22 -15
- package/src/{@modules/@utilities/utilities.setWarning.ts → components/database/CreateQuery.ts} +18 -13
- package/src/{@modules/@database/database.cache.ts → components/database/GetCachedEvents.ts} +19 -14
- package/src/components/database/ImportBoundaries.ts +168 -0
- package/src/components/database/ImportBroadcastify.ts +60 -0
- package/src/components/database/ImportCities.ts +87 -0
- package/src/{@modules/@database/database.shapefiles.ts → components/database/ImportShapefiles.ts} +31 -37
- package/src/components/database/ImportStanza.ts +43 -0
- package/src/components/database/InitializeDatabase.ts +71 -0
- package/src/components/images/GenerateGraphic.ts +234 -0
- package/src/components/images/components/CreateRectangle.ts +22 -0
- package/src/components/images/components/CreateText.ts +22 -0
- package/src/components/images/modules/CreateSVG.ts +37 -0
- package/src/components/images/modules/GetGeographicalBoundaries.ts +72 -0
- package/src/components/images/modules/GetGeographicalCities.ts +58 -0
- package/src/components/images/modules/GetGeographicalEvents.ts +48 -0
- package/src/components/images/modules/GetGeometryBounds.ts +82 -0
- package/src/components/images/modules/GetParsedBoundary.ts +58 -0
- package/src/components/images/modules/GetSVGPath.ts +53 -0
- package/src/components/images/modules/NormalizePolygon.ts +57 -0
- package/src/{@modules/@stanza/stanza.getAwipsType.ts → components/stanza/GetAwipsType.ts} +19 -18
- package/src/components/stanza/ValidateStanza.ts +62 -0
- package/src/components/utilities/CreateHttp.ts +83 -0
- package/src/{@modules/@utilities/utilities.getFormattedTime.ts → components/utilities/GetFormattedTime.ts} +3 -3
- package/src/components/utilities/GetLatestIssuance.ts +32 -0
- package/src/components/utilities/GetMatched.ts +38 -0
- package/src/{@modules/@utilities/utilities.getShapeNearestPoint.ts → components/utilities/GetShapeNearestPoint.ts} +24 -19
- package/src/components/utilities/GetUnionPolygon.ts +36 -0
- package/src/components/utilities/QueueManager.ts +70 -0
- package/src/components/utilities/SetCronSchedule.ts +98 -0
- package/src/{@core/core.clearEvents.ts → components/utilities/SetDebug.ts} +17 -12
- package/src/components/utilities/SetEventEmit.ts +42 -0
- package/src/{@modules/@utilities/utilities.setSettings.ts → components/utilities/SetSettings.ts} +7 -7
- package/src/{@modules/@utilities/utilities.setSleep.ts → components/utilities/SetSleep.ts} +5 -5
- package/src/components/utilities/SetTimeoutAction.ts +64 -0
- package/src/components/utilities/SetWarning.ts +47 -0
- package/src/{@modules/@xmpp/xmpp.xDeploy.ts → components/xmpp/DeployXMPP.ts} +26 -27
- package/src/components/xmpp/ErrorXMPP.ts +27 -0
- package/src/{@modules/@xmpp/xmpp.xError.ts → components/xmpp/OfflineXMPP.ts} +17 -9
- package/src/{@modules/@xmpp/xmpp.xOnline.ts → components/xmpp/OnlineXMPP.ts} +21 -20
- package/src/components/xmpp/ReconnectXMPP.ts +64 -0
- package/src/components/xmpp/StanzaXMPP.ts +63 -0
- package/src/{@building/building.tags.ts → core/ClearEvents.ts} +12 -5
- package/src/{@core/core.getVersion.ts → core/GetEvents.ts} +5 -6
- package/src/core/GetNodes.ts +24 -0
- package/src/{@core/core.getNodes.ts → core/GetRandomEvent.ts} +5 -6
- package/src/core/GetVersion.ts +24 -0
- package/src/core/ManualEvent.ts +55 -0
- package/src/core/QueryStanza.ts +40 -0
- package/src/core/SetNode.ts +87 -0
- package/src/core/StartService.ts +62 -0
- package/src/core/StopService.ts +32 -0
- package/src/enums/AWIPS.ts +366 -0
- package/src/{@dictionaries/dictionaries.eventActions.ts → enums/Actions.ts} +3 -3
- package/src/{@dictionaries/dictionaries.eventCancelMessages.ts → enums/Cancellation.ts} +4 -3
- package/src/{@dictionaries/dictionaries.eventCauses.ts → enums/Causes.ts} +3 -3
- package/src/{@dictionaries/dictionaries.statusCorrelationText.ts → enums/Correlations.ts} +3 -3
- package/src/enums/Enhanced.ts +70 -0
- package/src/{@dictionaries/dictionaries.eventTypes.ts → enums/Events.ts} +3 -3
- package/src/{@dictionaries/dictionaries.regExp.ts → enums/Expressions.ts} +5 -4
- package/src/{@core/core.getEvents.ts → enums/GlobalFilter.ts} +7 -8
- package/src/{@dictionaries/dictionaries.hailStrings.ts → enums/Hail.ts} +9 -4
- package/src/{@dictionaries/dictionaries.officeICAOs.ts → enums/ICAO.ts} +5 -3
- package/src/enums/Matches.ts +60 -0
- package/src/{@dictionaries/dictionaries.eventProducts.ts → enums/Products.ts} +3 -3
- package/src/{@dictionaries/dictionaries.eventRecords.ts → enums/Records.ts} +3 -3
- package/src/{@dictionaries/dictionaries.eventSeverity.ts → enums/Severity.ts} +3 -3
- package/src/{@dictionaries/dictionaries.shapefileLinks.ts → enums/Shapefiles.ts} +3 -3
- package/src/enums/States.ts +136 -0
- package/src/{@dictionaries/dictionaries.eventStatus.ts → enums/Status.ts} +3 -3
- package/src/enums/Strings.ts +22 -0
- package/src/enums/Tags.ts +172 -0
- package/src/{@dictionaries/dictionaries.testSignatures.ts → enums/Testing.ts} +5 -4
- package/src/enums/Themes.ts +70 -0
- package/src/events/ParseAPI.ts +129 -0
- package/src/{@events/events.text.ts → events/ParseText.ts} +32 -23
- package/src/{@events/events.ugc.ts → events/ParseUGC.ts} +36 -26
- package/src/events/ParseVTEC.ts +88 -0
- package/src/index.ts +60 -38
- package/src/manager/MakeEvents.ts +110 -0
- package/src/manager/RemoveEvent.ts +74 -0
- package/src/{@manager/manager.setHash.ts → manager/SetHash.ts} +19 -15
- package/src/manager/UpdateEvents.ts +35 -0
- package/src/manager/UpdateNode.ts +62 -0
- package/src/manager/ValidateEvents.ts +144 -0
- package/src/{@parsers/@hvtec/hvtec.extract.ts → parsers/hvtec/HVExtract.ts} +13 -13
- package/src/parsers/text/GetDescriptionFromProduct.ts +59 -0
- package/src/parsers/text/GetEmbededText.ts +57 -0
- package/src/parsers/text/GetPolygonFromProduct.ts +71 -0
- package/src/parsers/text/GetStringText.ts +58 -0
- package/src/{@parsers/@text/text.getTextFromProduct.ts → parsers/text/GetTextFromProduct.ts} +12 -12
- package/src/parsers/ugc/GetCache.ts +24 -0
- package/src/{@parsers/@ugc/ugc.expiry.ts → parsers/ugc/GetExpiry.ts} +3 -3
- package/src/{@parsers/@ugc/ugc.header.ts → parsers/ugc/GetHeader.ts} +6 -6
- package/src/parsers/ugc/GetLocations.ts +57 -0
- package/src/parsers/ugc/GetZonePolygon.ts +73 -0
- package/src/{@parsers/@ugc/ugc.zones.ts → parsers/ugc/GetZones.ts} +3 -3
- package/src/{@modules/@utilities/utilities.setListener.ts → parsers/ugc/SetCache.ts} +13 -10
- package/src/{@parsers/@ugc/ugc.extract.ts → parsers/ugc/UGCExtract.ts} +15 -15
- package/src/{@parsers/@pvtec/pvtec.expires.ts → parsers/vtec/GetExpiry.ts} +3 -3
- package/src/parsers/vtec/VTECExtract.ts +49 -0
- package/src/{@types/types.attributes.ts → static/Attributes.ts} +2 -3
- package/src/{@types/type.event.ts → static/Event.ts} +11 -8
- package/src/{@types/type.properties.ts → static/Properties.ts} +17 -10
- package/src/{@types/types.stanza.ts → static/Stanza.ts} +2 -2
- package/src/tasks/CreateTasks.ts +123 -0
- package/src/{@core/core.stop.ts → tasks/TaskGenerateJSON.ts} +14 -12
- package/src/tasks/TaskGenerateText.ts +34 -0
- package/src/tasks/TaskSendNTFY.ts +97 -0
- package/src/tasks/TaskSendWebhook.ts +107 -0
- package/src/types/Actions.ts +37 -0
- package/src/{@types/types.hvtec.ts → types/HVTEC.ts} +6 -6
- package/src/{@types/types.hash.ts → types/Hash.ts} +5 -5
- package/src/types/Nodes.ts +29 -0
- package/src/{@types/types.settings.ts → types/Settings.ts} +42 -10
- package/src/{@types/types.compiled.ts → types/StanzaCompiled.ts} +15 -14
- package/src/{@types/types.ugc.ts → types/UGC.ts} +5 -5
- package/src/{@modules/@utilities/utilities.getSettings.ts → types/VTEC.ts} +12 -7
- package/tools/build.js +47 -0
- package/tsconfig.json +28 -1
- package/dist/index.d.mts +0 -239
- package/dist/index.d.ts +0 -239
- package/src/@building/building.create.ts +0 -42
- package/src/@building/building.properties.ts +0 -89
- package/src/@building/building.tracking.ts +0 -68
- package/src/@building/building.validate.ts +0 -147
- package/src/@core/core.getRandomEvent.ts +0 -25
- package/src/@core/core.setNode.ts +0 -81
- package/src/@core/core.start.ts +0 -61
- package/src/@dictionaries/dictionaries.betterEventNames.ts +0 -99
- package/src/@dictionaries/dictionaries.eventAwipAbreviations.ts +0 -364
- package/src/@dictionaries/dictionaries.eventTags.ts +0 -93
- package/src/@dictionaries/dictionaries.eventsMatchText.ts +0 -36
- package/src/@dictionaries/dictionaries.transcribedMessageReplacements.ts +0 -68
- package/src/@events/events.api.ts +0 -113
- package/src/@events/events.vtec.ts +0 -87
- package/src/@manager/manager.mkEvent.ts +0 -96
- package/src/@manager/manager.rmEvent.ts +0 -49
- package/src/@manager/manager.updateEvents.ts +0 -35
- package/src/@manager/manager.updateNodes.ts +0 -55
- package/src/@manager/manager.updateWebhooks.ts +0 -50
- package/src/@modules/@database/database.init.ts +0 -45
- package/src/@modules/@database/database.stanza.ts +0 -48
- package/src/@modules/@eas/eas.setEasTone.ts +0 -137
- package/src/@modules/@stanza/stanza.validate.ts +0 -50
- package/src/@modules/@utilities/utilities.createHttp.ts +0 -85
- package/src/@modules/@utilities/utilities.createWebhook.ts +0 -115
- package/src/@modules/@utilities/utilities.setCronSchedule.ts +0 -65
- package/src/@modules/@utilities/utilities.setEventEmit.ts +0 -41
- package/src/@modules/@utilities/utilities.setTimeoutAction.ts +0 -59
- package/src/@modules/@xmpp/xmpp.xOffline.ts +0 -38
- package/src/@modules/@xmpp/xmpp.xReconnect.ts +0 -64
- package/src/@modules/@xmpp/xmpp.xStanza.ts +0 -63
- package/src/@parsers/@pvtec/pvtec.extract.ts +0 -49
- package/src/@parsers/@text/text.getDescriptionFromProduct.ts +0 -53
- package/src/@parsers/@text/text.getPolygonFromProduct.ts +0 -32
- package/src/@parsers/@text/text.getXML.ts +0 -61
- package/src/@parsers/@ugc/ugc.coordinates.ts +0 -110
- package/src/@parsers/@ugc/ugc.locations.ts +0 -29
- package/src/@types/types.pvtec.ts +0 -30
- package/src/@types/types.webhook.ts +0 -27
- package/test.js +0 -91
- package/tsup.config.ts +0 -16
- /package/{CODE_OF_CONDUCT.md → .github/CODE_OF_CONDUCT.md} +0 -0
- /package/{LICENSE → .github/LICENSE} +0 -0
- /package/{SECURITY.md → .github/SECURITY.md} +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
_ _ _ __ __
|
|
3
|
+
/\ | | | | (_) \ \ / /
|
|
4
|
+
/ \ | |_ _ __ ___ ___ ___ _ __ | |__ ___ _ __ _ ___ \ V /
|
|
5
|
+
/ /\ \| __| '_ ` _ \ / _ \/ __| '_ \| '_ \ / _ \ '__| |/ __| > <
|
|
6
|
+
/ ____ \ |_| | | | | | (_) \__ \ |_) | | | | __/ | | | (__ / . \
|
|
7
|
+
/_/ \_\__|_| |_| |_|\___/|___/ .__/|_| |_|\___|_| |_|\___/_/ \_\
|
|
8
|
+
| |
|
|
9
|
+
|_|
|
|
10
|
+
|
|
11
|
+
Created with ♥ by the AtmosphericX Team (KiyoWx, StarflightWx, & CJ Ziegler)
|
|
12
|
+
Discord: https://atmosphericx-discord.scriptkitty.cafe
|
|
13
|
+
Ko-Fi: https://ko-fi.com/k3yomi
|
|
14
|
+
Documentation: https://atmosphericx.scriptkitty.cafe/documentation
|
|
15
|
+
|
|
16
|
+
Independent Package: @atmosx/event-product-parser
|
|
17
|
+
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
type EnumMatchesType = {
|
|
21
|
+
match: RegExp;
|
|
22
|
+
label: string;
|
|
23
|
+
statement: boolean;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const EnumMatches: Record<string, EnumMatchesType[]> = {
|
|
27
|
+
SPS: [
|
|
28
|
+
{ match: /STRONG THUNDERSTORM/i, label: "Convective Special Weather Statement", statement: false },
|
|
29
|
+
{ match: /SPECIAL WEATHER STATEMENT/i, label: "Special Weather Statement", statement: false }
|
|
30
|
+
],
|
|
31
|
+
TSU: [
|
|
32
|
+
{ match: /TSUNAMI WARNING/i, label: "Tsunami Warning", statement: false },
|
|
33
|
+
{ match: /TSUNAMI WATCH/i, label: "Tsunami Watch", statement: false },
|
|
34
|
+
{ match: /TSUNAMI ADVISORY/i, label: "Tsunami Advisory", statement: false },
|
|
35
|
+
{ match: /TSUNAMI INFORMATION STATEMENT/i, label: "Tsunami Information Statement", statement: false },
|
|
36
|
+
{ match: /TSUNAMI WARNING CANCELLATION/i, label: "Tsunami Cancellation", statement: false }
|
|
37
|
+
],
|
|
38
|
+
TCP: [
|
|
39
|
+
{ match: /HURRICANE WARNING/i, label: "Hurricane Warning", statement: false },
|
|
40
|
+
{ match: /HURRICANE WATCH/i, label: "Hurricane Watch", statement: false },
|
|
41
|
+
{ match: /TROPICAL STORM WARNING/i, label: "Tropical Storm Warning", statement: false },
|
|
42
|
+
{ match: /TROPICAL STORM WATCH/i, label: "Tropical Storm Watch", statement: false },
|
|
43
|
+
{ match: /STORM SURGE WARNING/i, label: "Storm Surge Warning", statement: false },
|
|
44
|
+
{ match: /STORM SURGE WATCH/i, label: "Storm Surge Watch", statement: false }
|
|
45
|
+
],
|
|
46
|
+
MWW: [
|
|
47
|
+
{ match: /SMALL CRAFT ADVISORY/i, label: "Small Craft Advisory", statement: false },
|
|
48
|
+
{ match: /GALE WARNING/i, label: "Gale Warning", statement: false },
|
|
49
|
+
{ match: /STORM WARNING/i, label: "Storm Warning", statement: false },
|
|
50
|
+
{ match: /HURRICANE FORCE WIND WARNING/i, label: "Hurricane Force Wind Warning", statement: false },
|
|
51
|
+
{ match: /HAZARDOUS SEAS WARNING/i, label: "Hazardous Seas Warning", statement: false },
|
|
52
|
+
{ match: /DENSE FOG ADVISORY/i, label: "Dense Fog Advisory", statement: false },
|
|
53
|
+
{ match: /THUNDERSTORMS/i, label: "Convective Marine Weather Statement", statement: false },
|
|
54
|
+
{ match: /MARINE WEATHER STATEMENT/i, label: "Marine Weather Statement", statement: false },
|
|
55
|
+
],
|
|
56
|
+
PNS: [
|
|
57
|
+
{ match: /NOAA WEATHER WIRE SERVICE/i, label: "NOAA Weather Wire Service Report", statement: true },
|
|
58
|
+
{ match: /Public Information Statement/i, label: "Public Information Statement", statement: true },
|
|
59
|
+
]
|
|
60
|
+
};
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
Created with ♥ by the AtmosphericX Team (KiyoWx, StarflightWx, & CJ Ziegler)
|
|
12
12
|
Discord: https://atmosphericx-discord.scriptkitty.cafe
|
|
13
13
|
Ko-Fi: https://ko-fi.com/k3yomi
|
|
14
|
-
Documentation:
|
|
14
|
+
Documentation: https://atmosphericx.scriptkitty.cafe/documentation
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Independent Package: @atmosx/event-product-parser
|
|
17
17
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
export const
|
|
20
|
+
export const EnumProducts: Record<string, string> = {
|
|
21
21
|
"O": "Operational Product",
|
|
22
22
|
"T": "Test Product",
|
|
23
23
|
"E": "Experimental Product",
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
Created with ♥ by the AtmosphericX Team (KiyoWx, StarflightWx, & CJ Ziegler)
|
|
12
12
|
Discord: https://atmosphericx-discord.scriptkitty.cafe
|
|
13
13
|
Ko-Fi: https://ko-fi.com/k3yomi
|
|
14
|
-
Documentation:
|
|
14
|
+
Documentation: https://atmosphericx.scriptkitty.cafe/documentation
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Independent Package: @atmosx/event-product-parser
|
|
17
17
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
export const
|
|
20
|
+
export const EnumRecords: Record<string, string> = {
|
|
21
21
|
"NO": "No Record Expected",
|
|
22
22
|
"NR": "Near Record or possible record",
|
|
23
23
|
"UU": "Unknown history of records",
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
Created with ♥ by the AtmosphericX Team (KiyoWx, StarflightWx, & CJ Ziegler)
|
|
12
12
|
Discord: https://atmosphericx-discord.scriptkitty.cafe
|
|
13
13
|
Ko-Fi: https://ko-fi.com/k3yomi
|
|
14
|
-
Documentation:
|
|
14
|
+
Documentation: https://atmosphericx.scriptkitty.cafe/documentation
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Independent Package: @atmosx/event-product-parser
|
|
17
17
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
export const
|
|
20
|
+
export const EnumSeverity: Record<string, string> = {
|
|
21
21
|
N: "Not Expected",
|
|
22
22
|
0: "Areal Flood or FF Product",
|
|
23
23
|
1: "Minor",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
Created with ♥ by the AtmosphericX Team (KiyoWx, StarflightWx, & CJ Ziegler)
|
|
12
12
|
Discord: https://atmosphericx-discord.scriptkitty.cafe
|
|
13
13
|
Ko-Fi: https://ko-fi.com/k3yomi
|
|
14
|
-
Documentation:
|
|
14
|
+
Documentation: https://atmosphericx.scriptkitty.cafe/documentation
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Independent Package: @atmosx/event-product-parser
|
|
17
17
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
@@ -23,7 +23,7 @@ interface ShapefilesResponse {
|
|
|
23
23
|
link: string
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export const
|
|
26
|
+
export const EnumShapefiles: ShapefilesResponse[] = [
|
|
27
27
|
{name: "us_counties", id: "C", link: "https://www.weather.gov/source/gis/Shapefiles/County/c_16ap26.zip"},
|
|
28
28
|
{name: "us_states_territories", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/County/s_16ap26.zip"},
|
|
29
29
|
{name: "fire_weather_zones", id: "Z", link: "https://www.weather.gov/source/gis/Shapefiles/WSOM/fz16ap26.zip"},
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/*
|
|
2
|
+
_ _ _ __ __
|
|
3
|
+
/\ | | | | (_) \ \ / /
|
|
4
|
+
/ \ | |_ _ __ ___ ___ ___ _ __ | |__ ___ _ __ _ ___ \ V /
|
|
5
|
+
/ /\ \| __| '_ ` _ \ / _ \/ __| '_ \| '_ \ / _ \ '__| |/ __| > <
|
|
6
|
+
/ ____ \ |_| | | | | | (_) \__ \ |_) | | | | __/ | | | (__ / . \
|
|
7
|
+
/_/ \_\__|_| |_| |_|\___/|___/ .__/|_| |_|\___|_| |_|\___/_/ \_\
|
|
8
|
+
| |
|
|
9
|
+
|_|
|
|
10
|
+
|
|
11
|
+
Created with ♥ by the AtmosphericX Team (KiyoWx, StarflightWx, & CJ Ziegler)
|
|
12
|
+
Discord: https://atmosphericx-discord.scriptkitty.cafe
|
|
13
|
+
Ko-Fi: https://ko-fi.com/k3yomi
|
|
14
|
+
Documentation: https://atmosphericx.scriptkitty.cafe/documentation
|
|
15
|
+
|
|
16
|
+
Independent Package: @atmosx/event-product-parser
|
|
17
|
+
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
export const EnumStates: Record<string, string> = {
|
|
21
|
+
"AL": "Alabama",
|
|
22
|
+
"AK": "Alaska",
|
|
23
|
+
"AZ": "Arizona",
|
|
24
|
+
"AR": "Arkansas",
|
|
25
|
+
"CA": "California",
|
|
26
|
+
"CO": "Colorado",
|
|
27
|
+
"CT": "Connecticut",
|
|
28
|
+
"DE": "Delaware",
|
|
29
|
+
"FL": "Florida",
|
|
30
|
+
"GA": "Georgia",
|
|
31
|
+
"HI": "Hawaii",
|
|
32
|
+
"ID": "Idaho",
|
|
33
|
+
"IL": "Illinois",
|
|
34
|
+
"IN": "Indiana",
|
|
35
|
+
"IA": "Iowa",
|
|
36
|
+
"KS": "Kansas",
|
|
37
|
+
"KY": "Kentucky",
|
|
38
|
+
"LA": "Louisiana",
|
|
39
|
+
"ME": "Maine",
|
|
40
|
+
"MD": "Maryland",
|
|
41
|
+
"MA": "Massachusetts",
|
|
42
|
+
"MI": "Michigan",
|
|
43
|
+
"MN": "Minnesota",
|
|
44
|
+
"MS": "Mississippi",
|
|
45
|
+
"MO": "Missouri",
|
|
46
|
+
"MT": "Montana",
|
|
47
|
+
"NE": "Nebraska",
|
|
48
|
+
"NV": "Nevada",
|
|
49
|
+
"NH": "New Hampshire",
|
|
50
|
+
"NJ": "New Jersey",
|
|
51
|
+
"NM": "New Mexico",
|
|
52
|
+
"NY": "New York",
|
|
53
|
+
"NC": "North Carolina",
|
|
54
|
+
"ND": "North Dakota",
|
|
55
|
+
"OH": "Ohio",
|
|
56
|
+
"OK": "Oklahoma",
|
|
57
|
+
"OR": "Oregon",
|
|
58
|
+
"PA": "Pennsylvania",
|
|
59
|
+
"RI": "Rhode Island",
|
|
60
|
+
"SC": "South Carolina",
|
|
61
|
+
"SD": "South Dakota",
|
|
62
|
+
"TN": "Tennessee",
|
|
63
|
+
"TX": "Texas",
|
|
64
|
+
"UT": "Utah",
|
|
65
|
+
"VT": "Vermont",
|
|
66
|
+
"VA": "Virginia",
|
|
67
|
+
"WA": "Washington",
|
|
68
|
+
"WV": "West Virginia",
|
|
69
|
+
"WI": "Wisconsin",
|
|
70
|
+
"WY": "Wyoming",
|
|
71
|
+
"DC": "District of Columbia",
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const EnumZones: Record<string, string> = {
|
|
75
|
+
"LM": "Lake Michigan",
|
|
76
|
+
"GM": "Gulf of Mexico",
|
|
77
|
+
"LH": "Lake Huron",
|
|
78
|
+
"LE": "Lake Erie",
|
|
79
|
+
"LS": "Lake Superior",
|
|
80
|
+
"LO": "Lake Ontario",
|
|
81
|
+
"AM": "Atlantic Ocean",
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export const EnumStateFIPS: Record<string, string> = {
|
|
85
|
+
"01": "AL",
|
|
86
|
+
"02": "AK",
|
|
87
|
+
"04": "AZ",
|
|
88
|
+
"05": "AR",
|
|
89
|
+
"06": "CA",
|
|
90
|
+
"08": "CO",
|
|
91
|
+
"09": "CT",
|
|
92
|
+
"10": "DE",
|
|
93
|
+
"11": "DC",
|
|
94
|
+
"12": "FL",
|
|
95
|
+
"13": "GA",
|
|
96
|
+
"15": "HI",
|
|
97
|
+
"16": "ID",
|
|
98
|
+
"17": "IL",
|
|
99
|
+
"18": "IN",
|
|
100
|
+
"19": "IA",
|
|
101
|
+
"20": "KS",
|
|
102
|
+
"21": "KY",
|
|
103
|
+
"22": "LA",
|
|
104
|
+
"23": "ME",
|
|
105
|
+
"24": "MD",
|
|
106
|
+
"25": "MA",
|
|
107
|
+
"26": "MI",
|
|
108
|
+
"27": "MN",
|
|
109
|
+
"28": "MS",
|
|
110
|
+
"29": "MO",
|
|
111
|
+
"30": "MT",
|
|
112
|
+
"31": "NE",
|
|
113
|
+
"32": "NV",
|
|
114
|
+
"33": "NH",
|
|
115
|
+
"34": "NJ",
|
|
116
|
+
"35": "NM",
|
|
117
|
+
"36": "NY",
|
|
118
|
+
"37": "NC",
|
|
119
|
+
"38": "ND",
|
|
120
|
+
"39": "OH",
|
|
121
|
+
"40": "OK",
|
|
122
|
+
"41": "OR",
|
|
123
|
+
"42": "PA",
|
|
124
|
+
"44": "RI",
|
|
125
|
+
"45": "SC",
|
|
126
|
+
"46": "SD",
|
|
127
|
+
"47": "TN",
|
|
128
|
+
"48": "TX",
|
|
129
|
+
"49": "UT",
|
|
130
|
+
"50": "VT",
|
|
131
|
+
"51": "VA",
|
|
132
|
+
"53": "WA",
|
|
133
|
+
"54": "WV",
|
|
134
|
+
"55": "WI",
|
|
135
|
+
"56": "WY"
|
|
136
|
+
}
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
Created with ♥ by the AtmosphericX Team (KiyoWx, StarflightWx, & CJ Ziegler)
|
|
12
12
|
Discord: https://atmosphericx-discord.scriptkitty.cafe
|
|
13
13
|
Ko-Fi: https://ko-fi.com/k3yomi
|
|
14
|
-
Documentation:
|
|
14
|
+
Documentation: https://atmosphericx.scriptkitty.cafe/documentation
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Independent Package: @atmosx/event-product-parser
|
|
17
17
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
export const
|
|
20
|
+
export const EnumStatus: Record<string, string> = {
|
|
21
21
|
"NEW": "Issued",
|
|
22
22
|
"CON": "Updated",
|
|
23
23
|
"EXT": "Extended",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
_ _ _ __ __
|
|
3
|
+
/\ | | | | (_) \ \ / /
|
|
4
|
+
/ \ | |_ _ __ ___ ___ ___ _ __ | |__ ___ _ __ _ ___ \ V /
|
|
5
|
+
/ /\ \| __| '_ ` _ \ / _ \/ __| '_ \| '_ \ / _ \ '__| |/ __| > <
|
|
6
|
+
/ ____ \ |_| | | | | | (_) \__ \ |_) | | | | __/ | | | (__ / . \
|
|
7
|
+
/_/ \_\__|_| |_| |_|\___/|___/ .__/|_| |_|\___|_| |_|\___/_/ \_\
|
|
8
|
+
| |
|
|
9
|
+
|_|
|
|
10
|
+
|
|
11
|
+
Created with ♥ by the AtmosphericX Team (KiyoWx, StarflightWx, & CJ Ziegler)
|
|
12
|
+
Discord: https://atmosphericx-discord.scriptkitty.cafe
|
|
13
|
+
Ko-Fi: https://ko-fi.com/k3yomi
|
|
14
|
+
Documentation: https://atmosphericx.scriptkitty.cafe/documentation
|
|
15
|
+
|
|
16
|
+
Independent Package: @atmosx/event-product-parser
|
|
17
|
+
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
export const EnumStrings: Record<string, string> = {
|
|
21
|
+
cancellation: `{EVENT} has been allowed to expire. This event is no longer in effect.`,
|
|
22
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/*
|
|
2
|
+
_ _ _ __ __
|
|
3
|
+
/\ | | | | (_) \ \ / /
|
|
4
|
+
/ \ | |_ _ __ ___ ___ ___ _ __ | |__ ___ _ __ _ ___ \ V /
|
|
5
|
+
/ /\ \| __| '_ ` _ \ / _ \/ __| '_ \| '_ \ / _ \ '__| |/ __| > <
|
|
6
|
+
/ ____ \ |_| | | | | | (_) \__ \ |_) | | | | __/ | | | (__ / . \
|
|
7
|
+
/_/ \_\__|_| |_| |_|\___/|___/ .__/|_| |_|\___|_| |_|\___/_/ \_\
|
|
8
|
+
| |
|
|
9
|
+
|_|
|
|
10
|
+
|
|
11
|
+
Created with ♥ by the AtmosphericX Team (KiyoWx, StarflightWx, & CJ Ziegler)
|
|
12
|
+
Discord: https://atmosphericx-discord.scriptkitty.cafe
|
|
13
|
+
Ko-Fi: https://ko-fi.com/k3yomi
|
|
14
|
+
Documentation: https://atmosphericx.scriptkitty.cafe/documentation
|
|
15
|
+
|
|
16
|
+
Independent Package: @atmosx/event-product-parser
|
|
17
|
+
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
type EnumTagsType = {
|
|
21
|
+
match: RegExp;
|
|
22
|
+
tag: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const EnumTags: Record<string, EnumTagsType[]> = {
|
|
26
|
+
SEVERE_WEATHER: [
|
|
27
|
+
{ match: /A Large And Extremely Dangerous Tornado/i, tag: "Large and Dangerous Tornado" },
|
|
28
|
+
{ match: /This Is A Particularly Dangerous Situation/i, tag: "Particularly Dangerous Situation" },
|
|
29
|
+
{ match: /Weather Spotters Confirmed Tornado/i, tag: "Weather Spotters Confirmed Tornado" },
|
|
30
|
+
{ match: /Law Enforcement Confirmed Tornado/i, tag: "Law Enforcement Confirmed Tornado" },
|
|
31
|
+
{ match: /Radar Confirmed/i, tag: "Radar Confirmed" },
|
|
32
|
+
{ match: /Radar Indicated Rotation/i, tag: "Radar Indicated Rotation" },
|
|
33
|
+
{ match: /Radar Indicated(?! Rotation)/i, tag: "Radar Indicated" },
|
|
34
|
+
{ match: /A Tornado Is On The Ground/i, tag: "Tornado On The Ground" },
|
|
35
|
+
{ match: /Tornado Was Reported Briefly On The Ground/i, tag: "Tornado Briefly On Ground" },
|
|
36
|
+
{ match: /Weather Spotters Reported Funnel Cloud/i, tag: "Confirmed Funnel Cloud" },
|
|
37
|
+
{ match: /Spotters Indicate That A Funnel Cloud Continues With This Storm/i, tag: "Funnel Cloud Continues" },
|
|
38
|
+
{ match: /A Severe Thunderstorm Capable Of Producing A Tornado/i, tag: "Tornado Possible" },
|
|
39
|
+
{ match: /A Tornado May Develop At Any Time/i, tag: "Tornado May Develop" },
|
|
40
|
+
{ match: /A Tornado Watch Remains In Effect/i, tag: "Active Tornado Watch" },
|
|
41
|
+
{ match: /Complete Destruction Is Possible/i, tag: "Extremely Damaging Tornado" },
|
|
42
|
+
{ match: /Potentially Deadly Tornado/i, tag: "Deadly Tornado" },
|
|
43
|
+
{ match: /Life-Threatening Situation/i, tag: "Life Threatening Situation" },
|
|
44
|
+
{ match: /Capable Of Producing A Landspout/i, tag: "Landspout Possible" },
|
|
45
|
+
{ match: /Public Confirmed Tornado/i, tag: "Public Confirmed Tornado" },
|
|
46
|
+
{ match: /Expect Wind Damage/i, tag: "Wind Damage" },
|
|
47
|
+
{ match: /Destructive Winds/i, tag: "Destructive Winds" },
|
|
48
|
+
{ match: /Wind Damage With This Storm Will Occur/i, tag: "Immediate Wind Damage Threat" },
|
|
49
|
+
{ match: /Widespread Wind Damage/i, tag: "Widespread Wind Damage" },
|
|
50
|
+
{ match: /Significant Wind Damage/i, tag: "Significant Wind Damage" },
|
|
51
|
+
{ match: /Tornado Like Wind Speeds/i, tag: "Tornado-Like Wind Speeds" },
|
|
52
|
+
{ match: /Winds Will Strengthen/i, tag: "Strengthening Winds" },
|
|
53
|
+
{ match: /Gusty Winds/i, tag: "Gusty Winds" },
|
|
54
|
+
{ match: /Could Knock Down Tree Limbs/i, tag: "Tree Damage Possible" },
|
|
55
|
+
{ match: /Blow Around Unsecured Objects/i, tag: "Loose Object Damage Possible" },
|
|
56
|
+
{ match: /Unsecured lightweight objects blown about/i, tag: "Loose Objects May Blow Around" },
|
|
57
|
+
{ match: /Many large tree limbs broken off/i, tag: "Tree Limb Damage Possible" },
|
|
58
|
+
{ match: /Some fences and roadway signs blown over/i, tag: "Fence and Sign Damage Possible" },
|
|
59
|
+
{ match: /Hazardous driving conditions on bridges/i, tag: "Hazardous Bridge Travel" },
|
|
60
|
+
{ match: /Scattered power and communications outages/i, tag: "Power Outages Possible" },
|
|
61
|
+
{ match: /Hail Damage To Vehicles Is Expected/i, tag: "Vehicle Damaging Hail" },
|
|
62
|
+
{ match: /Extremely Large Hail/i, tag: "Extremely Large Hail" },
|
|
63
|
+
{ match: /(?<!Extremely )Large Hail/i, tag: "Large Hail" },
|
|
64
|
+
{ match: /Tennis Ball Size Hail/i, tag: "Tennis Ball Size Hail" },
|
|
65
|
+
{ match: /Baseball Size Hail/i, tag: "Baseball Size Hail" },
|
|
66
|
+
{ match: /Golf Ball Size Hail/i, tag: "Golf Ball Size Hail" },
|
|
67
|
+
{ match: /Quarter Size Hail/i, tag: "Quarter Size Hail" },
|
|
68
|
+
{ match: /Ping Pong Ball Size Hail/i, tag: "Ping Pong Ball Size Hail" },
|
|
69
|
+
{ match: /Nickel Size Hail/i, tag: "Nickel Size Hail" },
|
|
70
|
+
{ match: /Hail Driven By Severe Winds/i, tag: "Wind Driven Hail" },
|
|
71
|
+
{ match: /Prepare Immediately For Large Hail/i, tag: "Large Hail" },
|
|
72
|
+
{ match: /Half Inch Hail/i, tag: "Half Inch Hail" },
|
|
73
|
+
{ match: /Frequent Lightning/i, tag: "Frequent Lightning" },
|
|
74
|
+
{ match: /Deadly Cloud To Ground Lightning/i, tag: "Deadly Cloud To Ground Lightning" },
|
|
75
|
+
{ match: /Continuous Cloud To Ground Lightning/i, tag: "Continuous Cloud To Ground Lightning" },
|
|
76
|
+
{ match: /Frequent Cloud To Ground Lightning/i, tag: "Frequent Cloud To Ground Lightning" },
|
|
77
|
+
{ match: /Lightning Can Strike \d+ Miles Away/i, tag: "Lightning Safety Threat" },
|
|
78
|
+
{ match: /Showers and thunderstorms with gusty winds may still occur/i, tag: "Gusty Thunderstorms Possible" },
|
|
79
|
+
|
|
80
|
+
],
|
|
81
|
+
|
|
82
|
+
FLOOD: [
|
|
83
|
+
{ match: /Flash Flooding Caused By Thunderstorms/i, tag: "Thunderstorm Flash Flooding" },
|
|
84
|
+
{ match: /Flash Flooding Caused By Heavy Rain/i, tag: "Heavy Rain Flash Flooding" },
|
|
85
|
+
{ match: /Torrential Rainfall/i, tag: "Torrential Rainfall" },
|
|
86
|
+
{ match: /May Lead To Flash Flooding/i, tag: "Flash Flooding Possible" },
|
|
87
|
+
{ match: /Minor Flooding Is Occurring/i, tag: "Minor Flooding Occurring" },
|
|
88
|
+
{ match: /Localized Flooding/i, tag: "Localized Flooding Possible" },
|
|
89
|
+
{ match: /Do Not Drive Your Vehicle Through Flooded Roadways/i, tag: "Flooded Roadways" },
|
|
90
|
+
{ match: /No storm surge inundation forecast/i, tag: "No Storm Surge Inundation" },
|
|
91
|
+
{ match: /Localized storm surge possible/i, tag: "Localized Storm Surge Possible" },
|
|
92
|
+
{ match: /Peak Storm Surge Inundation/i, tag: "Storm Surge Inundation Risk" },
|
|
93
|
+
{ match: /Potential for storm surge flooding/i, tag: "Storm Surge Flooding Possible" },
|
|
94
|
+
{ match: /Small streams, creeks, and ditches may become swollen/i, tag: "Small Stream Flooding Risk" },
|
|
95
|
+
{ match: /Rivers and tributaries may quickly rise/i, tag: "Rapid River Rise Possible" },
|
|
96
|
+
{ match: /Flood waters can enter a few structures/i, tag: "Flood Damage Possible" },
|
|
97
|
+
{ match: /Rapid ponding of water occurs/i, tag: "Water Ponding Possible" },
|
|
98
|
+
{ match: /Brief road and bridge closures/i, tag: "Road Closures Possible" },
|
|
99
|
+
|
|
100
|
+
],
|
|
101
|
+
|
|
102
|
+
WINTER_WEATHER: [
|
|
103
|
+
{ match: /Frostbite And Hypothermia Are Likely/i, tag: "Frostbite and Hypothermia Likely" },
|
|
104
|
+
{ match: /Very Cold Temperatures Can Lead To Hypothermia/i, tag: "Hypothermia Risk" },
|
|
105
|
+
{ match: /Hypothermia If Precautions Are Not Taken/i, tag: "Hypothermia Risk" },
|
|
106
|
+
{ match: /Frostbite And Hypothermia Will Occur If Unprotected Skin/i, tag: "Frostbite Risk" },
|
|
107
|
+
{ match: /Temperatures Could Cause Ruptured Water Pipes/i, tag: "Ruptured Water Pipes Possible" },
|
|
108
|
+
{ match: /Blowing Snow Which Could Reduce Visibility/i, tag: "Reduced Visibility From Blowing Snow" },
|
|
109
|
+
{ match: /Lake Effect Snow Expected/i, tag: "Lake Effect Snow" },
|
|
110
|
+
{ match: /Slick And Icy Spots On Roads/i, tag: "Icy Roads" },
|
|
111
|
+
{ match: /Hazardous Roadways And Black Ice/i, tag: "Black Ice" },
|
|
112
|
+
{ match: /Icy Patches May Be More Common On Bridges/i, tag: "Bridge Icing" },
|
|
113
|
+
],
|
|
114
|
+
|
|
115
|
+
COASTAL_MARINE: [
|
|
116
|
+
{ match: /Rip Currents Can Sweep Even The Best Swimmer/i, tag: "Dangerous Rip Currents" },
|
|
117
|
+
{ match: /Small Craft Could Be Damaged/i, tag: "Small Craft Damage Possible" },
|
|
118
|
+
{ match: /No Tsunami Threat/i, tag: "No Tsunami Threat" },
|
|
119
|
+
{ match: /Tsunami Threat Exists/i, tag: "Tsunami Threat Exists" },
|
|
120
|
+
{ match: /TROPICAL STORM WARNING IN EFFECT/i, tag: "Tropical Storm Warning" },
|
|
121
|
+
{ match: /TROPICAL STORM WARNING REMAINS IN EFFECT/i, tag: "Tropical Storm Warning Continues" },
|
|
122
|
+
{ match: /Tropical storm[- ]force winds/i, tag: "Tropical Storm Force Winds" },
|
|
123
|
+
{ match: /hazardous wind/i, tag: "Hazardous Winds" },
|
|
124
|
+
{ match: /hazardous seas/i, tag: "Hazardous Seas" },
|
|
125
|
+
{ match: /could capsize or damage vessels/i, tag: "Vessel Damage Risk" },
|
|
126
|
+
{ match: /reduce visibility/i, tag: "Reduced Visibility" },
|
|
127
|
+
{ match: /Mariners should alter plans/i, tag: "Marine Travel Disruption" },
|
|
128
|
+
{ match: /Remain in port/i, tag: "Remain In Port" },
|
|
129
|
+
{ match: /seek safe harbor/i, tag: "Seek Safe Harbor" },
|
|
130
|
+
{ match: /secure the vessel for severe conditions/i, tag: "Secure Vessel" },
|
|
131
|
+
],
|
|
132
|
+
|
|
133
|
+
SAFETY_INFO: [
|
|
134
|
+
{ match: /Seek Shelter Now/i, tag: "Seek Shelter Now" },
|
|
135
|
+
{ match: /Seek Shelter Immediately/i, tag: "Seek Shelter Immediately" },
|
|
136
|
+
{ match: /Move To An Interior Room/i, tag: "Move To Interior Room" },
|
|
137
|
+
{ match: /Move To Safe Shelter Now/i, tag: "Move To Safe Shelter" },
|
|
138
|
+
{ match: /Potentially Deadly Storm/i, tag: "Potentially Deadly Storm" },
|
|
139
|
+
{ match: /Serious Injury And Significant Property Damage/i, tag: "Serious Damage Possible" },
|
|
140
|
+
{ match: /People And Animals Outdoors Will Be Injured/i, tag: "Outdoor Injury Risk" },
|
|
141
|
+
{ match: /IMMINENT DANGEROUS WEATHER CONDITIONS/i, tag: "Imminent Dangerous Weather" },
|
|
142
|
+
{ match: /Follow the instructions of local officials/i, tag: "Follow Local Officials" },
|
|
143
|
+
{ match: /Monitor forecasts/i, tag: "Monitor Forecast Updates" },
|
|
144
|
+
{ match: /Complete preparations.*before conditions become unsafe/i, tag: "Complete Preparations Early" },
|
|
145
|
+
{ match: /Leave immediately if evacuation orders are given/i, tag: "Evacuate If Ordered" },
|
|
146
|
+
{ match: /Heed any flood watches and warnings/i, tag: "Monitor Flood Alerts" },
|
|
147
|
+
{ match: /Listen for changes in the forecast/i, tag: "Stay Weather Aware" },
|
|
148
|
+
{ match: /Travel Could Be Very Difficult/i, tag: "Difficult Travel Conditions" },
|
|
149
|
+
{ match: /Expect Disruptions/i, tag: "Travel Disruptions Expected" },
|
|
150
|
+
{ match: /Trained Weather Spotters/i, tag: "Confirmed By Storm Spotters" },
|
|
151
|
+
{ match: /Doppler Radar/i, tag: "Confirmed By Radar" },
|
|
152
|
+
{ match: /Source\.\.\.Storm Spotters/i, tag: "Confirmed By Storm Spotters" },
|
|
153
|
+
{ match: /Source\.\.\.Doppler Radar/i, tag: "Confirmed By Radar" },
|
|
154
|
+
{ match: /Source\.\.\.Automated Gauges/i, tag: "Confirmed By Automated Gauges" },
|
|
155
|
+
{ match: /Source\.\.\.Radar Confirmed/i, tag: "Confirmed By Radar" },
|
|
156
|
+
{ match: /Source\.\.\.Radar Indicated/i, tag: "Radar Indicated" },
|
|
157
|
+
{ match: /Source\.\.\.Public/i, tag: "Confirmed By Public" },
|
|
158
|
+
{ match: /Source\.\.\.Amateur Radio/i, tag: "Confirmed By Amateur Radio" },
|
|
159
|
+
{ match: /Source\.\.\.Emergency Management/i, tag: "Confirmed By Emergency Management" },
|
|
160
|
+
{ match: /Source\.\.\.Law Enforcement Reported/i, tag: "Confirmed By Law Enforcement" },
|
|
161
|
+
{ match: /Source\.\.\.Broadcast Media/i, tag: "Confirmed By Broadcast Media" },
|
|
162
|
+
{ match: /Source\.\.\.Media/i, tag: "Confirmed By Media" },
|
|
163
|
+
{ match: /Source\.\.\.Media Reported/i, tag: "Confirmed By Media" },
|
|
164
|
+
{ match: /Doppler Radar And Automated Gauges/i, tag: "Confirmed By Radar and Gauges" },
|
|
165
|
+
{ match: /Potential Impacts:\s*Limited/i, tag: "Limited Impacts Expected" },
|
|
166
|
+
{ match: /Potential Impacts:\s*Little to None/i, tag: "Minimal Impacts Expected" },
|
|
167
|
+
{ match: /Slow Down And Allow Extra Time/i, tag: "Allow Extra Travel Time" },
|
|
168
|
+
{ match: /Should Exercise Caution/i, tag: "Exercise Caution" },
|
|
169
|
+
{ match: /Heat Illnesses/i, tag: "Heat Illness Risk" },
|
|
170
|
+
{ match: /\bIntensifying\b/i, tag: "Intensifying Conditions" },
|
|
171
|
+
],
|
|
172
|
+
};
|
|
@@ -11,14 +11,15 @@
|
|
|
11
11
|
Created with ♥ by the AtmosphericX Team (KiyoWx, StarflightWx, & CJ Ziegler)
|
|
12
12
|
Discord: https://atmosphericx-discord.scriptkitty.cafe
|
|
13
13
|
Ko-Fi: https://ko-fi.com/k3yomi
|
|
14
|
-
Documentation:
|
|
14
|
+
Documentation: https://atmosphericx.scriptkitty.cafe/documentation
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Independent Package: @atmosx/event-product-parser
|
|
17
17
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
export const
|
|
20
|
+
export const EnumTesting: string[] = [
|
|
21
21
|
`This is a test message`,
|
|
22
22
|
`Monitoring message only.`,
|
|
23
|
-
`THIS_MESSAGE_IS_FOR_TEST_PURPOSES_ONLY
|
|
23
|
+
`THIS_MESSAGE_IS_FOR_TEST_PURPOSES_ONLY`,
|
|
24
|
+
"TEST MESSAGE"
|
|
24
25
|
]
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
_ _ _ __ __
|
|
3
|
+
/\ | | | | (_) \ \ / /
|
|
4
|
+
/ \ | |_ _ __ ___ ___ ___ _ __ | |__ ___ _ __ _ ___ \ V /
|
|
5
|
+
/ /\ \| __| '_ ` _ \ / _ \/ __| '_ \| '_ \ / _ \ '__| |/ __| > <
|
|
6
|
+
/ ____ \ |_| | | | | | (_) \__ \ |_) | | | | __/ | | | (__ / . \
|
|
7
|
+
/_/ \_\__|_| |_| |_|\___/|___/ .__/|_| |_|\___|_| |_|\___/_/ \_\
|
|
8
|
+
| |
|
|
9
|
+
|_|
|
|
10
|
+
|
|
11
|
+
Created with ♥ by the AtmosphericX Team (KiyoWx, StarflightWx, & CJ Ziegler)
|
|
12
|
+
Discord: https://atmosphericx-discord.scriptkitty.cafe
|
|
13
|
+
Ko-Fi: https://ko-fi.com/k3yomi
|
|
14
|
+
Documentation: https://atmosphericx.scriptkitty.cafe/documentation
|
|
15
|
+
|
|
16
|
+
Independent Package: @atmosx/event-product-parser
|
|
17
|
+
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
type Themes = {
|
|
21
|
+
Event: string;
|
|
22
|
+
RGB: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const EnumThemes: Themes[] = [
|
|
26
|
+
{ Event: `Tornado Emergency`, RGB: `rgb(166, 0, 255)` },
|
|
27
|
+
{ Event: `Flash Flood Emergency`, RGB: `rgb(21, 216, 37)` },
|
|
28
|
+
{ Event: `*PDS Tornado Warning*`, RGB: `rgb(208, 0, 255)` },
|
|
29
|
+
{ Event: `*Tornado Warning*`, RGB: `rgb(255, 0, 0)` },
|
|
30
|
+
{ Event: `Confirmed Tornado Warning`, RGB: `rgb(220, 20, 20)` },
|
|
31
|
+
{ Event: `Radar Indicated Tornado Warning`, RGB: `rgb(200, 30, 30)` },
|
|
32
|
+
{ Event: `Tornado Warning`, RGB: `rgb(180, 40, 40)` },
|
|
33
|
+
{ Event: `*EDS Severe Thunderstorm Warning*`, RGB: `rgb(255, 51, 0)` },
|
|
34
|
+
{ Event: `*Destructive Severe Thunderstorm Warning*`, RGB: `rgb(255, 51, 0)` },
|
|
35
|
+
{ Event: `Destructive Severe Thunderstorm Warning (TPROB)`, RGB: `rgb(240, 60, 0)` },
|
|
36
|
+
{ Event: `EDS Severe Thunderstorm Warning (TPROB)`, RGB: `rgb(240, 60, 0)` },
|
|
37
|
+
{ Event: `Considerable Severe Thunderstorm Warning (TPROB)`, RGB: `rgb(230, 100, 0)` },
|
|
38
|
+
{ Event: `*Severe Thunderstorm Warning*`, RGB: `rgb(197, 159, 32)` },
|
|
39
|
+
{ Event: `Severe Thunderstorm Warning (TPROB)`, RGB: `rgb(210, 140, 20)` },
|
|
40
|
+
{ Event: `Considerable Severe Thunderstorm Warning`, RGB: `rgb(204, 160, 0)` },
|
|
41
|
+
{ Event: `Severe Thunderstorm Warning`, RGB: `rgb(204, 132, 0)` },
|
|
42
|
+
{ Event: `Flash Flood Warning`, RGB: `rgb(97, 204, 30)` },
|
|
43
|
+
{ Event: `Flood Warning`, RGB: `rgb(0, 204, 0)` },
|
|
44
|
+
{ Event: `Hurricane Warning`, RGB: `rgb(16, 125, 176)` },
|
|
45
|
+
{ Event: `Tsunami Warning`, RGB: `rgb(93, 27, 158)` },
|
|
46
|
+
{ Event: `Tsunami Watch`, RGB: `rgb(72, 16, 128)` },
|
|
47
|
+
{ Event: `Tsunami Advisory`, RGB: `rgb(80, 48, 160)` },
|
|
48
|
+
{ Event: `Tropical Storm Warning`, RGB: `rgb(101, 194, 238)` },
|
|
49
|
+
{ Event: `Hurricane Watch`, RGB: `rgb(204, 84, 144)` },
|
|
50
|
+
{ Event: `*PDS Blizzard Warning*`, RGB: `rgb(5, 115, 151)` },
|
|
51
|
+
{ Event: `Blizzard Warning`, RGB: `rgb(0, 152, 204)` },
|
|
52
|
+
{ Event: `Snow Squall Warning`, RGB: `rgb(56, 104, 144)` },
|
|
53
|
+
{ Event: `*PDS Ice Storm Warning*`, RGB: `rgb(86, 67, 196)` },
|
|
54
|
+
{ Event: `Ice Storm Warning`, RGB: `rgb(58, 49, 111)` },
|
|
55
|
+
{ Event: `Lake Effect Snow Warning`, RGB: `rgb(0, 111, 111)` },
|
|
56
|
+
{ Event: `Winter Storm Warning`, RGB: `rgb(24, 115, 204)` },
|
|
57
|
+
{ Event: `Extreme Cold Warning`, RGB: `rgb(47, 47, 137)` },
|
|
58
|
+
{ Event: `Tornadic Special Marine Warning`, RGB: `rgb(3, 134, 134)` },
|
|
59
|
+
{ Event: `Special Marine Warning`, RGB: `rgb(0, 204, 204)` },
|
|
60
|
+
{ Event: `Special Weather Statement`, RGB: `rgb(70, 130, 180)` },
|
|
61
|
+
{ Event: `Mesoscale Discussion`, RGB: `rgb(255, 0, 0)` },
|
|
62
|
+
{ Event: `*PDS Tornado Watch*`, RGB: `rgb(255, 0, 0)` },
|
|
63
|
+
{ Event: `*Tornado Watch*`, RGB: `rgb(151, 23, 23)` },
|
|
64
|
+
{ Event: `*PDS Severe Thunderstorm Watch*`, RGB: `rgb(255, 81, 0)` },
|
|
65
|
+
{ Event: `*Severe Thunderstorm Watch*`, RGB: `rgb(255, 204, 0)` },
|
|
66
|
+
{ Event: `*Excessive Heat Warning*`, RGB: `rgb(255, 255, 255)` },
|
|
67
|
+
{ Event: `*Flood*`, RGB: `rgb(0, 255, 128)` },
|
|
68
|
+
{ Event: `*Heat*`, RGB: `rgb(240, 197, 119)` },
|
|
69
|
+
{ Event: `Default`, RGB: `rgb(86, 125, 165)` },
|
|
70
|
+
];
|