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!

The Touch of God

http://bryanhu.com/blog/posts/the-touch-of-god/
1•thatxliner•33s ago•0 comments

How Musk's tactics left investors clamoring for SpaceX stock and ignoring risks

https://www.reuters.com/legal/transactional/how-musks-tactics-left-investors-clamoring-spacex-sto...
1•1vuio0pswjnm7•5m ago•0 comments

Active AUR malicious packages incident

https://archlinux.org/news/active-aur-malicious-packages-incident/
2•wanderer2323•7m ago•0 comments

Even "illegible" Mythos reasoning traces seem pretty legible

https://www.lesswrong.com/posts/wCSEpT3dTGz4N86Wi/even-illegible-mythos-reasoning-traces-seem-pre...
1•kqr•8m ago•0 comments

Iraq Goes Solar [video]

https://www.youtube.com/shorts/3GpGs5OWJfU
1•thelastgallon•9m ago•0 comments

There is a shadow hanging over this Fable thing

https://12gramsofcarbon.com/p/tech-things-there-is-a-massive-shadow
1•theahura•9m ago•0 comments

Small investors scrambled to buy SpaceX, despite belief valuation 'stupid'

https://www.cnbc.com/2026/06/12/small-investors-scrambled-to-get-in-on-the-spacex-ipo-even-as-som...
1•1vuio0pswjnm7•16m ago•0 comments

Kimi K2.7 Code

https://platform.kimi.ai/docs/guide/kimi-k2-7-code-quickstart
2•cmogni1•18m ago•0 comments

Why news.Y Combinator.com UI designed looking like designed by 5 year kid

https://news.ycombinator.com/
1•productify999•18m ago•1 comments

The world’s first trillionaire is a killer

https://www.theverge.com/tech/949259/the-worlds-first-trillionaire-is-a-killer
5•tastyface•19m ago•1 comments

3D Mercator Earth Map That acts as Live Intelligence platform for shipping

https://github.com/jamalrfordii-arch/Vanguard-Map
1•Lawyer24•26m ago•0 comments

Running an AI-native engineering org

https://claude.com/blog/running-an-ai-native-engineering-org
1•gmays•29m ago•0 comments

How Much SpaceX Are You About to Own?

https://www.nytimes.com/2026/06/12/upshot/spacex-stock-ipo.html
1•1vuio0pswjnm7•34m ago•0 comments

AI Will Steal Your Motivation If You Let It

https://www.bloomberg.com/opinion/articles/2026-06-12/ai-threatens-worker-motivation-unless-leade...
1•imichael•35m ago•0 comments

Realistic Superintelligence

1•onlypostonce•35m ago•3 comments

On CPU Physics and CPU Cycles

https://6it.dev/blog/on-cpu-physics-and-cpu-cycles-80730
11•signa11•49m ago•0 comments

Making the Invisible Visible

https://biohub.org/blog/laser-phase-plate-cryo-em-making-invisible-visible/
1•selimonder•50m ago•0 comments

Ask HN: What do you think about US Government's Geographic Ban on Fable?

2•akashwadhwani35•52m ago•0 comments

How a Linguist Helped Me Understand C

https://jjrgn.substack.com/p/how-a-linguist-helped-me-understand
3•3rly•1h ago•0 comments

Animation Vocabulary

https://animations.dev/vocabulary
2•vinhnx•1h ago•1 comments

El Niño and the Iran war may spark hunger crisis for more than 100M

https://www.washingtonpost.com/climate-environment/2026/06/12/why-iran-war-powerful-el-nio-could-...
2•MilnerRoute•1h ago•0 comments

Dave Eggers doesn't need a smartphone, the internet or your Flock camera

https://www.sfgate.com/sf-culture/article/dave-eggers-profile-22291491.php
6•mikhael•1h ago•0 comments

Fable 5 is gone from model lists

https://www.anthropic.com
2•Robelk1•1h ago•4 comments

Show HN: LLMRender, a 10kb Markdown+LaTeX renderer for React

https://llmrender.com/
2•franciscop•1h ago•0 comments

Sam Bankman-Fried loses fraud conviction appeal

https://www.ft.com/content/adbf76dc-c476-4f8f-9a6e-3bea0a5c24a6
8•petethomas•1h ago•1 comments

How flat is replacing fat in AWS data center networks

https://www.amazon.science/blog/how-flat-is-replacing-fat-in-aws-data-center-networks
1•porjo•1h ago•0 comments

Our response to the US ban on Fable 5 and Mythos 5

https://isaacus.com/blog/our-response-to-the-us-ban-on-fable-5-and-mythos-5
32•ubutler•1h ago•2 comments

ProofLayer Rules – runtime security, red-team evals for LangGraph

https://github.com/sinewaveai/prooflayer-rules
2•dchitimalla1•1h ago•2 comments

HAFT: Higher-Order Abstractions for Rust

https://www.deepcausality.com/blog/announcement-haft-hkt/
1•marvin-hansen•1h ago•0 comments

Qatar pursued secret talks with Iran to shield gas complex from strikes

https://www.washingtonpost.com/world/2026/06/12/qatar-pursued-secret-talks-with-iran-shield-gas-c...
2•pinewurst•1h ago•0 comments