![]() |
VOOZH | about |
dotnet add package CasCap.Api.DoorBird --version 0.10.22
NuGet\Install-Package CasCap.Api.DoorBird -Version 0.10.22
<PackageReference Include="CasCap.Api.DoorBird" Version="0.10.22" />
<PackageVersion Include="CasCap.Api.DoorBird" Version="0.10.22" />Directory.Packages.props
<PackageReference Include="CasCap.Api.DoorBird" />Project file
paket add CasCap.Api.DoorBird --version 0.10.22
#r "nuget: CasCap.Api.DoorBird, 0.10.22"
#:package CasCap.Api.DoorBird@0.10.22
#addin nuget:?package=CasCap.Api.DoorBird&version=0.10.22Install as a Cake Addin
#tool nuget:?package=CasCap.Api.DoorBird&version=0.10.22Install as a Cake Tool
A .NET library that integrates with a DoorBird IP door station via its local LAN API, captures door events (doorbell, motion, RFID), and fans them out to a configurable set of sinks for storage and streaming.
dotnet add package CasCap.Api.DoorBird
The library is built around one background service that forms the core pipeline:
DoorBirdMonitorBgService – Acquires a distributed lock, waits for the device health check to pass, then polls the DoorBird LAN API every 60 seconds. Each door event (doorbell press, motion detection, RFID scan) is captured as a DoorBirdEvent containing the event type, timestamp, and optionally an associated JPEG image snapshot. The event is then dispatched in parallel to every registered IEventSink<DoorBirdEvent> implementation.
A REST API (DoorBirdController) exposes real-time photo, MJPEG video stream, relay trigger, and light-on endpoints, as well as event callbacks for push notifications from the device.
Blob upload is handled by BlobProcessorBgService in the project, which reads from the internal BlobStatics.UploadQueue channel and uploads each image blob to Azure Blob Storage via IDoorBirdAzBlobStorageService.
| Sink | Description |
|---|---|
| Console | Logs every event via the .NET logger (Debug level) |
| Azure Blob Storage | Enqueues JPEG image bytes to BlobStatics.UploadQueue for asynchronous upload |
flowchart TD
DEVICE["DoorBird Device\n(LAN REST API)"]
subgraph Monitor["DoorBirdMonitorBgService (every 60 s)"]
LOCK["Acquire distributed lock\n(RedLock)"]
HEALTH["Await connection\nhealth check"]
POLL["Poll device API"]
BUILD["Build DoorBirdEvent\n(EventId, EventType, Timestamp, JPEG bytes)"]
DISPATCH["Fan-out to all sinks\nTask.WhenAll"]
end
SINK_CONSOLE["Console Sink\n(logger)"]
SINK_AZBLOB["Azure Blob Sink\n(enqueue to UploadQueue)"]
UPLOAD_QUEUE["BlobStatics.UploadQueue\n(in-process channel)"]
subgraph BlobProcessor["BlobProcessorBgService (Sinks)"]
UPLOAD["Upload JPEG to\nAzure Blob Storage"]
end
AZURE_BLOB["Azure Blob Storage"]
CLIENT["DoorBirdClientService\n(getSession, getImage, lightOn, triggerRelay, …)"]
DEVICE -->|HTTP REST| CLIENT
CLIENT --> POLL
LOCK --> HEALTH --> POLL --> BUILD --> DISPATCH
DISPATCH --> SINK_CONSOLE
DISPATCH --> SINK_AZBLOB
SINK_AZBLOB --> UPLOAD_QUEUE
UPLOAD_QUEUE --> UPLOAD --> AZURE_BLOB
{
"CasCap": {
"DoorBirdConfig": {
"BaseAddress": "http://192.168.1.248",
"Username": "<device-username>",
"Password": "<device-password>",
"DoorControllerID": "<controller-id>",
"DoorControllerRelayID": "<relay-id>",
"AzureBlobStorageConnectionString": "https://<account>.blob.core.windows.net",
"AzureBlobStorageContainerName": "doorbird",
"AzureTableStorageConnectionString": "https://<account>.table.core.windows.net",
"Sinks": {
"AvailableSinks": {
"Console": { "Enabled": true },
"AzBlob": { "Enabled": true }
}
}
}
}
}
{
"CasCap": {
"DoorBirdConfig": {
"IsEnabled": true,
"BaseAddress": "http://192.168.1.248",
"Username": "<device-username>",
"Password": "<device-password>",
"DoorControllerID": "<controller-id>",
"DoorControllerRelayID": "<relay-id>",
"HealthCheckUri": "bha-api/info.cgi",
"HealthCheck": "Readiness",
"PollingIntervalMs": 60000,
"ConnectionPollingDelayMs": 1000,
"ConnectionLogEscalationInterval": 10,
"AzureBlobStorageConnectionString": "https://<account>.blob.core.windows.net",
"AzureBlobStorageContainerName": "doorbird",
"HealthCheckAzureBlobStorage": "None",
"AzureTableStorageConnectionString": "https://<account>.table.core.windows.net",
"HealthCheckAzureTableStorage": "None",
"Sinks": {
"AvailableSinks": {
"Console": { "Enabled": true },
"Memory": { "Enabled": true },
"Metrics": { "Enabled": true },
"AzureTables": { "Enabled": true },
"AzBlob": { "Enabled": true },
"Redis": {
"Enabled": true,
"Settings": {
"SnapshotValues": "doorbell,motionsensor,rfid"
}
},
"SignalR": { "Enabled": true }
}
}
}
}
}
This project is released under . See the file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on CasCap.Api.DoorBird:
| Package | Downloads |
|---|---|
|
CasCap.Api.DoorBird.Sinks
Pluggable event sink implementations (Redis, Azure Tables, Azure Blob Storage) for the CasCap.Api.DoorBird door station integration library. |
This package is not used by any popular GitHub repositories.