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!

.gitignore Generator by Codra

https://codra.run/free-tools/gitignore-generator
1•devarshishimpi•2m ago•0 comments

Homelab deployments: a tutorial made of prompts

https://tomjohnell.com/homelab-deployments-a-tutorial-made-of-prompts/
2•tjohnell•3m ago•0 comments

Ask HN: How to prepare for coding/system design interviews on a mobile phone

1•k_dev•4m ago•0 comments

AI Is Making Us Less Human

https://www.theatlantic.com/ideas/2026/09/open-ai-consciousness-morality/688535/
2•paulpauper•6m ago•0 comments

Alzheimer's trial to test drug on people without symptoms to test prevention

https://www.theguardian.com/society/2026/sep/05/alzheimers-trial-drug-dementia
2•borski•6m ago•0 comments

Ask HN: What are your predictions for the rest of 2026?

3•roschdal•8m ago•1 comments

An Alien Mind

https://openai.com/index/an-alien-mind/
3•tosh•8m ago•0 comments

TreasuryDirect is launching a controversial login system

https://tipswatch.com/2026/08/17/treasurydirect-is-launching-a-controversial-login-system/
1•clcaev•9m ago•0 comments

A complex train and logistics simulator running straight in your terminal? Yep

https://avaraujo.itch.io/letrain-procedural-tycoon
2•avaraujo•12m ago•0 comments

Pro Se Litigants in the U.S. Supreme Court: How Do They Fare? (2024) [pdf]

https://prod-i.a.dj.com/public/resources/documents/KylePersaud.pdf
2•Tomte•15m ago•0 comments

I Check the Weather

https://sarah-robin.com/blog/how-i-actually-check-the-weather
3•sarah-robiin•15m ago•0 comments

Hot Chips 2026: Irrational Recap

https://irrationalanalysis.substack.com/p/hot-chips-2026-irrational-recap
1•zdw•16m ago•0 comments

Distribution of Household Wealth in the U.S. since 1989

https://www.federalreserve.gov/releases/z1/dataviz/dfa/distribute/chart/#quarter:146;series:Net%2...
2•loughnane•18m ago•0 comments

AI agents aren't safe from prompt injection, and spreadsheets prove it

https://shiftmag.dev/ai-agents-arent-safe-from-prompt-injection-and-spreadsheets-prove-it-11609/
3•taubek•18m ago•0 comments

IBM_phoenix

https://quantum.cloud.ibm.com/computers?system=ibm_phoenix
2•Bluestein•19m ago•0 comments

'Twilight of the Dons' Review: The Prestige of the Professors

https://www.wsj.com/arts-culture/books/twilight-of-the-dons-review-the-prestige-of-the-professors...
1•pepys•19m ago•0 comments

The AI Account Reseller Ecosystem

https://vectoral.com/blog/ai-account-reseller-ecosystem
2•mlenhard•20m ago•0 comments

Research carried out using NetBSD

https://www.netbsd.org/gallery/research.html
5•Bluestein•25m ago•0 comments

The Tokens That Made Me Rethink Everything

https://cacm.acm.org/blogcacm/the-tokens-that-made-me-rethink-everything/
2•visha1v•28m ago•0 comments

When did French fries become the standard side to serve with a hamburger?

https://www.reddit.com/r/AskHistorians/comments/39v00a/comment/cs72af6/
6•thunderbong•28m ago•0 comments

Leverage Code Review for Sustainable AI Coding Development

https://cacm.acm.org/news/leverage-code-review-for-sustainable-ai-coding-development/
1•visha1v•28m ago•0 comments

Tumbler Ridge Shooting Survivors File 30 Lawsuits Against OpenAI

https://www.nytimes.com/2026/09/04/world/canada/openai-lawsuits-tumbler-ridge-shooting.html
2•sbulaev•28m ago•0 comments

Cash or Comfort? How LLMs Value Your Inconvenience

https://cacm.acm.org/research/cash-or-comfort-how-llms-value-your-inconvenience/
2•visha1v•29m ago•0 comments

The Coming Merging of Mind and Machine (2001)

https://www.thekurzweillibrary.com/the-coming-merging-of-mind-and-machine
2•vinhnx•30m ago•0 comments

Mdmanager.ai – Manage your Claude.md and AGENTS.md across machines and runtimes

https://github.com/manuelschipper/mdmanager
3•schipperai•32m ago•2 comments

Cultivating Trust

https://kaeruct.github.io/posts/2026/09/06/conquering-entropy-cultivating-trust/
3•kaeruct•33m ago•1 comments

Two party systems and the quartile voters

https://jslandy.com/two-party-systems-quartile-voters/
3•efavdb•34m ago•0 comments

Industry Standard Tools

https://industrystandard.tools/pending
1•bookofjoe•35m ago•1 comments

Linux support for Apple T1 hardware

https://github.com/standardagents/t1bridge
1•TiredOfLife•38m ago•0 comments

An actual music theory framework with note-for-note voice-leading resolutions

https://www.reddit.com/r/Learnmusic/comments/1vktxsj/the_layout_of_modeschord_swings_in_cmam_w_all/
2•RockofStrength•39m ago•0 comments