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!

Space Force awards up to $3.2B for Golden Dome interceptor prototypes

https://spacenews.com/space-force-awards-up-to-3-2-billion-for-golden-dome-interceptor-prototypes/
1•rbanffy•2m ago•0 comments

Colorado Adds Open-Source Exemption to Age-Verification Bill

https://fosstodon.org/@carlrichell/116460505717380644
2•terminalbraid•4m ago•0 comments

How to Say No (2023)

https://psyche.co/guides/how-to-stop-people-pleasing-by-learning-to-say-no
1•herbertl•5m ago•0 comments

Trump fires all 24 members of the U.S. National Science Foundation

https://www.science.org/content/article/trump-fires-nsf-s-oversight-board
3•skullone•6m ago•0 comments

Show HN: A privacy first companion AI

https://www.friendai.pro
1•krunkworx•8m ago•0 comments

George Washington as entrepreneur (2021)

https://lawliberty.org/george-washington-as-entrepreneur/
2•hhs•12m ago•0 comments

Show HN: LLM-wiki – One command Karpathy's wiki with QMD search for Claude/Codex

https://github.com/ivankuznetsov/llm-wiki
2•ivankuznetsov11•16m ago•1 comments

Objects of Categories as Complex Numbers (2002)

https://arxiv.org/abs/math/0212377
2•pizza•16m ago•0 comments

How I leared what a decoupling capacitor is for, the hard way

https://nbelakovski.substack.com/p/how-i-learned-what-a-decoupling-capacitor
2•actinium226•18m ago•0 comments

Got Bugs? U of G Collecting Samples to Catalogue Canada's Biodiversity

https://news.uoguelph.ca/2026/04/got-bugs-u-of-g-collecting-samples-to-catalogue-canadas-biodiver...
2•gnabgib•20m ago•0 comments

The Self-Defeating Condescension of an Anti-Racist Education

https://www.theatlantic.com/ideas/2026/04/anti-racism-schools-achievement-gap/686912/
3•apparent•24m ago•1 comments

Bitwarden CLI Backdoored on NPM for 93 Minutes

https://hackingpassion.com/bitwarden-cli-supply-chain-attack/
2•milkglass•25m ago•1 comments

Hair Dryer Used to Manipulate Polymarket

https://www.engadget.com/big-tech/someone-allegedly-used-a-hairdryer-to-rig-polymarket-weather-be...
2•simpleintheory•25m ago•1 comments

The Eurail Breach and the Digital ID Problem

https://reclaimthenet.org/the-eurail-breach-and-the-digital-id-problem
2•Cider9986•26m ago•0 comments

Astronomy and Mathematics in the Indian Classical Age

https://zenodo.org/records/15715590
1•suyashdeep•26m ago•1 comments

opinion: Professors Are Too Old

https://www.chronicle.com/article/professors-are-too-old
2•paulpauper•27m ago•1 comments

How Short-Form Clips Took over the Internet

https://www.theatlantic.com/podcasts/2026/04/how-short-form-clips-took-over-the-internet/686922/
2•paulpauper•28m ago•1 comments

Hedd Wyn

https://en.wikipedia.org/wiki/Hedd_Wyn
1•thedrexster•28m ago•0 comments

Action Potentials for April

https://neurobiology.substack.com/p/action-potentials-for-april-ab6
1•paulpauper•28m ago•0 comments

Steve Reich reshaped the boundaries of musical time (2025)

https://kolapse.com/en/contenido/90817-how-steve-reich-reshaped-the-boundaries-of-musical-time
2•thomassmith65•32m ago•1 comments

Yam – Local AST-based plagiarism detector (MOSS alternative)

https://gitlab.com/sylvan.wood.carving-group/yam.git
2•jmresler•34m ago•0 comments

Single-binary dotfiles manager to replace dotbot

https://github.com/fisenkodv/dfm
2•fisenkodv•36m ago•0 comments

Europe–not US–first to authorize Moderna's combo mRNA flu-Covid vaccine

https://arstechnica.com/health/2026/04/europe-not-us-first-to-authorize-modernas-combo-mrna-flu-c...
4•Brajeshwar•37m ago•0 comments

Protovac Retro Terminal (2025)

https://tanner.vc/protovac-retro-terminal/
4•wonger_•44m ago•0 comments

Text-wrap:balance; CSS rule to avoid typographic orphans

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/text-wrap
2•hypertexthero•44m ago•0 comments

USB Cheat Sheet

https://fabiensanglard.net/usbcheat/index.html
3•gwerbret•54m ago•0 comments

Two Compilers, One Moment

https://intertwingly.net/blog/2026/04/25/Two-Compilers-One-Moment.html
2•ingve•57m ago•0 comments

Kevin Graaf: Computerising Hyerogliphic Scripts

https://www.youtube.com/watch?v=Vhx-hRyh6BM
1•aeontech•59m ago•0 comments

The 3D Controller That Should Have Existed 20 Years Ago [video]

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

The avionics suite designed to let anyone fly a plane

https://newatlas.com/aircraft/interview-airhart-aeronautics-cockpit-avionics-suite/
1•breve•1h ago•0 comments