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!

Is It Possible to Block Childrens' Access to Social Media? [video]

https://www.youtube.com/watch?v=2jJeSgO_MGo
1•dev_hugepages•30s ago•0 comments

How Russian President Vladimir Putin plans to live forever

https://www.vox.com/podcasts/491360/vladimir-putin-live-forever-26-billion-cryo-pigs-longevity-guru
1•thunderbong•1m ago•0 comments

Ask HN: Using OPA/Rego to secure MCP tool execution. Does it make sense?

2•wmolino•10m ago•0 comments

Show HN: AI Voice Generator for Creators

https://speakora.io/
1•laimingj•12m ago•0 comments

I made SHORT SQUEEZE, a finance movie trailer created with AI

https://www.instagram.com/reel/DZy5nOKN7Pz/
1•pyipeng•15m ago•0 comments

Mastodon 4.6 Released

https://lwn.net/Articles/1078466/
1•daesorin•15m ago•0 comments

Voxtral Realtime WebGPU – A Hugging Face Space by Mistralai

https://huggingface.co/spaces/mistralai/Voxtral-Realtime-WebGPU
1•fagnerbrack•18m ago•0 comments

Release 4.0.0 · HuggingFace/Transformers.js

https://github.com/huggingface/transformers.js/releases/tag/4.0.0
1•fagnerbrack•18m ago•0 comments

Big tech engineers need big egos

https://www.seangoedecke.com/big-tech-needs-big-egos/
2•fagnerbrack•19m ago•0 comments

Lisp in the Rust Type System

https://github.com/playX18/lisp-in-types/
2•quasigloam•27m ago•0 comments

Bevy 0.19

https://bevy.org/news/bevy-0-19/
2•paavohtl•31m ago•0 comments

Before SpaceX IPO, Investors in China Acquired Stakes

https://www.propublica.org/article/spacex-elon-musk-ipo-foreign-investors-china
4•ilreb•31m ago•0 comments

I Stored a Website in a Favicon

https://www.timwehrle.de/blog/i-stored-a-website-in-a-favicon/
13•theanonymousone•37m ago•3 comments

Gizmodo breached, hosting malware and no action taken for hours

https://old.reddit.com/r/cybersecurity_help/comments/1uajrup/beware_gizmodo_captcha_malware_attempt/
2•mullingitover•45m ago•1 comments

Virtual whiteboard for sketching hand-drawn like diagrams

https://github.com/excalidraw/excalidraw
1•modinfo•51m ago•0 comments

Bun 1.4 coming July 7th

https://twitter.com/jarredsumner/status/2068059134952677887
1•sorenbs•54m ago•0 comments

Show HN: I wrote a Rust book ending with a Redis clone

https://shankhan3.gumroad.com/l/dnwmtp
1•zeeshanali0094•56m ago•0 comments

Ask HN: What's a simple app you'd build if you had a weekend?

2•akashwadhwani35•57m ago•2 comments

GenAIDojo

https://www.genaidojo.io/
1•aniketwattawmar•1h ago•0 comments

EAS Alarm at midnight caused by a hacker in Brazil

https://www.reddit.com/r/mildlyinfuriating/s/wLRv2s1u5k
2•davidkwast•1h ago•2 comments

Study: Conservatives are dying at higher rates than liberals

https://www.fastcompany.com/91561329/widening-health-gap-between-liberals-and-conservatives
3•MilnerRoute•1h ago•0 comments

The New Calculus of AI-Based Coding

https://blog.joemag.dev/2025/10/the-new-calculus-of-ai-based...
2•aabdi•1h ago•1 comments

Designing a backyard deck for my house

https://blog.cosmin.cloud/posts/diy-deck.html
1•spycraft•1h ago•0 comments

Compress tool outputs, logs, files, RAG chunks before LLM for 60-95% less tokens

https://github.com/chopratejas/headroom
1•gmays•1h ago•0 comments

Trapped in a Waymo: SF passenger recounts terrifying construction zone ordeal

https://abc7news.com/post/waymo-recall-san-francisco-man-recounts-terrifying-moment-when-robotaxi...
2•mikhael•1h ago•0 comments

Show HN: Stocks Porfolio in a URL and Favicon

https://stocksreader.com/
2•franciscop•1h ago•1 comments

Bureaulogy – formation, evolution, and perpetuation of bureaucracies

https://grantslatton.com/bureaulogy
2•thelastgallon•1h ago•1 comments

Chromium Embedded Framework (CEF)

https://github.com/chromiumembedded/cef
1•auraham•1h ago•0 comments

The Punctum and the Blind Field

https://theholbrookreport.com/reports/punctum-and-the-blind-field/
1•TyrunDemeg101•1h ago•0 comments

China will have a Fable 5-class AI model before next year

https://www.tomshardware.com/tech-industry/artificial-intelligence/elon-musk-says-that-china-will...
7•achow•1h ago•0 comments