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!

Obsidian-Inspired Social Network

https://aphant.dev
1•Aikaros•56s ago•0 comments

$7k Induction Cooktop Gets Smoking Hot in Two Seconds

https://www.nytimes.com/wirecutter/reviews/impulse-cooktop-review/
1•carabiner•1m ago•0 comments

Crimea's big cities in total blackout after Ukrainian drone strikes

https://www.ft.com/content/7107a1c1-8025-4237-947f-40fa39c9d2fe
1•JumpCrisscross•1m ago•0 comments

Elastic lays off 7% of employees

https://www.elastic.co/blog/ceo-ash-kulkarni-announcement-to-elastic-employees
1•dakrone•1m ago•0 comments

China moves forward with ethnic unity initiative

https://uk.news.yahoo.com/china-says-target-people-overseas-062038094.html
1•indoorfish•2m ago•0 comments

AI writes the code. Taskachu runs the project

https://taskachu.com
1•ndha•2m ago•0 comments

Is There a 'Vienna School of Agentic Coding'? [video]

https://www.youtube.com/watch?v=5mgde2Br4ik
1•raybb•5m ago•0 comments

How we built the fastest API for GLM-5.2

https://www.baseten.co/blog/how-we-built-the-worlds-fastest-api-for-glm-52/
1•Philpax•5m ago•0 comments

Same flaw, opposite verdict: what counts as a vulnerability in AI agents?

https://medium.com/@nikrig/same-flaw-opposite-verdict-ai-agents-cant-agree-what-counts-as-a-secur...
1•nrig•6m ago•0 comments

OmniHai: A Java framework for all major AI providers

https://omnihai.org/
1•henk53•10m ago•0 comments

Utah officials warn of 'unprecedented' water shortages as towns run dry

https://www.sltrib.com/news/environment/2026/06/24/unprecedented-water-cuts-hit-utah/
3•toomuchtodo•11m ago•1 comments

AI Data Center Power Requirements in 2026: The Complete Grid-to-Chip Guide

https://techplustrends.com/ai-data-center-power-requirements-2026-guide/
1•lopespm•14m ago•0 comments

The Forgotten Castles of the Garamantes

https://www.wildmanlife.com/the-forgotten-castles-of-the-garamantes/
3•bookofjoe•14m ago•0 comments

Gartner Says Data Center Electricity Consumption to Grow 26% in 2026

https://www.gartner.com/en/newsroom/press-releases/2026-06-10-gartner-says-data-center-electricit...
1•lopespm•14m ago•0 comments

After 20 years, scientists shrink a powerful laser onto a chip

https://www.sciencedaily.com/releases/2026/06/260604044240.htm
1•lopespm•15m ago•0 comments

University of Exeter to cut 150 academic staff

https://www.bbc.co.uk/news/articles/cx2djnz3y47o
2•sieste•16m ago•0 comments

Simple "Thank You" and "Please" Cost OpenAI Millions of Dollars Every Year

https://yipzap.com/how-simple-thank-you-and-please-cost-openai-millions-of-dollars-every-year/
1•noida•17m ago•4 comments

Long Island's Decommissioned Nuclear Power Plant

https://nickcarr.com/scouting-a-decommissioned-nuclear-power-plant/
2•mkmk•18m ago•0 comments

Number Form

https://en.wikipedia.org/wiki/Number_form
2•messe•18m ago•0 comments

Show HN: Moomacha – Zulip Native Agents Orchestrator

https://github.com/oxedom/moomacha
2•oxedom•19m ago•0 comments

I open sourced my DLES collection of 874 daily games

https://assets.dles.gg/#dles
2•trizoza•20m ago•0 comments

Blown Away by the Fear of Air – Draftofobia (2006)

https://www.spiegel.de/international/draftophobia-blown-away-by-the-fear-of-air-a-407764.html
2•nixass•20m ago•0 comments

When a scan becomes a searchable PDF

https://fairscan.org/blog/when-a-scan-becomes-a-searchable-pdf/
2•ericdanielski•27m ago•0 comments

Show HN: Drawbar – boring linear based workflows for Claude Code

https://github.com/mjn298/drawbar
2•seedlessmike•27m ago•0 comments

OpenAI Codex bombards SSDs with needless write operations

https://www.theregister.com/ai-and-ml/2026/06/23/openai-codex-bombards-ssds-with-needless-write-o...
5•jgalt212•27m ago•0 comments

Evolving Private Credit

https://www.finregrag.com/p/evolving-private-credit
2•petethomas•28m ago•0 comments

The "Low Trust-Open Source" Paradox of AI Adoption in China

https://sinocities.substack.com/p/the-low-trust-open-source-paradox
2•matthest•28m ago•0 comments

Freelancer.svoxx.com – A freelancer marketplace for international projects

https://freelancer.svoxx.com/int/en
2•kilincarslan•32m ago•0 comments

Emacs Liquid Glass

https://github.com/larrasket/emacs-liquid-glass
2•lr0•32m ago•0 comments

Whatnot Live Boost: Seller Analytics, CRM and Tools

https://leliveboost.com
2•listvore•32m ago•1 comments