@atmosx/event-product-parser 3.0.46 → 3.0.47
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/README.md +12 -1
- package/dist/cjs/index.cjs +381 -206
- package/dist/esm/index.mjs +381 -206
- package/dist/index.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/package.json +1 -1
- package/src/@building/building.attachments.ts +47 -6
- package/src/@building/building.properties.ts +1 -0
- package/src/@building/building.signature.ts +1 -1
- package/src/@core/core.createEvent.ts +1 -0
- package/src/@dictionaries/dictionaries.cancellation.ts +1 -0
- package/src/@dictionaries/dictionaries.expressions.ts +1 -0
- package/src/@dictionaries/dictionaries.states.ts +72 -0
- package/src/@events/events.api.ts +1 -0
- package/src/@manager/manager.updateListener.ts +105 -66
- package/src/@modules/@database/database.broadcastify.ts +67 -0
- package/src/@modules/@database/database.init.ts +14 -1
- package/src/@modules/@database/database.shapefiles.ts +1 -4
- package/src/@modules/@utilities/utilities.createHttp.ts +56 -47
- package/src/@modules/@utilities/utilities.setCronSchedule.ts +1 -0
- package/src/@modules/@xmpp/xmpp.xReconnect.ts +1 -1
- package/src/@parsers/@text/text.getEmbed.ts +0 -2
- package/src/@types/type.event.ts +1 -1
- package/src/@types/type.listener.ts +1 -1
- package/src/@types/type.properties.ts +1 -0
- package/src/@types/type.settings.ts +7 -1
- package/src/bootstrap.ts +7 -1
- package/test.js +12 -4
- /package/src/@dictionaries/{dictionaries.test.ts → dictionaries.testing.ts} +0 -0
package/README.md
CHANGED
|
@@ -51,6 +51,10 @@ const Client = new Manager({
|
|
|
51
51
|
CallbackInterval: 30,
|
|
52
52
|
EventsEndpoint: `https://api.weather.gov/alerts/active`,
|
|
53
53
|
},
|
|
54
|
+
BroadcastifySettings: {
|
|
55
|
+
BroadcastifyAttachments: true,
|
|
56
|
+
BroadcastifyTags: [`Public Safety`, `Amateur Radio`, `Other`, `Rail`, `Aviation`, `Marine`, `Disaster Event`, `Special Event`]
|
|
57
|
+
},
|
|
54
58
|
ListenerSettings: [
|
|
55
59
|
{
|
|
56
60
|
events: [`*Thunderstorm Warning*`, `* Watch`],
|
|
@@ -63,7 +67,8 @@ const Client = new Manager({
|
|
|
63
67
|
},
|
|
64
68
|
uploads: {
|
|
65
69
|
eas: true,
|
|
66
|
-
file: true
|
|
70
|
+
file: true,
|
|
71
|
+
event: true
|
|
67
72
|
}
|
|
68
73
|
}
|
|
69
74
|
],
|
|
@@ -107,6 +112,7 @@ const Client = new Manager({
|
|
|
107
112
|
},
|
|
108
113
|
ArchiveSettings: {
|
|
109
114
|
TTL: 600,
|
|
115
|
+
EventDirectory: `Storage/EventProducts`,
|
|
110
116
|
TextDirectory: `Storage/TextProducts`,
|
|
111
117
|
EasDirectory: `Storage/EasScenarios`,
|
|
112
118
|
EasToneout: `tone.wav`,
|
|
@@ -129,6 +135,11 @@ const Client = new Manager({
|
|
|
129
135
|
- **CallbackInterval**: The interval at which the parser will check for new alerts from the National Weather Service API.
|
|
130
136
|
- **EventsEndpoint**: The URL that directs to the API.
|
|
131
137
|
|
|
138
|
+
## BroadcastifySettings
|
|
139
|
+
- **BroadcastifyAttachments**: Whether to enable broadcastify attachments for events.
|
|
140
|
+
- **BroadcastifyDatabase**: The download url to point to for the collection of broadcastify feeds. (Stored locally once downloaded)
|
|
141
|
+
- **BroadcastifyTags**: An array of tags to filter broadcastify feeds. (`Public Safety`, `Amateur Radio`, `Other`, `Rail`, `Aviation`, `Marine`, `Disaster Event`, `Special Event`)
|
|
142
|
+
|
|
132
143
|
### ListenerSettings
|
|
133
144
|
- **events**: An array of event types that will trigger the listener when they are received by the parser. If this array is empty, the listener will be triggered for all events.
|
|
134
145
|
|