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!

ECO: An LLM-Driven Efficient Code Optimizer for Warehouse Scale Computers

https://arxiv.org/abs/2503.15669
2•bone_tag•2m ago•0 comments

Individual locomotor bias drives counterclockwise motion in pedestrian crowds

https://www.nature.com/articles/s41467-026-73713-w
2•js2•10m ago•1 comments

How to build a landing page with AI, no code [video]

https://www.youtube.com/watch?v=06azxD5FOo8
3•nongquy•11m ago•0 comments

OpenAI considers drastic price cuts, anticipating war for users with Anthropic

https://www.reuters.com/technology/openai-considers-drastic-price-cuts-anticipating-war-users-wit...
5•theanonymousone•15m ago•0 comments

Ask HN: What coding agents are you using?

2•linzhangrun•16m ago•1 comments

A Tough Year

https://littlefeelings.substack.com/p/a-tough-year
2•martialg•18m ago•0 comments

Piper: A Programmable Distributed Training System

https://syfi.cs.washington.edu/blog/2026-06-05-piper/
2•matt_d•20m ago•0 comments

Teardown Confirms the Trump Phone Is a Gold-Painted HTC U24 Pro

https://www.ifixit.com/News/117789/teardown-confirms-the-trump-phone-is-a-gold-painted-htc-u24-pro
5•jerlam•21m ago•0 comments

Show HN: Hacker's Guides

https://github.com/jeffshrager/HackersGuides
2•abrax3141•22m ago•0 comments

Canada proposes teen social media ban – with workaround for tech firms

https://www.bbc.com/news/articles/c872x47gnyjo
5•grugagag•24m ago•0 comments

Sam Altman is starting to panic [video][8mins]

https://www.youtube.com/watch?v=lwjVjD3oQJg
4•Bender•25m ago•0 comments

Initial impressions of Claude Fable 5

https://simonwillison.net/2026/Jun/9/claude-fable-5/
4•gillytech•26m ago•1 comments

The Fall and Rise of Reginald Perrin (1976)

https://archive.org/details/reginaldperrin
2•petethomas•29m ago•0 comments

Scarcity is driving AI innovation outside Silicon Valley

https://restofworld.org/2026/scarcity-is-driving-ai-innovation-outside-silicon-valley/
2•colinprince•33m ago•0 comments

China Lures Foreign Patients with Cutting-Edge, Cheap Medical Care

https://www.bloomberg.com/news/features/2026-06-10/china-s-medical-tourism-boom-draws-foreign-pat...
3•polrjoy•33m ago•0 comments

Khronos Announces glTF Gaussian Splatting Extension

https://www.khronos.org/news/press/gltf-gaussian-splatting-press-release
3•lairv•37m ago•1 comments

Teenagers Stayed Overnight at Their School and Found Hidden Ancient Roman Ruins

https://www.smithsonianmag.com/smart-news/these-italian-teenagers-stayed-overnight-at-their-schoo...
3•thunderbong•39m ago•0 comments

Stretching a point: the economics of elastic infrastructure

https://ably.com/blog/stretching-a-point-economics-of-elastic-infrastructure
2•b-man•40m ago•0 comments

An Information-Theoretic Approach to the Computational Complexity of TSP

https://zenodo.org/login/?next=%2Fme%2Fuploads%3Fq%3D%26f%3Dshared_with_me%25253Afalse%26l%3Dlist...
2•Dori_Lee•40m ago•0 comments

The theory taking the rich by storm: China funds data center haters

https://www.npr.org/2026/06/10/nx-s1-5844328/us-china-data-centers-foreign-influence
4•beedeebeedee•43m ago•0 comments

We Used Agentic AI to Fix Kong Gateway's Flakiest Tests

https://konghq.com/blog/engineering/how-we-used-agentic-ai-to-fix-kong-gateways-flakiest-tests
3•dndx•53m ago•0 comments

Why are there an increasing number of outright unhinged high karma users on HN?

7•MichaelZuo•54m ago•10 comments

Shrubbery syntax for Racket

https://docs.racket-lang.org/shrubbery/index.html
2•azhenley•56m ago•0 comments

Wanted: Dead or Alive. Google Search Console

https://medium.com/@thesuperrepemail/wanted-dead-or-alive-google-search-console-17a2ed7424eb
3•mssblogs•58m ago•0 comments

Old Violins (1910)

https://www.gutenberg.org/cache/epub/78831/pg78831-images.html
3•petethomas•1h ago•0 comments

Bread and Cake Baking (1877)

https://www.gutenberg.org/cache/epub/78839/pg78839-images.html
2•petethomas•1h ago•0 comments

Nostalgia Is New for Some

https://www.marginpoints.com/essays/nostalgia-is-new-for-some
2•historian1066•1h ago•0 comments

Corca raised a $7.8M seed led by NEA, NVenture to democratize math for everyone

https://twitter.com/Corca_math/status/2064791873676288150
3•OxfordCommand•1h ago•0 comments

Brit workers waste nearly six hours a week 'botsitting'

https://www.theregister.com/ai-and-ml/2026/06/10/brit-workers-waste-nearly-six-hours-a-week-botsi...
5•Bender•1h ago•0 comments

OpenAI Considers Drastic Price Cuts, Anticipating War for Users with Anthropic

https://www.wsj.com/tech/ai/openai-considers-drastic-price-cuts-anticipating-war-for-users-with-a...
9•jrpelkonen•1h ago•0 comments