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!

Building (Systems) Software with Nix

https://hondu.co/blog/building-systems-software
1•nelup20•24s ago•0 comments

We use /goal to find bugs in Patch the Planet

https://blog.trailofbits.com/2026/07/28/how-we-use-goal-to-find-bugs-in-patch-the-planet/
2•hardhat•44s ago•0 comments

Cognition Is Acquiring Poke

https://twitter.com/cognition/status/2080311229256540194
2•tosh•3m ago•0 comments

A 99-year-old mathematician unraveled a century-old braid mystery

https://www.scientificamerican.com/article/how-a-99-year-old-mathematician-unraveled-a-century-ol...
1•Anon84•3m ago•1 comments

Una Watch: Garmin watch competitor but repairable, open ecosystem and USB-C

https://unawatch.com/
1•pimterry•3m ago•0 comments

I'd not buy a LG monitor

https://beko.famkos.net/2026/07/27/id-not-buy-a-lg-monitor/
3•speckx•5m ago•0 comments

What to Know About Americans Leaving the U.S. in Record Numbers

https://www.wsj.com/us-news/what-to-know-americans-leaving-the-us-ff296092
1•Anon84•5m ago•1 comments

Universal Gravitational Constant Gets a 10-Year Recheck

https://spectrum.ieee.org/universal-gravitational-constant-nist-schlamminger
1•rbanffy•6m ago•0 comments

The five primitives I run a one-person company on

https://methezone.github.io/solo-operator-playbook/five-primitives.html
2•solo_operator•7m ago•0 comments

Guides to help you learn more about Ruby

https://www.rubyforum.org/t/guides-to-help-you-learn-more-about-ruby/572https://www.rubyforum.org...
2•jvrc•8m ago•0 comments

Coding too fast to collaborate

https://chrisloy.dev/post/2026/07/19/coding-too-fast-to-collaborate
2•chrisloy•9m ago•0 comments

Ballpark – a daily game that measures how overconfident you are

https://tfalgiano.github.io/ballpark/
1•tfalgiano•9m ago•0 comments

Astrallist – Extracts Recipes from Food YouTube Videos

https://www.astrallist.com/
4•kushthedevn•9m ago•3 comments

Is Mythos good at cyber bec it kept hacking Anthropic during training?

https://www.lesswrong.com/posts/QKDoZe6EKhxnFjLWK/is-mythos-good-at-cyber-because-it-kept-hacking...
1•FergusArgyll•10m ago•1 comments

Trump may need to allow CN minerals as US industry struggles to hit '27 deadline

https://www.reuters.com/legal/government/trump-may-need-allow-chinese-minerals-us-industry-strugg...
1•littlexsparkee•11m ago•0 comments

Exp_q(x) keeps every qth term in the power series for exp(x)

https://www.johndcook.com/blog/2026/07/26/exp-q/
1•ibobev•13m ago•0 comments

Permutation Roots

https://www.johndcook.com/blog/2026/07/26/permutation-roots/
1•ibobev•13m ago•0 comments

Show HN: JusTTY – a minimal native macOS terminal powered by libghostty

https://github.com/0x96f/justty
1•0x96f•13m ago•0 comments

Printing floating point numbers in binary

https://www.johndcook.com/blog/2026/07/27/float-binary/
1•ibobev•13m ago•0 comments

Hybrid Comeback Powers Extended Range Electric Vehicles

https://spectrum.ieee.org/extended-range-electric-vehicles
1•rbanffy•14m ago•0 comments

You Aren't Going to Like What Comes After America

https://www.nytimes.com/2026/07/28/opinion/canada-trump-tariffs-south-park.html
1•bwood•14m ago•1 comments

Show HN: The Posting Substack API

https://apisubstack.com/
1•bigmuzzy•15m ago•0 comments

The Apocaloptimist's Dilemma and Song

https://theinterconnecteduniverse.substack.com/p/the-apocaloptimists-dilemma-song
1•nigeljohnfarmer•15m ago•0 comments

Person Opposing Data Center Arrested for Clapping at City Meeting

https://www.404media.co/person-opposing-data-center-arrested-for-clapping-at-city-meeting/
3•Brajeshwar•17m ago•1 comments

Show HN: Reply Better AI – browser AI writing that runs on-device or your Ollama

https://chromewebstore.google.com/detail/reply-better-ai/dpdibbijcljdjnafjnmaljphpkfojlkb
1•wpdevant•17m ago•0 comments

Show HN: Country Draw – draw country borders from memory

https://countrydraw.net
1•alanzhan•18m ago•0 comments

Show HN: Git log for your infrastructure (including your AI agent's config)

https://github.com/statedrift/statedrift
2•ibukunolu•18m ago•0 comments

Show HN: Comber explores your app once, then replays QA checks deterministically

https://codecomber.io
1•RADLAB•19m ago•0 comments

Europe's Ultra-Rich Could Fund a Substantial Part of the EU's Budget

https://www.socialeurope.eu/europes-ultra-rich-could-fund-a-substantial-part-of-the-eus-budget
3•robtherobber•19m ago•0 comments

Hugging Face rebuilt a third of its infrastructure after OpenAI agents ran amok

https://www.theregister.com/ai-and-ml/2026/07/28/openais-agent-siege-forced-significant-rebuild-a...
2•joebuckwilliams•20m ago•0 comments