@atmosx/event-product-parser 3.0.621 → 3.1.0

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.
Files changed (200) hide show
  1. package/.github/CHANGELOGS.md +52 -0
  2. package/.github/CODE_OF_CONDUCT.md +24 -1
  3. package/.github/CONTRIBUTING.md +22 -3
  4. package/.github/FUNDING.yaml +3 -0
  5. package/.github/LICENSE +24 -1
  6. package/.github/SECURITY.md +25 -6
  7. package/.github/docs/chapters/general-configurations.md +109 -0
  8. package/.github/docs/chapters/sources-and-attributes.md +219 -0
  9. package/README.md +56 -146
  10. package/dist/index.cjs +25333 -0
  11. package/package.json +17 -11
  12. package/pnpm-workspace.yaml +4 -0
  13. package/src/bootstrap.ts +67 -52
  14. package/src/components/audio/GenerateAudioMessage.ts +149 -0
  15. package/src/{@modules/@eas → components/audio/components}/GetCleanDescription.ts +2 -2
  16. package/src/{@modules/@eas → components/audio/components}/GetFloatPCM16.ts +2 -2
  17. package/src/{@modules/@eas → components/audio/components}/GetMergedPCM16.ts +2 -2
  18. package/src/{@modules/@eas → components/audio/components}/GetPCM16.ts +13 -8
  19. package/src/{@modules/@eas → components/audio/components}/GetPCMToFloat.ts +2 -2
  20. package/src/{@modules/@eas → components/audio/components}/GetSampledPCM16.ts +14 -8
  21. package/src/{@modules/@eas → components/audio/components}/GetTTS.ts +17 -10
  22. package/src/{@modules/@eas → components/audio/components}/GetWavPCM16.ts +7 -7
  23. package/src/{@modules/@eas → components/audio/components}/SetAFSK.ts +13 -8
  24. package/src/{@modules/@eas → components/audio/components}/SetAsciiToBits.ts +2 -2
  25. package/src/{@modules/@eas → components/audio/components}/SetAttentionTone.ts +11 -6
  26. package/src/{@modules/@eas → components/audio/components}/SetNoise.ts +12 -7
  27. package/src/{@modules/@eas → components/audio/components}/SetRadioEffect.ts +12 -7
  28. package/src/{@modules/@eas → components/audio/components}/SetSameHeader.ts +22 -14
  29. package/src/components/database/CreateQuery.ts +39 -0
  30. package/src/components/database/InitializeDatabase.ts +71 -0
  31. package/src/components/database/imports/Boundaires.ts +168 -0
  32. package/src/{@modules/@database/ImportBroadcastify.ts → components/database/imports/Broadcastify.ts} +15 -25
  33. package/src/components/database/imports/Census.ts +87 -0
  34. package/src/{@modules/@database/ImportShapefiles.ts → components/database/imports/Shapefiles.ts} +24 -27
  35. package/src/{@modules/@database/ImportStanza.ts → components/database/imports/Stanza.ts} +15 -19
  36. package/src/components/events/CreateEvents.ts +88 -0
  37. package/src/components/events/FilterEvents.ts +149 -0
  38. package/src/{@building/CreateEvent.ts → components/events/ProcessStanza.ts} +22 -24
  39. package/src/components/events/RemoveEvents.ts +74 -0
  40. package/src/{@building → components/events/components}/GetCleanedEvent.ts +2 -2
  41. package/src/{@building → components/events/components}/GetEventAttachments.ts +14 -12
  42. package/src/components/events/components/GetEventDirection.ts +28 -0
  43. package/src/{@building → components/events/components}/GetEventEnhancedName.ts +5 -8
  44. package/src/{@building → components/events/components}/GetEventGeometry.ts +19 -13
  45. package/src/{@building → components/events/components}/GetEventHeader.ts +13 -13
  46. package/src/components/events/components/GetEventMerged.ts +51 -0
  47. package/src/{@building → components/events/components}/GetEventNodes.ts +22 -20
  48. package/src/{@building → components/events/components}/GetEventOffice.ts +13 -13
  49. package/src/components/events/components/GetEventPopulation.ts +58 -0
  50. package/src/components/events/components/GetEventProperties.ts +106 -0
  51. package/src/{@building → components/events/components}/GetEventSignature.ts +9 -9
  52. package/src/{@building → components/events/components}/GetEventTags.ts +3 -3
  53. package/src/components/events/components/GetEventTheme.ts +26 -0
  54. package/src/components/events/components/GetEventTracking.ts +64 -0
  55. package/src/{@modules/@database → components/events/utilities}/GetCachedEvents.ts +18 -15
  56. package/src/{@manager → components/events/utilities}/SetHash.ts +18 -13
  57. package/src/{@manager → components/events/utilities}/UpdateEvents.ts +12 -12
  58. package/src/{@manager → components/events/utilities}/UpdateNode.ts +14 -14
  59. package/src/{@parsers/@text → components/formatting}/GetEmbededText.ts +14 -8
  60. package/src/{@parsers/@text → components/formatting}/GetStringText.ts +15 -11
  61. package/src/{@modules/@utilities → components/geometry}/GetShapeNearestPoint.ts +24 -19
  62. package/src/components/geometry/GetUnionPolygon.ts +36 -0
  63. package/src/components/images/GenerateGraphic.ts +242 -0
  64. package/src/components/images/components/CreateRectangle.ts +22 -0
  65. package/src/components/images/components/CreateText.ts +22 -0
  66. package/src/components/images/modules/CreateSVG.ts +37 -0
  67. package/src/components/images/modules/GetGeographicalBoundaries.ts +72 -0
  68. package/src/components/images/modules/GetGeographicalCities.ts +58 -0
  69. package/src/components/images/modules/GetGeographicalEvents.ts +48 -0
  70. package/src/components/images/modules/GetGeometryBounds.ts +82 -0
  71. package/src/components/images/modules/GetParsedBoundary.ts +58 -0
  72. package/src/components/images/modules/GetSVGPath.ts +53 -0
  73. package/src/components/images/modules/NormalizePolygon.ts +57 -0
  74. package/src/{@modules/@stanza → components/stanza}/GetAwipsType.ts +16 -17
  75. package/src/{@modules/@stanza → components/stanza}/ValidateStanza.ts +27 -15
  76. package/src/{@modules/@utilities → components/utilities}/CreateHttp.ts +26 -26
  77. package/src/components/utilities/EmitThread.ts +97 -0
  78. package/src/{@modules/@utilities → components/utilities}/GetLatestIssuance.ts +2 -2
  79. package/src/{@modules/@utilities → components/utilities}/GetMatched.ts +10 -5
  80. package/src/components/utilities/QueueManager.ts +70 -0
  81. package/src/{@modules/@utilities → components/utilities}/SetDebug.ts +13 -13
  82. package/src/components/utilities/SetEventEmit.ts +42 -0
  83. package/src/{@modules/@utilities → components/utilities}/SetSettings.ts +7 -7
  84. package/src/{@modules/@utilities → components/utilities}/SetSleep.ts +5 -5
  85. package/src/components/utilities/SetTimeoutAction.ts +64 -0
  86. package/src/components/utilities/SetWarning.ts +47 -0
  87. package/src/{@modules/@xmpp → components/xmpp}/DeployXMPP.ts +20 -20
  88. package/src/{@core/CreateListener.ts → components/xmpp/ErrorXMPP.ts} +8 -5
  89. package/src/{@modules/@xmpp → components/xmpp}/OfflineXMPP.ts +13 -13
  90. package/src/{@modules/@xmpp → components/xmpp}/OnlineXMPP.ts +18 -18
  91. package/src/components/xmpp/ReconnectXMPP.ts +64 -0
  92. package/src/{@modules/@xmpp → components/xmpp}/StanzaXMPP.ts +26 -26
  93. package/src/{@enums → enums}/AWIPS.ts +2 -2
  94. package/src/{@enums → enums}/Actions.ts +2 -2
  95. package/src/{@enums → enums}/Cancellation.ts +2 -2
  96. package/src/{@enums → enums}/Causes.ts +2 -2
  97. package/src/{@enums → enums}/Correlations.ts +2 -2
  98. package/src/{@enums → enums}/Enhanced.ts +4 -3
  99. package/src/{@enums → enums}/Events.ts +2 -2
  100. package/src/{@enums → enums}/Expressions.ts +3 -3
  101. package/src/{@enums → enums}/GlobalFilter.ts +2 -2
  102. package/src/{@enums → enums}/Hail.ts +2 -2
  103. package/src/{@enums → enums}/ICAO.ts +2 -2
  104. package/src/{@enums → enums}/Matches.ts +8 -3
  105. package/src/{@enums → enums}/Products.ts +2 -2
  106. package/src/{@enums → enums}/Records.ts +2 -2
  107. package/src/{@enums → enums}/Severity.ts +2 -2
  108. package/src/{@enums → enums}/Shapefiles.ts +2 -2
  109. package/src/{@enums → enums}/States.ts +68 -4
  110. package/src/{@enums → enums}/Status.ts +2 -2
  111. package/src/{@enums → enums}/Strings.ts +2 -2
  112. package/src/{@enums → enums}/Tags.ts +9 -4
  113. package/src/{@enums → enums}/Testing.ts +2 -2
  114. package/src/enums/Themes.ts +70 -0
  115. package/src/events/ParseAPI.ts +133 -0
  116. package/src/{@events → events}/ParseText.ts +24 -22
  117. package/src/{@events → events}/ParseUGC.ts +27 -26
  118. package/src/{@events → events}/ParseVTEC.ts +37 -36
  119. package/src/{@core → exports}/ClearEvents.ts +9 -9
  120. package/src/{@core → exports}/GetEvents.ts +4 -4
  121. package/src/exports/GetNearestCity.ts +45 -0
  122. package/src/{@core → exports}/GetNodes.ts +4 -4
  123. package/src/{@core → exports}/GetRandomEvent.ts +4 -4
  124. package/src/{@core → exports}/GetVersion.ts +4 -4
  125. package/src/exports/ManualEvent.ts +55 -0
  126. package/src/{@core → exports}/QueryStanza.ts +12 -11
  127. package/src/exports/SetNode.ts +100 -0
  128. package/src/{@core → exports}/StartService.ts +23 -22
  129. package/src/{@core → exports}/StopService.ts +10 -10
  130. package/src/index.ts +57 -37
  131. package/src/{@parsers/@hvtec → parsers/hvtec}/HVExtract.ts +7 -7
  132. package/src/{@parsers/@text → parsers/text}/GetDescriptionFromProduct.ts +20 -21
  133. package/src/parsers/text/GetPolygonFromProduct.ts +71 -0
  134. package/src/{@parsers/@text → parsers/text}/GetTextFromProduct.ts +12 -12
  135. package/src/parsers/ugc/GetCache.ts +24 -0
  136. package/src/{@parsers/@ugc → parsers/ugc}/GetExpiry.ts +2 -2
  137. package/src/{@parsers/@ugc/GetUGCHeader.ts → parsers/ugc/GetHeader.ts} +4 -4
  138. package/src/{@parsers/@ugc → parsers/ugc}/GetLocations.ts +10 -10
  139. package/src/parsers/ugc/GetZonePolygon.ts +73 -0
  140. package/src/{@parsers/@ugc → parsers/ugc}/GetZones.ts +3 -3
  141. package/src/{@parsers/@ugc → parsers/ugc}/SetCache.ts +13 -8
  142. package/src/{@parsers/@ugc → parsers/ugc}/UGCExtract.ts +14 -14
  143. package/src/{@parsers/@pvtec → parsers/vtec}/GetExpiry.ts +2 -2
  144. package/src/{@parsers/@pvtec → parsers/vtec}/VTECExtract.ts +17 -17
  145. package/src/tasks/CreateTasks.ts +116 -0
  146. package/src/tasks/TaskGenerateJSON.ts +34 -0
  147. package/src/tasks/TaskGenerateText.ts +34 -0
  148. package/src/tasks/TaskSendNTFY.ts +96 -0
  149. package/src/tasks/TaskSendWebhook.ts +107 -0
  150. package/src/{@types → types/event}/Attributes.ts +2 -3
  151. package/src/{@types → types/event}/Event.ts +8 -7
  152. package/src/{@types → types/event}/HVTEC.ts +2 -2
  153. package/src/{@types → types/event}/Properties.ts +17 -3
  154. package/src/{@types → types/event}/Stanza.ts +2 -2
  155. package/src/{@types → types/event}/VTEC.ts +8 -8
  156. package/src/{@types → types/standard}/Actions.ts +3 -3
  157. package/src/{@types → types/standard}/Hash.ts +5 -5
  158. package/src/{@modules/@utilities/GetSettings.ts → types/standard/Nodes.ts} +15 -7
  159. package/src/{@types → types/standard}/Settings.ts +19 -12
  160. package/src/{@types → types/standard}/StanzaCompiled.ts +15 -15
  161. package/src/{@types → types/standard}/UGC.ts +5 -5
  162. package/tools/build.js +32 -0
  163. package/tsconfig.json +32 -1
  164. package/.github/SUPPORTED_EVENTS.md +0 -370
  165. package/.github/docs/docs-functions.md +0 -30
  166. package/.github/docs/docs-general-configurations.md +0 -209
  167. package/.github/docs/docs-integrations.md +0 -37
  168. package/.github/docs/docs-listeners.md +0 -28
  169. package/.github/docs/docs-source-configuration.md +0 -218
  170. package/.github/docs/docs-technical.md +0 -50
  171. package/.github/logo.png +0 -0
  172. package/.github/samples/SAMPLE_EAS_GENERATION.wav +0 -0
  173. package/.github/samples/SAMPLE_GEOJSON.json +0 -204
  174. package/.github/samples/SAMPLE_TEXT_PRODUCT.txt +0 -119
  175. package/dist/cjs/index.cjs +0 -8005
  176. package/dist/esm/index.mjs +0 -7985
  177. package/src/@building/GetEventProperties.ts +0 -96
  178. package/src/@building/GetEventTracking.ts +0 -68
  179. package/src/@core/ManualEvent.ts +0 -56
  180. package/src/@core/SetNode.ts +0 -81
  181. package/src/@events/ParseAPI.ts +0 -117
  182. package/src/@manager/MakeEvents.ts +0 -106
  183. package/src/@manager/RemoveEvent.ts +0 -70
  184. package/src/@manager/Tasks.ts +0 -246
  185. package/src/@manager/ValidateEvents.ts +0 -142
  186. package/src/@modules/@database/InitializeDatabase.ts +0 -59
  187. package/src/@modules/@eas/GenerateEASMessage.ts +0 -144
  188. package/src/@modules/@utilities/GetFormattedTime.ts +0 -43
  189. package/src/@modules/@utilities/SetCronSchedule.ts +0 -94
  190. package/src/@modules/@utilities/SetEventEmit.ts +0 -41
  191. package/src/@modules/@utilities/SetListener.ts +0 -30
  192. package/src/@modules/@utilities/SetTimeoutAction.ts +0 -64
  193. package/src/@modules/@utilities/SetWarning.ts +0 -34
  194. package/src/@modules/@xmpp/ErrorXMPP.ts +0 -27
  195. package/src/@modules/@xmpp/ReconnectXMPP.ts +0 -64
  196. package/src/@parsers/@text/GetPolygonFromProduct.ts +0 -53
  197. package/src/@parsers/@text/GetXML.ts +0 -61
  198. package/src/@parsers/@ugc/GetCache.ts +0 -24
  199. package/src/@parsers/@ugc/GetZonePolygon.ts +0 -111
  200. package/tsup.config.ts +0 -16
