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!

Trump's Vision for A.I. Dominance Comes with Major Air Pollution

https://www.nytimes.com/2026/08/05/climate/data-centers-pollution-trump-ai-energy.html
1•mapping365•2m ago•0 comments

In China gas engine became a "marketing decoration" for customer's reassurance

https://carnewschina.com/2026/08/05/in-china-gas-engine-became-a-marketing-decoration-for-custome...
1•xbmcuser•7m ago•1 comments

My First 8K Intro

https://marcin.juszkiewicz.com.pl/2019/09/03/my-first-8k-intro/
2•andsoitis•11m ago•0 comments

Cloudflare-OS

https://www.phoronix.com/news/Cloudflare-OS
1•keyle•14m ago•0 comments

Study: String theory finally testable thanks to AI

https://www.kcl.ac.uk/news/string-theory-finally-testable-with-power-of-ai
3•giuliomagnifico•19m ago•1 comments

Road Trains Roam the Backroads of Australia

https://hackaday.com/2026/08/04/road-trains-roam-the-backroads-of-australia/
2•asdefghyk•21m ago•1 comments

OpenAI Models Joined Forces Months Ahead of Hugging Face Hack

https://www.bloomberg.com/news/articles/2026-08-06/openai-models-joined-forces-months-ahead-of-hu...
2•emersonmacro•23m ago•0 comments

What AI First Engineering Orgs Look Like

https://arpitbhayani.me/blogs/ai-first-org/
1•honey-badger•27m ago•0 comments

Federal appeals court OKs Florida anti-drag show law

https://www.tallahassee.com/story/news/state/2026/08/04/federal-court-backs-florida-anti-drag-sho...
1•allgirl•27m ago•1 comments

A New Kind of Bearing [video]

https://www.youtube.com/watch?v=RKvOfX1s3-k
1•pillars•28m ago•0 comments

Google Genie 3: Interactive worlds generated by AI

https://deepmind.google/blog/genie-3-a-new-frontier-for-world-models/
3•mehraban•28m ago•2 comments

France is banning unsolicited telemarketing calls starting next week

https://apnews.com/article/france-unsolicited-telemarketing-ban-4c946192a1e0d611fd80eacc708aa7da
2•geox•29m ago•0 comments

Biggest US law firms explore selling stakes to private equity

https://www.ft.com/content/475d573a-886d-4b75-b07c-f74c38b093f2
1•JumpCrisscross•31m ago•0 comments

Employers are hiring less but paying more

https://www.axios.com/2026/08/05/employment-pay-construction-adp
3•rustoo•35m ago•0 comments

ConvoKit: Conversational Analysis Toolkit

https://convokit.cornell.edu/
2•internetguy•36m ago•0 comments

'Sell America' Debate Re-Emerges as US Policies Sow Doubts

https://www.bloomberg.com/news/articles/2026-08-05/us-policies-reignite-debate-over-sell-america-...
2•petethomas•36m ago•0 comments

They Write the Right Stuff – (1996)[pdf]

https://www.eng.auburn.edu/~kchang/comp6710/readings/They%20Write%20the%20Right%20Stuff.pdf
3•gurjeet•36m ago•0 comments

Open Micro-Manipulator

https://github.com/0x23/MicroManipulatorStepper
2•pillars•39m ago•0 comments

You don't need to be a developer to build a real software today

https://initacademy.oyakoo.store/
2•NaaShormey•42m ago•0 comments

Voice Commanding the PRETTY Spacecraft over Amateur Radio (To Play Doom)

https://doom.lb6aj.net/
4•austinallegro•45m ago•0 comments

Stripe Lands in Minecraft

3•MetroidMincraft•45m ago•2 comments

WYSIWYG Markdown Editor: Paste webpages, spreadsheets and images directly

https://phcode.io/markdown-editor.html
2•charlypa•47m ago•1 comments

The Monty Hall Problem

https://www.usu.edu/math/schneit/StatsHistory/ProbabilityPrompts/MontyHall
3•andsoitis•49m ago•0 comments

Why Do We Tolerate Elon Musk's Racist Commentary?

https://www.nytimes.com/2026/07/29/opinion/elon-musk-far-right-remigration.html
4•vrganj•49m ago•2 comments

DeepSeek announced to raise its API price tremendously

2•alexwwang•50m ago•0 comments

The Zillion Encodings of NOP [video]

https://www.youtube.com/watch?v=8BvAKvcW31A
2•edward28•50m ago•0 comments

Two simple tests to see how your fitness compares with Elite older athletes

https://www.washingtonpost.com/wellness/2025/10/16/fitness-test-senior-athletes/
1•gurjeet•52m ago•0 comments

Teamsters sue California over self-driving truck rules

https://www.politico.com/news/2026/08/05/teamsters-sue-california-self-driving-truck-rules-01026055
2•JumpCrisscross•54m ago•0 comments

Two sizes fit most: Postgres and ClickHouse

https://clickhouse.com/blog/ai-best-of-breed-data-stack
1•saisrirampur•56m ago•0 comments

Touring the Consensus, Six Months In

https://theconsensus.dev/blog/2026/08/05/touring-the-consensus-six-months-in.html
1•tosh•58m ago•0 comments