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

So This is Peak Smartphone [video]

https://www.youtube.com/watch?v=c347oYQO57A
1•thelastgallon•6m ago•0 comments

The most overenginereed Chromium extension?

https://www.superchargebrowser.com/performance/
1•superchargeext•8m ago•0 comments

Ubuntu 26.04 is more than just a performance bump for thrill-seeking gamers

https://www.zdnet.com/article/ubuntu-26-04-performance/
1•teleforce•9m ago•0 comments

Reverse-engineering infrared-based electronic shelf labels

https://www.furrtek.org/?a=esl
1•pabs3•10m ago•0 comments

Rivian R2 won't have A/C buttons followed by CEO's decision

https://theevreport.com/rivian-r2s-screen-heavy-interior-was-a-top-down-ceo-decision
1•vincentchau•15m ago•0 comments

1981 Spanish cooking oil disaster

https://en.wikipedia.org/wiki/Toxic_oil_syndrome
1•burnt-resistor•15m ago•1 comments

Zero Days Clock

https://zerodayclock.com/
1•baxtr•15m ago•0 comments

Paraloid B-72

https://en.wikipedia.org/wiki/Paraloid_B-72
2•Ariarule•18m ago•0 comments

Five Simple Steps to Fix America

https://geohot.github.io//blog/jekyll/update/2026/04/18/five-simple-steps.html
1•inatreecrown2•21m ago•0 comments

The Dangers of Nicotine Biohacking

https://www.lung.org/blog/nicotine-biohack-dangers
1•KnuthIsGod•21m ago•0 comments

GPT 5.5 Released in Codex

3•zuzululu•22m ago•2 comments

An Algorithmic Reconstruction of Normalisation by Evaluation

https://yangzhixuan.github.io/NbE.html
1•matt_d•24m ago•0 comments

Global energy markets are on the verge of a disaster

https://www.economist.com/finance-and-economics/2026/04/21/global-energy-markets-are-on-the-verge...
3•petethomas•35m ago•0 comments

Moving a tenant across PostgreSQL instances

https://ananthakumaran.in/2026/04/22/moving-tenant-across-postgresql-instances.html
1•ananthakumaran•38m ago•0 comments

Can EVs kill off petrol cars in China?

https://www.ft.com/content/c78e0368-cc57-4f92-ad62-a073e01ba73d
1•petethomas•41m ago•0 comments

Code, your choice: Netlify's stance on AI training data

https://www.netlify.com/blog/stance-on-ai-training-data/
1•kristianp•43m ago•1 comments

Changes to GitHub Copilot Individual Plans

https://simonwillison.net/2026/Apr/22/changes-to-github-copilot/
2•omer_k•45m ago•0 comments

Bob Dylan – Murder Most Foul (Official Audio) [video]

https://www.youtube.com/watch?v=3NbQkyvbw18
1•hkhn•47m ago•0 comments

The Mattering Instinct: How Our Deepest Longing Drives Us and Divides Us

https://rebeccagoldstein.com/the-mattering-instinct/
1•hkhn•48m ago•0 comments

OpenBSD – LibreSSL 4.3.1 Released

https://www.undeadly.org/cgi?action=article;sid=20260420085845
2•peter_hansteen•49m ago•0 comments

Elon Musk's SpaceX Endgame

https://www.theatlantic.com/technology/2026/04/elon-musk-starlink-satellites/686877/
3•paulpauper•51m ago•0 comments

The State of the Human Rights: April 2026

https://www.amnesty.org/en/documents/pol10/0320/2026/en/
1•hkhn•52m ago•0 comments

Hundreds trying to storm Wisconsin beagle research facility

https://www.msn.com/en-us/news/world/hundreds-trying-to-storm-wisconsin-beagle-research-facility-...
2•rguiscard•52m ago•0 comments

Happiness Feels

https://passiveaggressionoftheworlds.substack.com/p/how-happiness-feels
1•bunson_burner•56m ago•0 comments

Microsoft's GitHub grounds Copilot account sign-ups amid capacity crunch

https://www.theregister.com/2026/04/20/microsofts_github_grounds_copilot_account/
2•gpi•57m ago•0 comments

Ask HN: What Would Make Stack Overflow Great Again?

3•nnurmanov•1h ago•1 comments

Claude 4.7 blocks cyber prompts: before the fact vs. after the fact

https://raxitlabs.com/blogs/claude-47-five-layers-cyber-blocking
2•agairola•1h ago•0 comments

Show HN: XTTV, the App to watch long video from Twitter/X on Apple TV

https://apps.apple.com/us/app/xttv/id6757870255
1•ShawFei•1h ago•0 comments

Cognition without brains? Learning and memory in microorganisms

https://www.sciencedirect.com/science/article/pii/S0966842X26000909
1•the-mitr•1h ago•0 comments

Agent Harness Engineering

https://addyosmani.com/blog/agent-harness-engineering/
3•tanelpoder•1h ago•0 comments