package/README.md CHANGED
@@ -1,167 +1,77 @@
1
- <div align="center">
2
- <a href="https://atmosphericx.scriptkitty.cafe">
3
- <img src="https://scriptkitty.cafe/ftp/@atmosphericx/assets/logo-event-product-parser.png" alt="@atmosx/event-product-parser" width="800"/>
4
- </a>
5
- <br>
6
- <p>A TypeScript/JavaScript library for parsing and ingesting NOAA and NWS Weather Text Products</p>
7
- <small>A project built and maintained with ❤️ by the AtmosphericX team</small>
8
- <p align="center">
9
- <a href="https://atmosphericx.scriptkitty.cafe"><b>Documentation</b></a> |
10
- <a href="https://github.com/AtmosphericX"><b>Repositories</b></a> |
11
- <a href="https://www.npmjs.com/search?q=%40atmosx"><b>NPM Packages</b></a> |
12
- <a href="https://atmosphericx-discord.scriptkitty.cafe"><b>Community Discord</b></a>
13
- </p>
1
+ <div align="center" style="margin-top: 20px;">
2
+ <a href="https://atmosphericx.scriptkitty.cafe">
3
+ <img src="https://scriptkitty.cafe/ftp/@atmosphericx/assets/logo-event-product-parser.png"
4
+ alt="@atmosx/event-product-parser"
5
+ width="800"/>
6
+ </a>
7
+ <p style="font-size: 1.1em; max-width: 700px;">
8
+ A robust TypeScript/JavaScript library for parsing and ingesting NOAA and NWS Weather Text Products, featuring an expanded suite of quality‑of‑life tools for faster, cleaner, and more reliable development.
9
+ </p>
10
+ <small style="display: block; margin-top: 10px;">
11
+ Built and maintained with ❤️ by the AtmosphericX team<br>
12
+ <i>Not affiliated with NOAA or NWS</i>
13
+ </small>
14
+ <hr style="width: 60%; margin: 25px auto; opacity: 0.3;">
15
+ <p style="text-align: center; font-size: 1.05em;">
16
+ <a href="https://atmosphericx.scriptkitty.cafe"><b>Official Documentation</b></a> &nbsp;•&nbsp;
17
+ <a href="https://github.com/AtmosphericX"><b>Github Organization</b></a> &nbsp;•&nbsp;
18
+ <a href="https://www.npmjs.com/search?q=%40atmosx"><b>Packages</b></a> &nbsp;•&nbsp;
19
+ <a href="/.github/CHANGELOGS.md"><b>Changelogs</b></a> &nbsp;•&nbsp;
20
+ <a href="https://atmosphericx-discord.scriptkitty.cafe"><b>Community Discord</b></a>
21
+ </p>
14
22
  </div>
