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!

Everything you ever wanted to know about terminals (but were afraid to ask)

https://xn--rpa.cc/irl/term.html
1•Antibabelic•4m ago•0 comments

Safety Companion App

https://apps.apple.com/us/app/kai-companion/id6756260239
1•Ilja_Gr•7m ago•1 comments

Emposat Denies Knowledge of Iran Using Chinese Satellite via Its Ground Stations

https://www.china-in-space.com/p/emposat-denies-knowledge-of-iran
1•JPLeRouzic•8m ago•0 comments

Pancreatic cancer mRNA vaccine shows lasting results in an early trial

https://www.nbcnews.com/health/cancer/pancreatic-cancer-mrna-vaccine-shows-lasting-results-early-...
2•doener•9m ago•0 comments

Anthropic Claude Code Leak Reveals Critical Command Injection Vulnerabilities

https://beyondmachines.net/event_details/anthropic-claude-code-leak-reveals-critical-command-inje...
2•croes•15m ago•1 comments

IEA: Solar overtakes all energy sources in a major global first

https://electrek.co/2026/04/19/iea-solar-overtakes-all-energy-sources-in-a-major-global-first/
1•Klaster_1•16m ago•1 comments

Libero – Gleam Library Renders REST Obsolete for Spas and Erlang-Based Clients

https://github.com/pairshaped/libero
1•MrJulia•18m ago•0 comments

Intel refreshes non-Ultra Core CPUs with new silicon for the first time

https://arstechnica.com/gadgets/2026/04/intels-non-ultra-core-cpus-are-new-silicon-this-year-for-...
2•rbanffy•21m ago•1 comments

Brave Premium

https://account.brave.com/?intent=checkout&product=origin
1•lijialjun•23m ago•1 comments

Forward Guidance with Mark Carney [video]

https://www.youtube.com/watch?v=uk2TZwkhi4E
1•pedalpete•23m ago•1 comments

A Crossroad at a Branch

http://www.vex.net/~trebla/haskell/crossroad.xhtml
2•sph•23m ago•0 comments

Ask HN: Scanslop.com on Reddit a Privacy Nightmare?

1•znpy•24m ago•0 comments

Viral Takeover [video]

https://www.youtube.com/watch?v=Cvb1mg2GxsY
1•alex1138•24m ago•0 comments

How Long Poop Stays in Your Body May Impact Your Health, Study Finds

https://www.sciencealert.com/how-long-poop-stays-in-your-body-may-impact-your-health-study-finds
6•mikhael•28m ago•1 comments

Show HN: VS Code extension that predicts Git merge conflicts before they happen

https://marketplace.visualstudio.com/items?itemName=SukantaSaha.mergeguard
1•lalata•28m ago•1 comments

Show HN: Translate LLM API Calls Across OpenAI, Anthropic, and Gemini

https://github.com/Oaklight/llm-rosetta
1•Oaklight•30m ago•0 comments

Just like phishing for gullible humans, prompt injecting AIs is here to stay

https://www.theregister.com/2026/04/19/just_like_phishing_for_gullible/
1•beardyw•31m ago•0 comments

OpenAI Executive Kevin Weil Is Leaving the Company

https://www.wired.com/story/openai-executive-kevin-weil-is-leaving-the-company/
1•joozio•34m ago•0 comments

Topology Meets Machine Learning: The Euler Characteristic Transform [pdf]

https://www.ams.org/journals/notices/202507/rnoti-p719.pdf
1•ganitam•36m ago•0 comments

Our Project Hail Mary: The Observability Setup Behind an Observability Tool

https://newsletter.signoz.io/p/our-project-hail-mary-the-observability
1•elza_1111•36m ago•0 comments

Why don't centre-pivot irrigation fields use hexagonal packing?

https://old.reddit.com/r/geography/comments/1sqedsf/why_dont_centrepivot_irrigation_fields_use/
2•calcsam•36m ago•0 comments

Diagnosing Random MariaDB Freezes on Frappe Cloud

https://frappe.io/blog/frappe-cloud/diagnosing-random-mariadb-freezes-on-frappe-cloud
1•TanmoySarkar•36m ago•0 comments

BreachForums logs reveal anonymizers of choice for shady characters

https://www.okta.com/blog/threat-intelligence/blocking_shady_network/
2•Cider9986•38m ago•1 comments

Ray Optics Simulation

https://phydemo.app/ray-optics/
2•the-mitr•38m ago•0 comments

The logical trap: why blocking "cheap" ads crashed my RPM by 60%

https://webmatrices.com/post/the-logical-trap-why-blocking-cheap-ads-crashed-my-rpm-by-60
1•bishwasbh•39m ago•0 comments

GitNexus: Client-side knowledge graph creator that runs in the browser

https://github.com/abhigyanpatwari/GitNexus
2•saikatsg•41m ago•0 comments

Ask HN: Kernel debugging on Apple Silicon

1•dirtb1ke•43m ago•1 comments

Unofficial List of Siri Commands

https://github.com/extratone/siri
1•ryan-ca•47m ago•0 comments

Businesses can claim refunds for tariffs declared unconstitutional

https://apnews.com/article/tariff-refund-trump-customs-08861f153801156d213c30c4e2f6a683
2•geox•48m ago•1 comments

The great Scouse pasty war

https://www.livpost.co.uk/the-great-scouse-pasty-war/
1•DamonHD•51m ago•0 comments