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!

Pythagora-Io/GPT-Pilot Compromised Credential Stealer Blocked by Python Linter

https://github.com/Pythagora-io/gpt-pilot/issues/1182
1•kurmiashish•3m ago•1 comments

MoE expert co-activations: Reordering inputs yields easy throughput gains

https://blog.doubleword.ai/moe-expert-coactivations
1•kkm•5m ago•0 comments

AI and the Redmonk Language Rankings

https://briandouglas.ie/redmonk-language-rankings-2026/
1•coneonthefloor•5m ago•0 comments

SwiftUI Only Makes It Easy to Develop Bad Apps

https://daringfireball.net/2026/06/swiftui_only_makes_it_easy_to_develop_bad_apps
1•robenkleene•6m ago•0 comments

How PICO-8 unlocked Frédéric Souchu's dreams

https://nanark.medium.com/a-pico-8-story-how-the-fantasy-console-unlocked-fr%C3%A9d%C3%A9ric-souc...
1•atan2•10m ago•0 comments

We brought Arc-style profile switching to Dia

https://diarc.app
1•0x6A75616E•11m ago•1 comments

OpenAI Submits S-1 Draft to SEC

https://openai.com/index/openai-submits-confidential-s-1/
8•hackerBanana•11m ago•0 comments

The sample efficiency black hole

https://www.dwarkesh.com/p/the-sample-efficiency-black-hole
1•crescit_eundo•12m ago•0 comments

Mathematics Is Out There

https://aeon.co/essays/for-sergiu-klainerman-maths-is-a-fact-to-be-divined
3•cainxinth•13m ago•0 comments

OpenAI Files S-1

https://twitter.com/openainewsroom/status/2064094175541461220
6•davidbarker•17m ago•0 comments

OpenAI Confidentially Files for IPO

https://www.cnbc.com/2026/06/08/openai-confidentially-files-for-ipo-prepping-wall-street-for-ai-d...
11•rvz•17m ago•0 comments

Scientists use lasers to determine the age of sharks

https://phys.org/news/2026-05-scientists-lasers-age-sharks.html
2•PaulHoule•17m ago•0 comments

Forcing a (Windows) system crash from the keyboard

https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/forcing-a-system-crash-from-t...
1•turtlegrids•18m ago•0 comments

Understanding Type Theory Eliminators

https://zenodo.org/records/20600315
1•DPDmancul•20m ago•1 comments

Pozzo: A Fast Lucky Number Checker

https://github.com/Robert-Cunningham/pozzo
1•robertvc•20m ago•0 comments

All WWDC 2026 session videos

https://developer.apple.com/videos/wwdc2026/
1•MysticOracle•20m ago•1 comments

Apple's New Siri AI Didn't Kill Raycast but It Represents a Make-or-Break Moment

https://www.inc.com/connor-jewiss/apples-new-siri-ai-represents-a-make-or-break-moment-for-founde...
1•connorjewiss•22m ago•0 comments

Discarding AI-Generated Code

https://www.dotnetperls.com/2026_6_8_discarding-ai-generated-code
2•speckx•22m ago•0 comments

Bangladesh has more Argentina fans per capita than most of South America

https://old.reddit.com/r/argentina/comments/1u0h4zm/bangladesh_has_more_argentina_fans_per_capita/
2•wslh•28m ago•0 comments

Good Internet magazine on indefinite hiatus

https://www.goodinternetmagazine.com/important/
2•bjhess•31m ago•0 comments

Developer Gets Half-Life Running at 30 FPS on a Nokia N95

https://www.tomshardware.com/video-games/handheld-gaming/developer-gets-half-life-running-at-30-f...
6•ljf•32m ago•1 comments

Apple bets cheaper AI will woo small developers

https://techcrunch.com/2026/06/08/apple-bets-cheaper-ai-will-woo-small-developers/
2•jbernardo95•32m ago•0 comments

A giant star may have destroyed itself in one of the rarest explosions

https://phys.org/news/2026-05-giant-star-destroyed-universe-rarest.html
6•wglb•33m ago•1 comments

NHS prescribes half a million Copilot licenses for its paperwork headache

https://www.theregister.com/ai-and-ml/2026/06/08/nhs-prescribes-half-a-million-copilot-licenses-f...
1•Bender•35m ago•0 comments

It's do or die for Apple AI

https://www.theregister.com/ai-and-ml/2026/06/08/its-do-or-die-for-apple-ai/5252479
1•Bender•35m ago•0 comments

We moved twice as fast with half the people

https://greggtmengine.substack.com/p/how-we-moved-twice-as-fast-with-half
1•greglee•36m ago•1 comments

Consultant mistakenly deleted a ton of data but reported it as a bug

https://www.theregister.com/software/2026/06/08/consultant-mistakenly-deleted-a-ton-of-data-but-r...
2•Bender•36m ago•0 comments

Federal judge rules Trump's $100k fee for H-1B visas unlawful

https://www.theguardian.com/us-news/2026/jun/08/trump-h-1b-visa-fee-invalidated
14•xpl•36m ago•0 comments

WWDC26: Early Impressions – Tao of Mac

https://taoofmac.com/space/blog/2026/06/08/2040
1•rcarmo•37m ago•0 comments

Routing SDK that cuts gas, slippage, MEV, and bridge fees

https://github.com/passage-cr/routing-sdk
1•passage-cr•37m ago•0 comments