15
23
 
16
24
  ## Table of Contents
17
- 1. [Introduction](#introduction)
18
- 2. [Installation](#installation)
19
- 3. [Sources](/.github/docs/docs-source-configuration.md)
20
- - 3.1 [NOAA Weather Wire Service](/.github/docs/docs-source-configuration.md#31---noaa-weather-wire-service)
21
- - 3.2 [National Weather Service API](/.github/docs/docs-source-configuration.md#32---national-weather-service-api)
22
- - 3.3 [NOAA Weather Wire Service vs NWS RESTful API](/.github/docs/docs-source-configuration.md#33---noaa-weather-wire-service-vs-nws-restful-api)
23
- - 3.4 [GeoJSON & WMO Formatting](/.github/docs/docs-source-configuration.md#34-geojson---wmo-formatting)
24
- - 3.4.1 [GeoJSON](/.github/docs/docs-source-configuration.md#341---geojson)
25
- - 3.4.2 [WMO Format](/.github/docs/docs-source-configuration.md#342---wmo-format)
26
- - 3.5 [Configuring NOAA Weather Wire Service](/.github/docs/docs-source-configuration.md#35---configuring-noaa-weather-wire-service)
27
- - 3.5.1 [Auto Reconnecting](/.github/docs/docs-source-configuration.md#351---auto-reconnecting)
28
- - 3.5.2 [Stanza Caching](/.github/docs/docs-source-configuration.md#352---stanza-caching)
29
- - 3.5.3 [Stanza Processing Settings](/.github/docs/docs-source-configuration.md#353---stanza-processing-settings)
30
- - 3.6 [Configuring National Weather Service API](/.github/docs/docs-source-configuration.md#36---configuring-national-weather-service-api)
31
- 4. [General Configurations](docs/docs-general-configurations.md)
32
- - 4.1 [Event Management & History](/.github/docs/docs-general-configurations.md#41---event-management---history)
33
- - 4.2 [Geometry Configurations](/.github/docs/docs-general-configurations.md#42---geometry-configurations)
34
- - 4.2.1 [Disable Geometry Processing](/.github/docs/docs-general-configurations.md#421---disable-geometry-processing)
35
- - 4.2.2 [Force Shapefile Coordinates](/.github/docs/docs-general-configurations.md#422---force-shapefile-coordinates)
36
- - 4.2.3 [Shapefile Skip Points](/.github/docs/docs-general-configurations.md#423---shapefile-skip-points)
37
- - 4.3 [Tracking Node Settings](/.github/docs/docs-general-configurations.md#43---tracking-node-settings)
38
- - 4.3.1 [NodeTTL](/.github/docs/docs-general-configurations.md#431---nodettl)
39
- - 4.3.2 [Max Distance](/.github/docs/docs-general-configurations.md#432---max-distance)
40
- - 4.3.3 [Tracking Node Properties](/.github/docs/docs-general-configurations.md#433---tracking-node-properties)
41
- - 4.4 [Advanced Event Filters](/.github/docs/docs-general-configurations.md#44---advanced-event-filters)
42
- - 4.4.1 [Events & Wildcards](/.github/docs/docs-general-configurations.md#441---events---wildcards)
43
- - 4.4.2 [ICAOs](/.github/docs/docs-general-configurations.md#442---icaos)
44
- - 4.4.3 [UGC](/.github/docs/docs-general-configurations.md#443---ugc)
45
- - 4.4.4 [States](/.github/docs/docs-general-configurations.md#444---states)
46
- - 4.4.5 [Ignoring Filters](/.github/docs/docs-general-configurations.md#445---ignoring-filters)
47
- - 4.4.6 [Node Location Filtering](/.github/docs/docs-general-configurations.md#446---node-location-filtering)
48
- - 4.4.7 [Test Products](/.github/docs/docs-general-configurations.md#447---test-products)
49
- - 4.5 [Archive Configurations](/.github/docs/docs-general-configurations.md#45---archive-configurations)
50
- - 4.5.1 [TTL (Time-to-Live)](/.github/docs/docs-general-configurations.md#451---ttl-time-to-live)
51
- - 4.5.2 [EAS Toneout](/.github/docs/docs-general-configurations.md#452---eas-toneout)
52
- 5. [Actions / Integrations](docs/docs-integrations.md)
53
- - 5.1 [Action Events & Wildcards](docs/docs-integrations.md#51---action-events---wildcards)
54
- - 5.2 [Discord Webhooks](/.github/docs/docs-integrations.md#52---discord-webhooks)
55
- - 5.2.1 [Ratelimiting](/.github/docs/docs-integrations.md#521---ratelimiting)
56
- - 5.3 [NTFY Push Notifications](/.github/docs/docs-integrations.md#53---ntfy-push-notifications)
57
- - 5.3.1 [Server Configuration](/.github/docs/docs-integrations.md#531---server-configuration)
58
- - 5.3.2 [Action Configuration](/.github/docs/docs-integrations.md#532---action-configuration)
59
- - 5.4 [Broadcastify Feed Attachments](/.github/docs/docs-integrations.md#54---broadcastify-feed-attachments)
60
- - 5.4.1 [Tag Filtering](/.github/docs/docs-integrations.md#541---tag-filtering)
61
- - 5.5 [Mock EAS Generator](/.github/docs/docs-integrations.md#55---mock-eas-generator)
62
- - 5.5.1 [Linux Prerequisites](/.github/docs/docs-integrations.md#551---linux-prerequisites)
63
- - 5.5.2 [Limitations](/.github/docs/docs-integrations.md#552---limitations)
64
- - 5.6 [Event Archiving](/.github/docs/docs-integrations.md#56---event-archiving)
65
- - 5.6.1 [Raw Text Product Archiving](/.github/docs/docs-integrations.md#561---raw-text-product-archiving)
66
- - 5.6.2 [GeoJSON Archiving](/.github/docs/docs-integrations.md#562---geojson-archiving)
67
- 6. [Listeners](/.github/docs/docs-listeners.md)
68
- - 6.1 [XMPP / NWS Status](/.github/docs/docs-listeners.md#61---xmpp---nws-status)
69
- - 6.2 [Test Products](/.github/docs/docs-listeners.md#62---test-products)
70
- - 6.3 [Expired Products](/.github/docs/docs-listeners.md#63---expired-products)
71
- - 6.4 [Specific Product Types](/.github/docs/docs-listeners.md#64---specific-product-types)
72
- - 6.5 [Filtered Products](/.github/docs/docs-listeners.md#65---filtered-products)
73
- - 6.6 [Cache Updates](/.github/docs/docs-listeners.md#66---cache-updates)
74
- - 6.7 [Tracking Node Updates](/.github/docs/docs-listeners.md#67---tracking-node-updates)
75
- - 6.8 [Storm Prediction Center Products](/.github/docs/docs-listeners.md#68---storm-prediction-center-products)
76
- - 6.9 [Debugging](/.github/docs/docs-listeners.md#69---debugging)
77
- - 6.10 [Logs / Journal](/.github/docs/docs-listeners.md#610---logs---journal)
78
- - 6.11 [Wildcard](/.github/docs/docs-listeners.md#611---wildcard)
79
- 7. [Functions](/.github/docs/docs-functions.md)
80
- - 7.1 [Dynamic Configuration Setter](/.github/docs/docs-functions.md#71---dynamic-configuration-setter)
81
- - 7.2 [Event Geometry Getter](/.github/docs/docs-functions.md#72---event-geometry-getter)
82
- - 7.3 [Random Event Getter](/.github/docs/docs-functions.md#73---random-event-getter)
83
- - 7.4 [Package Information Getter](/.github/docs/docs-functions.md#74---package-information-getter)
84
- - 7.5 [Cleaned Event Getter](/.github/docs/docs-functions.md#75---cleaned-event-getter)
85
- - 7.6 [Management Functions](/.github/docs/docs-functions.md#76---management-functions)
86
- - 7.7 [Creating & Configuring Tracking Nodes](/.github/docs/docs-functions.md#77---creating---configuring-tracking-nodes)
87
- - 7.8 [Event Cache Getter](/.github/docs/docs-functions.md#78---event-cache-getter)
88
- - 7.9 [Tracking Node Cache Getter](/.github/docs/docs-functions.md#79---tracking-node-cache-getter)
89
- - 7.10 [Creating Manual WMO Events](/.github/docs/docs-functions.md#710---creating-manual-wmo-events)
90
- - 7.11 [Database Queries](/.github/docs/docs-functions.md#711---database-queries)
91
- - 7.11.1 [Stanza Query](/.github/docs/docs-functions.md#7111---stanza-query)
92
- - 7.12 [Manual Mock EAS Generator](/.github/docs/docs-functions.md#712---manual-mock-eas-generator)
93
- 8. [Technical Parser Documentation](/.github/docs/docs-technical.md)
94
- - 8.1 [Workflow & Pipeline](/.github/docs/docs-technical.md#81---workflow---pipeline)
95
- - 8.2 [Core Parsing Logic](/.github/docs/docs-technical.md#82---core-parsing-logic)
96
- - 8.2.1 [VTEC](/.github/docs/docs-technical.md#821---vtec)
97
- - 8.2.1.1 [Product Dictionary](/.github/docs/docs-technical.md#8211---product-dictionary)
98
- - 8.2.1.2 [Tracking](/.github/docs/docs-technical.md#8212---tracking)
99
- - 8.2.1.3 [Event Dictionary](/.github/docs/docs-technical.md#8213---event-dictionary)
100
- - 8.2.1.4 [Status Dictionary](/.github/docs/docs-technical.md#8214---status-dictionary)
101
- - 8.2.1.5 [Organization Sender](/.github/docs/docs-technical.md#8215---organization-sender)
102
- - 8.2.1.6 [Expiry Parsing](/.github/docs/docs-technical.md#8216---expiry-parsing)
103
- - 8.2.1.7 [Watch Parsing](/.github/docs/docs-technical.md#8217---watch-parsing)
104
- - 8.2.1.8 [KWNS / SPC](/.github/docs/docs-technical.md#8218---kwns)
105
- - 8.2.2 [UGC](/.github/docs/docs-technical.md#822---ugc)
106
- - 8.2.2.1 [Extracting Headers](/.github/docs/docs-technical.md#8221---extracting-headers)
107
- - 8.2.2.2 [Getting Zones](/.github/docs/docs-technical.md#8222---getting-zones)
108
- - 8.2.2.3 [Extracting Expiry](/.github/docs/docs-technical.md#8223-extracting-expiry)
109
- - 8.2.2.4 [UGC to Zones](/.github/docs/docs-technical.md#8224-ugc-to-zones)
110
- - 8.2.3 [HVTEC](/.github/docs/docs-technical.md#823---hvtec)
111
- - 8.2.3.1 [Flood Severity](/.github/docs/docs-technical.md#8231---flood-severity)
112
- - 8.2.3.2 [Flood Causes](/.github/docs/docs-technical.md#8232---flood-causes)
113
- - 8.2.3.3 [Flood Records](/.github/docs/docs-technical.md#8233---flood-records)
114
- - 8.2.4 [Raw Text](/.github/docs/docs-technical.md#824---raw-text)
115
- - 8.2.4.1 [Extracting Descriptions](/.github/docs/docs-technical.md#8241---extracting-descriptions)
116
- - 8.2.4.2 [Extracting Coordinates](/.github/docs/docs-technical.md#8242---extracting-coordinates)
117
- - 8.2.4.3 [Extracting String Specifics](/.github/docs/docs-technical.md#8243---extracting-string-specifics)
118
- - 8.2.4.4 [Extracting XML](/.github/docs/docs-technical.md#8244---extracting-xml)
119
- - 8.2.5 [Building Properties](/.github/docs/docs-technical.md#825---building-properties)
120
- - 8.2.6 [Building Geometry](/.github/docs/docs-technical.md#826---building-geometry)
121
- - 8.3 [Event Validation & Filtering](/.github/docs/docs-technical.md#83---event-validation---filtering)
122
- - 8.3.1 [Enhanced Event Naming](/.github/docs/docs-technical.md#831---enhanced-event-naming)
123
- - 8.3.2 [Appending Attachments](/.github/docs/docs-technical.md#832---appending-attachments)
124
- - 8.3.3 [Generating Hashes](/.github/docs/docs-technical.md#833---generating-hashes)
125
- - 8.4 [Event & History Management](/.github/docs/docs-technical.md#84---event---history-management)
126
- - 8.5 [Action Workflow](/.github/docs/docs-technical.md#85---action-workflow)
127
- 9. [Workers & Performance](/.github/docs/docs-technical.md#9---workers---performance)
128
- - 9.1 [Setting up Workers](/.github/docs/docs-technical.md#91---setting-up-workers)
129
- - 9.2 [IO/CPU Issues](/.github/docs/docs-technical.md#92---iocpu-issues)
130
- - 9.3 [Recommended Hardware Specifications](/.github/docs/docs-technical.md#93---recommended-hardware-specifications)
131
-
132
-
25
+ * [1.0 - Introduction](#introduction)
26
+ - [1.1 - Package Installation](#package-installation)
27
+ - [1.2 - Usage](#usage)
28
+ * [2.0 - Sources & Attributes](/.github/docs/chapters/sources-and-attributes.md)
29
+ * [2.1 - NOAA Weather Wire Service](/.github/docs/chapters/sources-and-attributes.md#21--noaa-weather-wire-service)
30
+ * [2.1.1 - Basic Settings](/.github/docs/chapters/sources-and-attributes.md#211---basic-settings)
31
+ * [2.1.2 - Connection Settings](/.github/docs/chapters/sources-and-attributes.md#212---connection-settings)
32
+ * [2.1.3 - Stanza Caching & Retention](/.github/docs/chapters/sources-and-attributes.md#213---stanza-caching--retention)
33
+ * [2.1.4 - Stanza Processing & Filtering (Pre-Event Processing)](/.github/docs/chapters/sources-and-attributes.md#214---stanza-processing--filtering-pre-event-processing)
34
+ * [2.2 - National Weather Service API](/.github/docs/chapters/sources-and-attributes.md#22---national-weather-service-api)
35
+ * [2.2.1 - Basic Settings](/.github/docs/chapters/sources-and-attributes.md#221---basic-settings)
36
+ * [2.3 - NOAA Weather Wire Service vs NWS RESTful API](/.github/docs/chapters/sources-and-attributes.md#23---noaa-weather-wire-service-vs-nws-restful-api)
37
+ * [2.4 - Formatting Standards](/.github/docs/chapters/sources-and-attributes.md#24---formatting-standards)
38
+ * [2.4.1 - GeoJSON Format](/.github/docs/chapters/sources-and-attributes.md#241---geojson-format)
39
+ * [2.4.2 - World Meteorological Organization (WMO) Format](/.github/docs/chapters/sources-and-attributes.md#242---world-meteorological-organization-wmo-format)
40
+ * [3.0 - General Configurations](/.github/docs/chapters/general-configurations.md)
41
+ * [3.1 - Core Configurations](/.github/docs/chapters/general-configurations.md#31---core-configurations)
42
+ * [3.1.1 - Timezone Handling](/.github/docs/chapters/general-configurations.md#311---timezone-handling)
43
+ * [3.1.2 - Database Management](/.github/docs/chapters/general-configurations.md#312---database-management)
44
+ * [3.1.3 - Broadcastify Management & Filtering](/.github/docs/chapters/general-configurations.md#313---broadcastify-management--filtering)
45
+ * [3.1.4 - Boundary & Population Data Management](/.github/docs/chapters/general-configurations.md#314---boundary--population-data-management)
46
+ * [3.1.5 - NTFY Mobile Push Notifications](/.github/docs/chapters/general-configurations.md#315---ntfy-mobile-push-notifications)
47
+ * [3.1.6 - Action Settings](/.github/docs/chapters/general-configurations.md#316---action-settings)
133
48
 
134
49
  ## Introduction
50
+ Formally known as *atmosx-nwws-parser*, **@atmosx/event-product-parser** is a TypeScript/JavaScript library designed to parse and ingest NOAA and NWS Weather Text Products. It includes quality of life features such as ingestion tools, graphics generation, audio output, and additional utilities.
135
51
 
136
- Formerly known as `atmosx-nwws-parser`, **`@atmosx/event-product-parser`** is an open-source [TypeScript](https://www.typescriptlang.org/)/[JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) library for ingesting, parsing, caching, and distributing [NOAA](https://www.noaa.gov/) and [NWS](https://www.weather.gov/) weather text products. The library handles event processing within [AtmosphericX](https://atmosxphericx.scriptkitty.cafe), providing a lightweight and extensible foundation for working with [GeoJSON](https://geojson.org/) and [WMO](https://www.wmo.int/) data. Built with simplicity and flexibility in mind, it is easy to integrate, straightforward to extend, and suitable for both standalone applications and larger services.
137
-
138
- With support for the [NOAA Weather Wire Service Open Interface](https://www.weather.gov/nwws/) and the [National Weather Service API](https://www.weather.gov/documentation/services-web-api), the library enables reliable access to a wide range of operational weather products while providing a consistent interface for downstream processing and distribution.
139
-
140
- Beyond core product processing, the library provides support for integrating [Storm Prediction Center](https://www.spc.noaa.gov) graphics, [Broadcastify](https://www.broadcastify.com) feeds, [NTFY](https://ntfy.sh) and [Discord Webhook](https://discord.com/developers/docs/resources/webhook) push notifications, as well as automated emergency audio generation.
141
-
142
- **Note:** *This package is designed specifically for NOAA/NWS weather products and currently supports weather data originating from the United States and its territories.*
143
52
 
53
+ ### Package Installation
144
54
 
145
- ## Installation
146
- **NPM**:
55
+ **Node Package Manager (NPM)**:
147
56
  ```bash
148
57
  $ npm install @atmosx/event-product-parser
149
58
  ```
150
59
 
151
- **PNPM**:
60
+ **Performant Node Package Manager (PNPM)**:
152
61
  ```bash
153
62
  $ pnpm install @atmosx/event-product-parser
154
63
  ```
155
64
 
156
- After installation, import the package using `import` or `require`:
65
+ ### Usage
157
66
 
158
- ```ts
67
+ **Typescript**:
68
+ ```typescript
159
69
  import { Manager } from "@atmosx/event-product-parser"
160
- const client = new Manager({})
70
+ const manager = new Manager({...settings})
161
71
  ```
162
72
 
163
- Using `require`:
164
- ```js
165
- const { Manager } = require("@atmosx/event-product-parser")
166
- const client = new Manager({})
73
+ **Javascript**:
74
+ ```javascript
75
+ const { Manager } = require("@atmosx/event-product-parser");
76
+ const manager = new Manager({...settings});
167
77
  ```