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!

Basic Concepts of Quantum Mechanics by L. vs. Tarasov (2021)

https://archive.org/details/tarasov-basic-concepts-of-quantum-mechanics-2021
1•vismit2000•2m ago•0 comments

Problems in Mathematics with Hints and Solutions (1982)

https://archive.org/details/v.-govorov-p.-dybov-n.-miroshin-s.-smirnova-problems-in-mathematics-w...
1•vismit2000•3m ago•0 comments

Impatient Programming

https://impatientprogramming.org/
1•andrii•6m ago•0 comments

Any software developers not ready for FIRE changing their careers?

https://old.reddit.com/r/financialindependence/comments/1xk9sy2/any_software_developers_not_ready...
2•SenHeng•9m ago•0 comments

Paying for the same upstream refresh twice (Snowflake) [video]

https://www.youtube.com/shorts/8PJy-d8ulGE
1•yanivleven•11m ago•0 comments

Developer makes Windows 11 26H2 work on insanely low 128MB RAM

https://www.neowin.net/news/developer-makes-windows-11-26h2-work-on-insanely-low-128mb-ram/
1•giuliomagnifico•13m ago•0 comments

Why Touching an Am Radio Tower with Grass Plays Sound [video]

https://www.youtube.com/shorts/DVhvMdLkubM
1•thunderbong•14m ago•0 comments

Show HN: EBI Space – In-session screen time awareness without harsh lockouts

https://ebispace.app/
1•ekhadivar•17m ago•0 comments

Terence Tao: The Year Math Changed Forever

https://www.newyorker.com/magazine/2026/11/09/the-year-math-changed-forever
1•lukko•20m ago•0 comments

Socialista – Generate static ads and UGC videos from product images

https://socialista.app
1•kbehov•20m ago•0 comments

noyb win: French electronics retailer Fnac Darty fined €7M

https://noyb.eu/en/noyb-win-french-electronics-retailer-fnac-darty-fined-eu7-million
2•latexr•21m ago•0 comments

See what Claude Code reads and edits, live, in a file tree

https://github.com/Marius-Adam/claude-files-pane/blob/main/docs/demo.gif
2•betterPattern•22m ago•0 comments

A simpler way to put ChatGPT to work (A shared allowance for ChatGPT and Codex)

1•daneel951•25m ago•1 comments

How RimWorld 1.7 Lets You Commit War Crimes Faster [video]

https://www.youtube.com/watch?v=EdRteMjyC4k
1•skibz•30m ago•0 comments

Show HN: Detox Mode – A Flutter app to help reduce smartphone distractions

https://play.google.com/store/apps/details?id=com.saurabh.detox&hl=en_US
1•saurabh_yagyik•32m ago•0 comments

Alkaline batteries are obsolete – but their predecessor isn't [video]

https://www.youtube.com/watch?v=I1rlK3BKmyA
2•vismit2000•43m ago•0 comments

SATORATOS: Read classics from the source with original translations and notes

https://satoratos.org/
1•al_mutanabby•45m ago•0 comments

Show HN: BeachFinder – Find beaches with the right conditions

https://getbeachfinder.com
1•TitOo•46m ago•0 comments

Show HN: tld - Create and explore nested diagrams like a map

https://github.com/Mertcikla/tld
1•mertcikla•48m ago•0 comments

Show HN: AIOps Cockpit – An open-source AI SRE with human-in-the-loop safety

https://github.com/matricphase-dot/aiops
1•adityam_9911•50m ago•0 comments

Democracy Has a Learning Problem – The Long Listen

https://shows.acast.com/cognitive-republic-building-societies-that-experiment-learn/episodes/6ae0...
1•smomara•50m ago•1 comments

The OLED MacBook Pro Wipes Out Eight Years of Price Drops

https://thrifle.com/blog/macbook-pro-price-history
1•taubek•50m ago•0 comments

Norway makes shithouses great again

https://www.visitnorway.com/plan-your-trip/travel-tips-a-z/norwegian-scenic-routes/worlds-best-to...
87•giuliomagnifico•51m ago•33 comments

AI Warning for Steam – Increases Visibility of AI Generated Content Disclosures

https://github.com/seeeeew/aiwarningforsteam
1•SockThief•51m ago•0 comments

Tilix2

https://github.com/markuman/tilix2
1•markuman123•52m ago•0 comments

Domain hacks with unusual Unicode characters (2018)

https://xn--69f31l4t57c0mag4b613h.xn--7uh4898msjaso/🆆🆃🅵/
4•n_plus_1_acc•54m ago•1 comments

Psychedelic nasal spray reduced treatment-resistant depression for 8 weeks

https://www.psypost.org/single-dose-of-psychedelic-nasal-spray-reduced-treatment-resistant-depres...
2•giuliomagnifico•57m ago•0 comments

Tell HN: Claude Code now defaults to Haiku 5.5

2•albert_e•59m ago•0 comments

Protuna: Optuna but for Proteins

https://github.com/kumarshreshtha/protuna
1•kshreshtha•59m ago•0 comments

Official Lockheed Martin account vague posting

https://twitter.com/LockheedMartin/status/2116500446709703132
1•dmos62•1h ago•0 comments