@apocaliss92/nodelink-js 0.4.11 → 0.4.13
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 +24 -0
- package/dist/BaichuanVideoStream-HGPU2MZ3.js +7 -0
- package/dist/{DiagnosticsTools-RNIDFEJK.js → DiagnosticsTools-BQOWJ23L.js} +3 -2
- package/dist/DiagnosticsTools-BQOWJ23L.js.map +1 -0
- package/dist/{chunk-EDLMKBG2.js → chunk-2JNXKT3C.js} +151 -2733
- package/dist/chunk-2JNXKT3C.js.map +1 -0
- package/dist/chunk-C57QV7IL.js +2723 -0
- package/dist/chunk-C57QV7IL.js.map +1 -0
- package/dist/{chunk-HGQ53FB3.js → chunk-R5AJV73A.js} +1348 -47
- package/dist/chunk-R5AJV73A.js.map +1 -0
- package/dist/cli/rtsp-server.cjs +1422 -12
- package/dist/cli/rtsp-server.cjs.map +1 -1
- package/dist/cli/rtsp-server.js +3 -2
- package/dist/cli/rtsp-server.js.map +1 -1
- package/dist/index.cjs +1929 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1051 -172
- package/dist/index.d.ts +965 -46
- package/dist/index.js +547 -85
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
- package/dist/chunk-EDLMKBG2.js.map +0 -1
- package/dist/chunk-HGQ53FB3.js.map +0 -1
- /package/dist/{DiagnosticsTools-RNIDFEJK.js.map → BaichuanVideoStream-HGPU2MZ3.js.map} +0 -0
package/README.md
CHANGED
|
@@ -37,6 +37,30 @@ await api.onSimpleEvent((event) => {
|
|
|
37
37
|
|
|
38
38
|
---
|
|
39
39
|
|
|
40
|
+
## Email Push for Battery Cameras
|
|
41
|
+
|
|
42
|
+
Battery cameras (Argus, Go, …) can't reliably keep a TCP/ONVIF push subscription alive while sleeping. The manager app embeds an SMTP server so the camera can deliver motion alerts via email — the most resilient path for sleep-heavy devices.
|
|
43
|
+
|
|
44
|
+
**Flow**:
|
|
45
|
+
|
|
46
|
+
1. Enable the manager's built-in SMTP server (**Settings → Email Push**, default port `2525`).
|
|
47
|
+
2. Each camera gets a unique recipient `cam-<id>@<domain>` (`emailPush.getCameraAddress`).
|
|
48
|
+
3. From the camera's **Email Push** tab in the manager UI, click **Auto-configure** — the manager pushes the right SMTP server, recipients and 24/7 schedule to the camera via Baichuan (`baichuan.setupEmailPushToManager`).
|
|
49
|
+
4. On motion, the camera sends an email. The manager parses it, classifies the trigger (people/vehicle/motion), saves the snapshot under `${DATA_PATH}/email-push/<cameraId>/`, and emits a synthetic motion event into the same bus used by native Baichuan push — so MQTT, Home Assistant, Frigate, etc. see it transparently.
|
|
50
|
+
|
|
51
|
+
See [documentation/baichuan-api/email.md](./documentation/baichuan-api/email.md) for the full API and [documentation/baichuan-api/time.md](./documentation/baichuan-api/time.md) for the related NTP / DST / system clock setters.
|
|
52
|
+
|
|
53
|
+
**Key tRPC procedures**:
|
|
54
|
+
|
|
55
|
+
- `emailPush.status`, `emailPush.start/stop/restart`, `emailPush.updateSettings`
|
|
56
|
+
- `emailPush.getCameraAddress`, `emailPush.listCameraAddresses`
|
|
57
|
+
- `emailPush.recentEvents`, `emailPush.injectTestEvent`
|
|
58
|
+
- `baichuan.getEmail`, `baichuan.setEmail`, `baichuan.testEmail`
|
|
59
|
+
- `baichuan.getEmailTask`, `baichuan.setEmailTask`
|
|
60
|
+
- `baichuan.setupEmailPushToManager` (one-shot orchestrator)
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
40
64
|
## Contributing: Share Your Camera Fixtures
|
|
41
65
|
|
|
42
66
|
Help improve device support by sharing the API responses from your camera model. The diagnostics dump captures all capability and configuration data (credentials, IPs, and serial numbers are **automatically sanitized**).
|
|
@@ -12,7 +12,8 @@ import {
|
|
|
12
12
|
sampleStreams,
|
|
13
13
|
sanitizeFixtureData,
|
|
14
14
|
testChannelStreams
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2JNXKT3C.js";
|
|
16
|
+
import "./chunk-C57QV7IL.js";
|
|
16
17
|
export {
|
|
17
18
|
captureModelFixtures,
|
|
18
19
|
collectCgiDiagnostics,
|
|
@@ -28,4 +29,4 @@ export {
|
|
|
28
29
|
sanitizeFixtureData,
|
|
29
30
|
testChannelStreams
|
|
30
31
|
};
|
|
31
|
-
//# sourceMappingURL=DiagnosticsTools-
|
|
32
|
+
//# sourceMappingURL=DiagnosticsTools-BQOWJ23L.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|