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!

Australia investigating five social media giants for not enforcing ban on kids

https://www.theregister.com/public-sector/2026/06/29/australia-investigating-five-social-media-gi...
1•defrost•3m ago•0 comments

Amazon seller reveals shadow bribery market within Amazon

https://www.mercurynews.com/2026/06/24/amazon-seller-reveals-rare-glimpse-of-shadow-bribery-market/
1•Gaishan•3m ago•0 comments

'Superallowed' alpha decay seen for the first time

https://physicsworld.com/a/superallowed-alpha-decay-seen-for-the-first-time/
1•visha1v•5m ago•0 comments

New model of ocean waves sheds light on the spread of microplastic pollution

https://physicsworld.com/a/new-model-of-ocean-waves-sheds-fresh-light-on-the-spread-of-microplast...
1•visha1v•6m ago•0 comments

PCB-QA: Evaluating LLMs over the First PCB Design Question-Answer Dataset

https://arxiv.org/abs/2606.23704
1•teleforce•14m ago•0 comments

The 1000-mile handshake from Aden to Mangalore

https://drbhaskardasgupta1.substack.com/p/the-1000-mile-handshake
1•trojanalert•14m ago•0 comments

From Prompts to Loops: Building Autonomous Coding Agents

https://animeshgaitonde.medium.com/from-prompts-to-loops-building-autonomous-coding-agents-6135bf...
1•animesh371g•19m ago•0 comments

"Warming Hole" Heat Content Variations Are Caused by Ocean Heat Transport

https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2025GL118383
4•baxtr•26m ago•0 comments

392-Year-Old Bonsai Tree That Survived the Hiroshima Atomic Blast (2024)

https://www.openculture.com/2024/05/this-392-year-old-bonsai-tree-survived-the-hiroshima-atomic-b...
3•vednig•30m ago•0 comments

'Down from Londoners' Are Transforming England's Seaside Towns

https://www.bloomberg.com/news/articles/2026-06-26/londoners-escape-to-england-s-seaside-raises-h...
1•petethomas•33m ago•0 comments

We Built Osmium for Scale

https://osmium.chat/blog/how-we-built-osmium-for-scale/
1•ateesdalejr•34m ago•0 comments

Remember SCANTRON? How did that work? [video]

https://www.youtube.com/watch?v=x2RvPFvR-CI
2•fortran77•35m ago•0 comments

My New Life with the Palantir Chore Coat

https://www.theatlantic.com/technology/2026/06/palantir-chore-coat/687686/
2•colinprince•35m ago•0 comments

PCB-Bench: Benchmarking LLMs for PCB Placement and Routing (ICLR 2026)

https://github.com/digailab/PCB-Bench
2•teleforce•36m ago•0 comments

Age verification is just a precursor to automated attribution of speech

https://nonogra.ph/age-verification-is-just-a-precursor-to-attribution-of-speech-06-29-2026
80•arkhiver•37m ago•13 comments

MFM: PINN based Motion Foundation Model

https://huggingface.co/JuSeongvin/pinn
1•urgentINC•41m ago•0 comments

Breaking the Tokenizer Barrier: On-Policy Distillation Across Model Families

https://arxiv.org/abs/2606.09456
1•Jimmc414•41m ago•0 comments

What Should We Optimize Away?

https://www.autodidacts.io/holistic-optimization/
2•Tomte•43m ago•0 comments

Collider: A meson package manager – A hash proves the bytes, not the source

https://collider.ee/blog/2026-06-28-1500_a_hash_proves_the_bytes_not_the_source/#a-hash-proves-th...
1•mog_dev•45m ago•0 comments

An Open Letter to Pete Buttigieg

https://richprocida.substack.com/p/an-open-letter-to-pete-buttigieg
1•RichProcida•50m ago•0 comments

SpaceX just landed in 401(k)s due to key index rule changes

https://moneywise.com/news/top-stories/spacex-401k-anthropic-openai-ipo-index-fund-rules
3•voxadam•54m ago•0 comments

GraphQL MCP Server and GraphiQL Plugins

https://graphql-mcp.com/
2•robjampar•56m ago•1 comments

OpenAI limits latest ChatGPT product to Trump-approved customers

https://www.bnnbloomberg.ca/business/artificial-intelligence/2026/06/26/openai-limits-its-latest-...
4•MadrasTh0rn•58m ago•1 comments

Show HN: Self hosting a modern LLM stack

https://github.com/raiyanyahya/llmaker
3•sleepynoodle•1h ago•1 comments

Germans are researching their Nazi past as the far right urges them to move on

https://www.cnn.com/2026/06/28/europe/germans-nazi-past-far-right-intl
3•Tomte•1h ago•1 comments

How can engineering leaders avoid becoming Bond villains?

https://stackoverflow.blog/2026/06/26/paging-charity-how-can-engineering-leaders-avoid-becoming-b...
3•backlit4034•1h ago•0 comments

The Richest Country Is Pretty Mid Now [video]

https://www.youtube.com/watch?v=4FZy1lBNykA
1•locusm•1h ago•0 comments

Efficiency in LLMs – Part 1 – Columbia Machine Learning Summer School 2026 [video]

https://www.youtube.com/watch?v=zcWJCKsODZk
3•matt_d•1h ago•0 comments

Towards Understandable Software

https://gracefulliberty.com/articles/towards-understandable-software/
2•signa11•1h ago•0 comments

Chinese farmer and his 70k chickens become online celebrities [video] (2019)

https://www.youtube.com/watch?v=aWjYLYulALs
2•dprkh•1h ago•0 comments