frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•10mo 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!

China's AI giants are handing out cash to lure in users

https://www.economist.com/business/2026/03/09/chinas-ai-giants-are-handing-out-cash-to-lure-in-users
1•petethomas•1m ago•0 comments

We Tried Paying Artists Royalties on AI-Generated Work – Learnings

https://www.kapwing.com/blog/learnings-from-paying-artists-royalties-for-ai-generated-art/
1•jenthoven•2m ago•0 comments

Ask HN: Favorite Non-Spammy iPhone Games?

1•bix6•7m ago•0 comments

A Survival Guide to a PhD (2016)

http://karpathy.github.io/2016/09/07/phd/
1•vismit2000•10m ago•0 comments

PEP 827: Type Manipulation

https://peps.python.org/pep-0827/
1•azhenley•11m ago•0 comments

Fil-C: A memory-safe C implementation

https://lwn.net/Articles/1042938/
1•zdkaster•13m ago•0 comments

David W. Bates, cybernetics specialist: 'The brain is not a computer'

https://www.lemonde.fr/en/opinion/article/2026/02/28/david-w-bates-cybernetics-specialist-the-bra...
1•1vuio0pswjnm7•15m ago•0 comments

SheepDipped

1•sheepdipped•18m ago•1 comments

Anthropic launches Code Review

https://code.claude.com/docs/en/code-review
2•rishabhaiover•18m ago•1 comments

The Arts Bookstore of the Internet

https://mzs.press/
1•mooreds•19m ago•0 comments

Breaking free from smartphone addiction: Defensive tactics against algorithms

https://english.elpais.com/technology/2026-03-07/breaking-free-from-smartphone-addiction-defensiv...
2•1vuio0pswjnm7•19m ago•0 comments

Lovable, Monetization, and the Vibe Coder Economy

https://jxnl.co/writing/2025/06/12/lovable-monetization-and-the-vibe-coder-economy/
1•AnhTho_FR•22m ago•0 comments

Trial against Meta in New Mexico highlights video depositions by top executives

https://apnews.com/article/meta-instagram-new-mexico-zuckerberg-mosseri-social-e5a6749f4628cff9ff...
1•1vuio0pswjnm7•25m ago•0 comments

Lunches.fyi: Scraping corporate cafeteria menus and ranking the food

https://walzr.com/lunches-fyi/
2•meetpateltech•29m ago•0 comments

Human Brain Cells Run New Data Centers in Singapore, Melbourne

https://www.bloomberg.com/news/articles/2026-03-09/human-brain-cells-run-new-data-centers-in-sing...
1•inaros•29m ago•0 comments

Mockdown

https://www.mockdown.design
1•handfuloflight•30m ago•0 comments

Sony is testing dynamic pricing in the PlayStation Store

https://psprices.com/news/sony-ab-testing-prices/
1•xoxxala•30m ago•0 comments

Amazon tells FCC to bin SpaceX's million-satellite datacenter dream

https://www.theregister.com/2026/03/09/amazon_petitions_to_block_spacexs/
3•johnbarron•35m ago•0 comments

Lazy iteration vs. array chaining on 500k rows – benchmark results

1•gvsh_maths•38m ago•1 comments

I built a tool to export Gemini chat to PDF, Word, Docs, and Notion

2•backrun•38m ago•0 comments

Baochip-1x: What It Is, Why I'm Doing It Now, and How It Came About

https://www.crowdsupply.com/baochip/dabao/updates/what-it-is-why-im-doing-it-now-and-how-it-came-...
1•brewcrew•38m ago•0 comments

Sen Sheldon Whitehouse: Connections Between Trump, Russia, and Epstein

https://www.youtube.com/watch?v=ylvTFvJvB84
3•johnbarron•40m ago•0 comments

I just launched my first Roblox game "Drone Wars"

https://www.roblox.com/games/136100514232797/Drone-Wars
1•mmmmkay•41m ago•1 comments

Scotland becomes first UK country to legalise water cremations

https://www.theguardian.com/society/2026/mar/02/scotland-becomes-first-uk-country-to-legalise-wat...
3•gscott•44m ago•0 comments

Loom vs. Linear: A tale of two AI-cities

https://jamespember.substack.com/p/loom-vs-linear-a-tale-of-two-ai-cities
2•jep888•46m ago•1 comments

Reese's changed its chocolate because of climate change

https://www.fooddive.com/news/hershey-reeses-ingredients-chocolate-climate-change-oped/813903/
1•del82•46m ago•2 comments

Financial group probed by congressional committee over Chinese stock scams

https://www.ft.com/content/49f541f8-c73d-4268-9621-f8604f1a8141
2•petethomas•47m ago•0 comments

Boredom Is the Price We Pay for Meaning

https://www.theatlantic.com/ideas/2026/02/boredom-parenthood-father/686158/
5•myth_drannon•47m ago•1 comments

Something feels weird about this economy

https://www.noahpinion.blog/p/something-feels-weird-about-this
1•paulpauper•48m ago•0 comments

Phonyhuman

https://github.com/manav03panchal/phonyhuman
1•manavpanchal•49m ago•0 comments