frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Golang UniFi Network and Protect API CLI and Client

https://github.com/ClifHouck/unified
4•cliffy•1y ago
Ubiquiti recently added HTTPS REST APIs to their Network and Protect applications. While exploring what was available, I came across a pair of interesting endpoints that promised to stream Protect events like detections, motions, doorbell rings, etc. over a Websocket connection.

My UniFi doorbell works great, but I frequently miss the sound of the doorbell because the main chime is far from my workstation, plus I prefer to mostly silence my phone while I'm working. Physical UniFi Chimes are available, but are usually out of stock, and their price seems to keep going up! So my initial motivation was to write enough of a client to enable a doorbell application which would play a sound whenever a "ring" event was emitted by Protect's API.

A few dozen commits later, I found I had built a half decent client and CLI command utility for talking to the Network and Protect APIs. So I'm pleased to announce the initial v0.1.0 release of `unified`:

`unified` is a command line utility (and Golang client) for talking to UniFi Network and Protect APIs.

You can check out the code at: https://github.com/ClifHouck/unified

v0.1.0 supports the following:

UniFi Network API V1 is fully supported as of Network application version "9.1.120".

UniFi Protect API V1 is only partially supported, with the following endpoints supported:

- `/v1/meta/info`

- `/v1/subscribe/devices`: only partial type support.

- `/v1/subscribe/events`

- `/v1/cameras/`

- `/v1/cameras/{id}`

But I'm committed to working towards full Protect API V1 support.

I think there's a lot of potential for interesting uses of these APIs. Hopefully someone besides me finds this useful.

Disclaimer: This client is not in any way affiliated with Ubiquiti. I do not take any responsibility for any harm that may come to your device(s) by utilizing this client. Use at your own risk!

Are You Recommended by AI?

https://www.mentionedby.world/
1•aykhanstoic•1m ago•0 comments

Show HN: Import the HN Home to a reading queue with clean reader view and TL;DR

https://readplace.com/import?mode=from-url
2•fagnerbrack•5m ago•1 comments

Reimagining Systems Thinking as Cybersystemic Researching

https://stream.syscoi.com/2025/12/01/reimagining-systems-thinking-as-cybersystemic-researching-an...
2•andsoitis•5m ago•0 comments

Grok 4.5, based on our 1.5T V9 foundation model, with Cursor data added in su

https://twitter.com/elonmusk/status/2071184354756477041
3•cyrc•9m ago•0 comments

The shift from browsing to commanding: Autonomous web agents in action

https://www.fognitix.com/
2•fognitix•9m ago•2 comments

Five Months in Munich: Revisiting 1991 Without Erasing Decades That Scaled It

https://akmaier.substack.com/p/five-months-in-munich-revisiting
2•felixbraun•10m ago•0 comments

Was Ozempic discovered thanks to "silly" research?

https://www.oscillator.blog/p/was-ozempic-discovered-thanks-to
3•salonium_•10m ago•0 comments

The vibration of the pager has a sound all its own

https://www.notyouremergency.com/triage-intro
2•mooreds•10m ago•0 comments

32BJ Health Fund and Northwell Direct announce direct health care contract

https://www.northwell.edu/news/the-latest/northwell-direct-32bj-largest-direct-health-care-contra...
2•mooreds•11m ago•0 comments

How should founders choose the right tech stack for a startup website?

https://moonsofts.net/
2•MoonSofts•12m ago•0 comments

America's largest companies have no simple way to report security flaws

https://this.weekinsecurity.com/dozens-of-americas-largest-companies-have-no-simple-way-to-report...
2•mooreds•12m ago•0 comments

Installing SerenityOS on My Old ThinkPad T60

https://btxx.org/posts/serenity-t60/
3•jandeboevrie•13m ago•0 comments

Forensic tools as instruments of repression: Cellebrite use in Russia

https://andreafortuna.org/2026/06/28/cellebrite-russia-pivovarov/
2•iamnothere•13m ago•0 comments

"Quality is downstream from caring"

https://graybeard.ing/quality-is-downstream-from-caring/
2•rglover•13m ago•0 comments

Bjorn Lomborg – 'An Inconvenient Truth' 20 Years Later

https://signalscv.com/2026/06/bjorn-lomborg-an-inconvenient-truth-20-years-later/
2•RickJWagner•13m ago•1 comments

CATL online store for direct sales of energy storage to small/medium customers

https://carnewschina.com/2026/06/26/catl-launches-online-store-for-direct-sales-of-energy-storage...
2•DamonHD•14m ago•0 comments

Ask HN: Is Hacker News selling your email?

3•tyleo•17m ago•2 comments

Clarity, Accountability, and Care – The Three Conditions That Make Teams Work

https://nmcqueen.substack.com/p/clarity-accountability-and-care
2•backlit4034•19m ago•0 comments

Cachebox, a small cache server with TTLs, dogpile locks, tags and bounded memory

https://github.com/smarzola/cachebox
2•smarzola•22m ago•0 comments

California's landmark anti-plastics law sparks anger as 17 states move to sue

https://www.theguardian.com/environment/2026/jun/26/california-single-use-plastic-law
4•andsoitis•22m ago•0 comments

Show HN: A REPL for browsers that agents love

https://fuckui.com
2•keepamovin•24m ago•1 comments

The dordolec, the 'evil eye' and superstition in Albania

https://michaelharrison.org.uk/2013/05/the-dordolec-the-evil-eye-and-superstition-in-albania/
2•jruohonen•24m ago•0 comments

The Fake Pilot (2010)

https://www.news.com.au/travel/travel-updates/fake-pilot-thomas-salme-says-passengers-were-never-...
3•redbell•25m ago•0 comments

The making of the digital twin of the Panorama of the Battle of Murten

https://www.epfl.ch/labs/emplus/projects/terapixelpanorama/murten-panorama-digital-twin-scanning-...
3•ano-ther•25m ago•0 comments

GPT-5.6: The System Card

https://thezvi.substack.com/p/gpt-56-the-system-card
2•7777777phil•26m ago•0 comments

City counsellors under fire for AI Orange Line map [video]

https://www.youtube.com/watch?v=MmLikQaka8E
2•functionmouse•26m ago•0 comments

'Crypto vs. community': local US lenders join forces to fight 'stablecoins' law

https://www.theguardian.com/technology/2026/jun/28/crypto-v-community-local-lenders-fight-stablec...
2•biorach•27m ago•0 comments

Clean GitHub repo tricks AI coding agents into running malware

https://www.bleepingcomputer.com/news/security/clean-github-repo-tricks-ai-coding-agents-into-run...
2•Brajeshwar•29m ago•0 comments

What is your most fascinating tech used in Formula1(F1)?

2•adithyaharish•30m ago•0 comments

Michigan bill would bar employers from requiring after-hours coms with workers

https://www.cbsnews.com/detroit/news/workplace-boundaries-act-employees-after-hours/
11•cebert•31m ago•1 comments