frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Golang UniFi Network and Protect API CLI and Client

https://github.com/ClifHouck/unified
2•cliffy•4h 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!

US District Ct. for W. Pa. allows removal of Venezuelans under Alien Enemies Act [pdf]

https://storage.courtlistener.com/recap/gov.uscourts.pawd.318716/gov.uscourts.pawd.318716.72.0_4.pdf
1•treetalker•22s ago•1 comments

Type-Constrained Code Generation with Language Models

https://arxiv.org/abs/2504.09246
1•tough•1m ago•0 comments

Eliminating Array Bounds Checks

https://www.romainguy.dev/posts/2025/eliminating-array-bounds-checks/
1•mfiguiere•3m ago•0 comments

How (memory) safe is Zig?

https://www.scattered-thoughts.net/writing/how-safe-is-zig/
1•vortex_ape•4m ago•0 comments

Ask HN: Relational DB to Graph DB?

1•mysteriousBag•4m ago•0 comments

The Colorless Man (Short Film Made with a $600 Budget)

https://old.reddit.com/r/midjourney/comments/1kls7kl/the_colorless_man_short_film_made_with_a_600/
1•rubslopes•5m ago•0 comments

Preview release of ty, a type checker for Python

https://twitter.com/charliermarsh/status/1922333022658978089
1•jez•9m ago•0 comments

Show HN: Simple AI-powered commit msgs script

https://tomdekan.com/articles/ai-commit-messages
1•tomdekan•14m ago•0 comments

OpenAI Is in Talks to Acquire Programming Tool Windsurf for $3B

https://www.nytimes.com/2025/05/13/technology/openai-windsurf-talks.html
1•donohoe•18m ago•0 comments

Y Combinator says Google is a monopolist, no comment about its OpenAI ties

https://techcrunch.com/2025/05/13/y-combinator-says-google-is-a-monopolist-that-has-stunted-the-startup-ecosystem/
7•mastazi•18m ago•0 comments

Consultant Means Nothing (and Everything) – breaking down the mess of labels

https://davidraistrick.com/blog/2025-05-13-consultant-means-nothing/
1•keen99•22m ago•1 comments

The Vibes

https://taoofmac.com/space/blog/2025/05/13/2230
1•rcarmo•22m ago•0 comments

Florida Ban on "… Lewd Conduct" … Where Children Are Present Struck Down

https://reason.com/volokh/2025/05/13/florida-ban-on-depicting-or-simulating-lewd-conduct-in-performances-where-children-are-present-struck-down/
1•treetalker•23m ago•0 comments

The Penultimate Conditional Syntax

https://dotat.at/@/2025-05-13-if-is.html
1•todsacerdoti•23m ago•0 comments

Pete Rose among players reinstated by MLB commissioner Rob Manfred

https://www.cincinnati.com/story/sports/mlb/reds/2025/05/13/pete-rose-reinstated-mlb-commissioner-rob-manfred-eligible-baseball-hall-of-fame/83605873007/
1•gscott•23m ago•0 comments

AI Hallucination in Filings Involving … Law Firm Lead to $31K in Sanctions

https://reason.com/volokh/2025/05/13/ai-hallucination-in-filings-involving-14th-largest-u-s-law-firm-lead-to-31k-in-sanctions/
1•treetalker•25m ago•0 comments

Cardiac: A CARDboard Illustrative Aid to Computation [pdf]

https://www.cs.drexel.edu/~bls96/museum/CARDIAC_manual.pdf
2•throwaway71271•27m ago•0 comments

Y Combinator's Little Tech Summit was a bizarre snapshot of DC

https://www.theverge.com/politics/651439/maga-tech-populism-antitrust-bannon-lina-khan-ftc
2•baobun•27m ago•0 comments

Insurers seek to surcharge California homeowners for L.A. County fire costs

https://www.latimes.com/business/story/2025-05-13/insurers-seeking-to-surcharge-california-homeowners-for-l-a-county-fire-costs
1•speckx•27m ago•0 comments

Research: Gen AI Makes People More Productive–and Less Motivated

https://hbr.org/2025/05/research-gen-ai-makes-people-more-productive-and-less-motivated?ab=HP-hero-featured-1
1•pseudolus•28m ago•0 comments

FreeBSD fans rally round zVault upstart

https://www.theregister.com/2025/05/12/second_preview_zvault/
1•rodrigo975•29m ago•0 comments

Matrix3D: Large Photogrammetry Model All-in-One

https://nju-3dv.github.io/projects/matrix3d/
2•bentocorp•35m ago•0 comments

Gravity Could Be Proof We're Living in a Computer Simulation

https://gizmodo.com/gravity-could-be-proof-were-living-in-a-computer-simulation-new-theory-suggests-2000601707
2•jchrisa•36m ago•0 comments

Amazon warns it'll terminate your account for screenshotting Prime Video

https://www.neowin.net/news/amazon-allegedly-warns-itll-terminate-your-account-for-screenshotting-prime-video/
6•bundie•38m ago•2 comments

Adwaita Sans and Mono Typefaces

https://gitlab.gnome.org/GNOME/adwaita-fonts
1•cl3misch•39m ago•0 comments

Hearing Intervention, Social Isolation, and Loneliness

https://jamanetwork.com/journals/jamainternalmedicine/fullarticle/2833601
1•bookofjoe•39m ago•0 comments

ESPN direct-to-consumer streaming service will debut at $29.99 a month

https://apnews.com/article/espn-streaming-sportscenter-app-ec2b43ab06a2e1a874894486c8102434
1•geox•39m ago•1 comments

Show HN: A C-Suite AI Agent Meant for SMB

https://askcaa.com/
1•iamasuperuser•42m ago•1 comments

Advanced Protection: Google's Strongest Security for Mobile Devices

https://security.googleblog.com/2025/05/advanced-protection-mobile-devices.html
2•canucker2016•43m ago•0 comments

Ask HN: Can anybody please explain this hack?

2•GWBullshit•43m ago•5 comments