@atmosx/event-product-parser 3.0.52 → 3.0.54
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 → .github/README.md} +36 -95
- package/{SUPPORTED_EVENTS.md → .github/SUPPORTED_EVENTS.md} +3 -3
- package/dist/cjs/index.cjs +108 -36
- package/dist/esm/index.mjs +108 -36
- package/package.json +1 -1
- package/src/@building/building.attachments.ts +3 -3
- package/src/@dictionaries/dictionaries.awips.ts +3 -3
- package/src/@manager/manager.rmEvent.ts +11 -9
- package/src/@manager/manager.updateListener.ts +39 -17
- package/src/@modules/@utilities/utilities.createHttp.ts +13 -0
- package/src/@parsers/@text/{text.getEmbed.ts → text.getEmbedText.ts} +1 -1
- package/src/@parsers/@text/text.getStringText.ts +54 -0
- package/src/@types/type.listener.ts +15 -9
- package/src/@types/type.settings.ts +9 -0
- package/src/bootstrap.ts +10 -1
- package/testing/init.js +91 -0
- package/test.js +0 -93
- /package/{CODE_OF_CONDUCT.md → .github/CODE_OF_CONDUCT.md} +0 -0
- /package/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +0 -0
- /package/{LICENSE → .github/LICENSE} +0 -0
- /package/{SECURITY.md → .github/SECURITY.md} +0 -0
package/src/bootstrap.ts
CHANGED
|
@@ -21,7 +21,7 @@ import path from 'path'
|
|
|
21
21
|
import { EventEmitter } from 'node:events';
|
|
22
22
|
|
|
23
23
|
export const bootstrap = {
|
|
24
|
-
version: `3.0.
|
|
24
|
+
version: `3.0.54`,
|
|
25
25
|
isReady: true,
|
|
26
26
|
ratelimits: {},
|
|
27
27
|
session_xmpp: null,
|
|
@@ -80,6 +80,15 @@ export const bootstrap = {
|
|
|
80
80
|
BroadcastifyDatabase: `https://scriptkitty.cafe/ftp/@atmosphericx/assets/broadcastify.json`,
|
|
81
81
|
BroadcastifyTags: [`Ham`, `Air`, `Fire`, `Public Safety`, `Weather`, `EMS`, `Police`, `Rail`]
|
|
82
82
|
},
|
|
83
|
+
NotifyServer: {
|
|
84
|
+
Enabled: false,
|
|
85
|
+
Server: `https://ntfy.sh`,
|
|
86
|
+
Attachments: null,
|
|
87
|
+
Credentials: {
|
|
88
|
+
Username: null,
|
|
89
|
+
Password: null
|
|
90
|
+
}
|
|
91
|
+
},
|
|
83
92
|
ListenerSettings: [],
|
|
84
93
|
GlobalSettings: {
|
|
85
94
|
EventManagement: true,
|
package/testing/init.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
const { Manager } = require(`../dist/cjs/index.cjs`)
|
|
2
|
+
|
|
3
|
+
const Client = new Manager({
|
|
4
|
+
Database: `event-product-parser.db`,
|
|
5
|
+
EnableWireService: false,
|
|
6
|
+
EnableJournal: true,
|
|
7
|
+
EnableDebugging: false,
|
|
8
|
+
NOAAWeatherWireServiceSettings: {
|
|
9
|
+
ReconnectionSettings: {
|
|
10
|
+
Enabled: true,
|
|
11
|
+
ReconnectionInterval: 60,
|
|
12
|
+
},
|
|
13
|
+
CredentialSettings: {
|
|
14
|
+
Username: `username`,
|
|
15
|
+
Password: `password`,
|
|
16
|
+
Nickname: "nickname (@atmosx/event-product-parser/3.0)",
|
|
17
|
+
},
|
|
18
|
+
CacheSettings: {
|
|
19
|
+
Enabled: true,
|
|
20
|
+
MaxDatabaseHistory: 50000,
|
|
21
|
+
MaxRetentionHistory: 1500,
|
|
22
|
+
},
|
|
23
|
+
StanzaSettings: {
|
|
24
|
+
DisableUGC: false,
|
|
25
|
+
DisableVTEC: false,
|
|
26
|
+
DisableText: false,
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
NationalWeatherServiceSettings: {
|
|
30
|
+
CallbackInterval: 30,
|
|
31
|
+
EventsEndpoint: `https://api.weather.gov/alerts/active`,
|
|
32
|
+
},
|
|
33
|
+
BroadcastifySettings: {
|
|
34
|
+
BroadcastifyAttachments: true,
|
|
35
|
+
BroadcastifyDatabase: `https://scriptkitty.cafe/ftp/@atmosphericx/assets/broadcastify.json`,
|
|
36
|
+
BroadcastifyTags: [`Public Safety`, `Amateur Radio`, `Other`, `Rail`, `Aviation`, `Marine`, `Disaster Event`, `Special Event`]
|
|
37
|
+
},
|
|
38
|
+
NotifyServer: {
|
|
39
|
+
Enabled: false,
|
|
40
|
+
Server: "https://ntfy.scriptkitty.cafe",
|
|
41
|
+
Attachments: "https://scriptkitty.cafe/ftp/@bucket/EAS/encoded",
|
|
42
|
+
Credentials: {
|
|
43
|
+
Username: "username",
|
|
44
|
+
Password: "password"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
ListenerSettings: [
|
|
48
|
+
{
|
|
49
|
+
Events: ["*Extreme Heat Warning*"],
|
|
50
|
+
NotificationServer: {
|
|
51
|
+
Enabled: false,
|
|
52
|
+
Topic: "heat-warnings",
|
|
53
|
+
Priority: 5
|
|
54
|
+
},
|
|
55
|
+
Uploads: {
|
|
56
|
+
EAS: true,
|
|
57
|
+
File: true,
|
|
58
|
+
JSON: true
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
GlobalSettings: {
|
|
63
|
+
EventManagement: true,
|
|
64
|
+
BetterEventNames: true,
|
|
65
|
+
DisableGeometryParsing: false,
|
|
66
|
+
UseShapefileCoordinates: true,
|
|
67
|
+
SPCWatchesOnly: true,
|
|
68
|
+
ShapefileSkipPoints: 0,
|
|
69
|
+
NodeTTL: 60,
|
|
70
|
+
NodeMinDistance: 125,
|
|
71
|
+
EventFiltering: {
|
|
72
|
+
ListeningEvents: [
|
|
73
|
+
"*Warning*"
|
|
74
|
+
],
|
|
75
|
+
ListeningICAO: [],
|
|
76
|
+
ListeningUGC: [],
|
|
77
|
+
ListeningStates: [],
|
|
78
|
+
IgnoredICAO: [],
|
|
79
|
+
IgnoredEvents: [],
|
|
80
|
+
NodeLocationFiltering: false,
|
|
81
|
+
IgnoreTestProducts: true,
|
|
82
|
+
},
|
|
83
|
+
ArchiveSettings: {
|
|
84
|
+
TTL: 30,
|
|
85
|
+
EventDirectory: `@bucket/ParsedProducts`,
|
|
86
|
+
TextDirectory: `@bucket/RawTextProducts`,
|
|
87
|
+
EasDirectory: `@bucket/EAS`,
|
|
88
|
+
EasToneout: `eas-toneout.wav`,
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
})
|
package/test.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
const { Manager } = require(`../dist/cjs/index.cjs`)
|
|
2
|
-
|
|
3
|
-
const Client = new Manager({
|
|
4
|
-
Database: `shapefiles.db`,
|
|
5
|
-
EnableWireService: false,
|
|
6
|
-
EnableJournal: true,
|
|
7
|
-
EnableDebugging: false,
|
|
8
|
-
NOAAWeatherWireServiceSettings: {
|
|
9
|
-
ReconnectionSettings: {
|
|
10
|
-
Enabled: true,
|
|
11
|
-
ReconnectionInterval: 60,
|
|
12
|
-
},
|
|
13
|
-
CredentialSettings: {
|
|
14
|
-
Username: `username`,
|
|
15
|
-
Password: `password`,
|
|
16
|
-
Nickname: "nickname (@atmosx/event-product-parser/3.0)",
|
|
17
|
-
},
|
|
18
|
-
CacheSettings: {
|
|
19
|
-
Enabled: true,
|
|
20
|
-
MaxDatabaseHistory: 5000,
|
|
21
|
-
MaxRetentionHistory: 555,
|
|
22
|
-
},
|
|
23
|
-
StanzaSettings: {
|
|
24
|
-
DisableUGC: false,
|
|
25
|
-
DisableVTEC: false,
|
|
26
|
-
DisableText: false,
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
NationalWeatherServiceSettings: {
|
|
30
|
-
CallbackInterval: 30,
|
|
31
|
-
EventsEndpoint: `https://api.weather.gov/alerts/active`,
|
|
32
|
-
},
|
|
33
|
-
BroadcastifySettings: {
|
|
34
|
-
BroadcastifyAttachments: true,
|
|
35
|
-
BroadcastifyTags: [`Public Safety`, `Amateur Radio`, `Other`, `Rail`, `Aviation`, `Marine`, `Disaster Event`, `Special Event`]
|
|
36
|
-
},
|
|
37
|
-
ListenerSettings: [
|
|
38
|
-
{
|
|
39
|
-
events: [`*Thunderstorm Warning*`, `* Watch`],
|
|
40
|
-
webhook: {
|
|
41
|
-
enabled: true,
|
|
42
|
-
destination: "https://discord.com/api/XXXXXXXXXX/XXXXXXXXXXX",
|
|
43
|
-
title: "AtmosphericX - (Thunderstorm Warnings and Watches)",
|
|
44
|
-
message: "<@&XXXXXXXXXXXXXXXXXXXXX>",
|
|
45
|
-
ratelimit: 1
|
|
46
|
-
},
|
|
47
|
-
uploads: {
|
|
48
|
-
eas: true,
|
|
49
|
-
file: true,
|
|
50
|
-
event: true
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
GlobalSettings: {
|
|
55
|
-
EventManagement: true,
|
|
56
|
-
BetterEventNames: true,
|
|
57
|
-
DisableGeometryParsing: false,
|
|
58
|
-
UseShapefileCoordinates: true,
|
|
59
|
-
SPCWatchesOnly: true,
|
|
60
|
-
ShapefileSkipPoints: 0,
|
|
61
|
-
NodeTTL: 60,
|
|
62
|
-
NodeMinDistance: 120,
|
|
63
|
-
EventFiltering: {
|
|
64
|
-
ListeningEvents: [
|
|
65
|
-
"*Severe Thunderstorm Warning*",
|
|
66
|
-
"*Blizzard*", "*Ice Storm*", "*Winter Storm*", "*Snow Squall*",
|
|
67
|
-
"Tornado Emergency", "*Tornado Warning*",
|
|
68
|
-
"Special Weather Statement", "Marine Weather Statement",
|
|
69
|
-
"*Tsunami*", "*Hurricane*", "*Tropical Storm*", "*Special Marine*",
|
|
70
|
-
"*Flash Flood Warning*", "*Flash Flood Watch*", "*Flash Flood Advisory*",
|
|
71
|
-
"Mesoscale Discussion",
|
|
72
|
-
"SPC Day 1 Outlook", "SPC Day 2 Outlook", "SPC Day 3 Outlook",
|
|
73
|
-
"PDS Tornado Watch", "Tornado Watch", "Severe Thunderstorm Watch", "Flash Flood Watch", "PDS Severe Thunderstorm Watch",
|
|
74
|
-
"*Administrative*", "National Weather Service Policy",
|
|
75
|
-
"Fire Weather Warning", "Fire Weather Watch", "Fire Weather Advisory",
|
|
76
|
-
],
|
|
77
|
-
ListeningICAO: [`KLOT`],
|
|
78
|
-
IgnoredICAO: [],
|
|
79
|
-
IgnoredEvents: [],
|
|
80
|
-
ListeningUGC: [`WIC001`],
|
|
81
|
-
ListeningStates: [`MO`, `IA`],
|
|
82
|
-
NodeLocationFiltering: false,
|
|
83
|
-
IgnoreTestProducts: true,
|
|
84
|
-
},
|
|
85
|
-
ArchiveSettings: {
|
|
86
|
-
TTL: 600,
|
|
87
|
-
EventDirectory: `Storage/EventProducts`,
|
|
88
|
-
TextDirectory: `Storage/TextProducts`,
|
|
89
|
-
EasDirectory: `Storage/EasScenarios`,
|
|
90
|
-
EasToneout: `tone.wav`,
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|