VOOZH about

URL: https://www.nuget.org/packages/CasCap.Api.DoorBird/

⇱ NuGet Gallery | CasCap.Api.DoorBird 0.10.22




👁 Image
CasCap.Api.DoorBird 0.10.22

Prefix Reserved
dotnet add package CasCap.Api.DoorBird --version 0.10.22
 
 
NuGet\Install-Package CasCap.Api.DoorBird -Version 0.10.22
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CasCap.Api.DoorBird" Version="0.10.22" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CasCap.Api.DoorBird" Version="0.10.22" />
 
Directory.Packages.props
<PackageReference Include="CasCap.Api.DoorBird" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CasCap.Api.DoorBird --version 0.10.22
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CasCap.Api.DoorBird, 0.10.22"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CasCap.Api.DoorBird@0.10.22
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CasCap.Api.DoorBird&version=0.10.22
 
Install as a Cake Addin
#tool nuget:?package=CasCap.Api.DoorBird&version=0.10.22
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

CasCap.Api.DoorBird

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.

Installation

dotnet add package CasCap.Api.DoorBird

Purpose

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.

Sinks

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

Event Flow

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

Configuration Examples

Minimal

{
 "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 }
 }
 }
 }
 }
}

Fully configured

{
 "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 }
 }
 }
 }
 }
}

License

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

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.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.10.22 72 6/14/2026
0.10.21 74 6/12/2026
0.10.20 109 6/10/2026
0.10.19 112 5/26/2026
0.10.18 119 5/15/2026
0.10.14 135 5/8/2026
0.10.11 123 4/24/2026
0.10.10 115 4/24/2026