obs-scheduler 0.1.2 → 0.1.3
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 +9 -1
- package/cli.js +1 -1
- package/config-schema.json +7 -1
- package/dist/index.js +5 -1
- package/examples/config-example.json +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,4 +50,12 @@ Options:
|
|
|
50
50
|
|
|
51
51
|
## Notes
|
|
52
52
|
|
|
53
|
-
`config-schema.json` takes advantage of options and syntax from [`json-editor`](https://github.com/json-editor/json-editor) to allow for easy integration into a visual editor.
|
|
53
|
+
[`config-schema.json`](./config-schema.json) takes advantage of options and syntax from [`json-editor`](https://github.com/json-editor/json-editor) to allow for easy integration into a visual editor.
|
|
54
|
+
|
|
55
|
+
When writing a configuration file, if you'd like to specify the latest version of the JSON schema for easier writing, you can use the following URL:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
https://github.com/edonv/obs-scheduler/releases/latest/download/config-schema.json
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
You can also [click here](https://github.com/edonv/obs-scheduler/releases/latest/download/config-schema.json) to download the latest version of the schema file directly.
|
package/cli.js
CHANGED
package/config-schema.json
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"enabled": {
|
|
31
31
|
"title": "Enabled",
|
|
32
|
-
"description": "Whether or not this event should be considered \"active
|
|
32
|
+
"description": "Whether or not this event should be considered \"active.\"",
|
|
33
33
|
"propertyOrder": 2,
|
|
34
34
|
"type": "boolean",
|
|
35
35
|
"default": true,
|
|
@@ -236,12 +236,18 @@
|
|
|
236
236
|
"additionalProperties": false,
|
|
237
237
|
"properties": {
|
|
238
238
|
"id": {
|
|
239
|
+
"title": "Request ID",
|
|
240
|
+
"description": "An optional unique identifier for the request.",
|
|
239
241
|
"type": "string"
|
|
240
242
|
},
|
|
241
243
|
"type": {
|
|
244
|
+
"title": "Request Type",
|
|
245
|
+
"description": "The type of request.",
|
|
242
246
|
"type": "string"
|
|
243
247
|
},
|
|
244
248
|
"data": {
|
|
249
|
+
"title": "Request Data",
|
|
250
|
+
"description": "The JSON payload of the request.",
|
|
245
251
|
"type": "object"
|
|
246
252
|
}
|
|
247
253
|
}
|
package/dist/index.js
CHANGED
|
@@ -22,9 +22,13 @@ export async function run() {
|
|
|
22
22
|
// Connect to OBS-WS
|
|
23
23
|
const obs = new OBSWebSocket();
|
|
24
24
|
|
|
25
|
+
const urlScheme = password != undefined
|
|
26
|
+
? 'wss'
|
|
27
|
+
: 'ws';
|
|
28
|
+
|
|
25
29
|
try {
|
|
26
30
|
await obs.connect(
|
|
27
|
-
ipAddress ?
|
|
31
|
+
ipAddress ? `${urlScheme}://${ipAddress}` : undefined,
|
|
28
32
|
password,
|
|
29
33
|
);
|
|
30
34
|
} catch (error) {
|