<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/show-hn-cheapsecurity-lightweight-self-hosted-cctv-for-linux-sbcs-1rbtzscp6" -->

---
title: Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV...
description: CheapSecurity is an open-source, self-hosted CCTV system built for Linux single-board computers (Raspberry Pi, Orange Pi, etc.) and standard USB webcams....
canonical: https://daily.dev/posts/show-hn-cheapsecurity-lightweight-self-hosted-cctv-for-linux-sbcs-1rbtzscp6
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV for Linux SBCs | daily.dev
og:description: CheapSecurity is an open-source, self-hosted CCTV system built for Linux single-board computers (Raspberry Pi, Orange Pi, etc.) and standard USB webcams....
og:url: https://daily.dev/posts/show-hn-cheapsecurity-lightweight-self-hosted-cctv-for-linux-sbcs-1rbtzscp6
og:image: https://api.daily.dev/og/posts/1rbTZSCP6.png
og:image:alt: Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV for Linux SBCs
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV for Linux SBCs

**[Hacker News](https://daily.dev/sources/hn)** · 11 min read · 0 upvotes · 0 comments

## Summary

CheapSecurity is an open-source, self-hosted CCTV system built for Linux single-board computers (Raspberry Pi, Orange Pi, etc.) and standard USB webcams. Written in Python with OpenCV, it provides live MJPEG streaming via a Flask web dashboard, motion detection with frame differencing, automatic video recording with a pre-motion buffer, email alerts with snapshots, and Telegram bot integration for remote snapshots and video clips. Additional features include night mode (CLAHE enhancement), bulk recording management, configurable storage cleanup policies, and systemd/Gunicorn production deployment. All footage stays local, requiring no cloud subscriptions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/gmrandazzo/CheapSecurity>

## Community take

How the wider developer community reacted, aggregated from 1 discussion and 30 comments across hackernews (as of 2026-07-27).

**TL;DR:** The community is largely focused on practical camera and software choices for DIY home surveillance, with many recommending IP cameras over USB webcams and praising Frigate as a mature alternative; there's healthy debate about motion detection quality and privacy trade-offs.

**Sentiment:** 35% positive · 45% mixed · 20% skeptical

**The case for**

- Frigate is praised as a powerful, customizable open-source NVR with flexible detection backends.
- Self-hosting provides full control and privacy compared to cloud-dependent cameras like Nest.
- Old Axis and Hanwha IP cameras on eBay are seen as reliable, standards-compliant options.

**The pushback**

- USB webcams are widely considered unreliable for long-term CCTV use due to random failures and poor enclosures.
- Hikvision/Ankke cameras are flagged as banned in several countries over cybersecurity and human rights concerns.
- Naive frame-diffing motion detection (as used by budget cameras like Tapo) produces too many false positives outdoors.
- The project lacks screenshots or GIFs of its UI, making it hard to evaluate at a glance.

**By community**

- hackernews (mixed): Commenters are engaged but quickly pivot to debating camera hardware choices, motion detection quality, and comparisons to established tools like Frigate and Motion, with little direct enthusiasm for the featured project itself.

**Hottest debate:** Whether budget IP cameras (e.g., Tapo) with on-device detection are adequate versus cloud-backed cameras like Nest that offer far better accuracy at the cost of privacy.

**Open questions**

- How does this project's motion detection compare to Frigate or the `motion` package in terms of accuracy and false-positive rate?
- Does it support RTSP/ONVIF IP cameras natively, or is it primarily designed around USB webcams?
- What object detection backends does it support, and what are the hardware requirements?

**Highlights**

> How does this handle motion detection?  Anyone tried it? I have a bunch of Nest cameras and some cheaper Tapo cameras. The "motion detection" is night and day different.  The Tapo does some basic frame-diffing and it's awful.  Shadows? DING DING DiNG MOTION DETECTED! gust of wind made some blades of grass move? Motion! Spider? Motion motion motion! Turn down the sensitivity a notch or two and it won't notice a human walk across the frame 2 meters away. The Tapo ones claim to be smart but twigs and leaves still trigger pet/person/motion alerts. It makes them essentially useless. The Nest cameras are so much better  and their "human" detected is usually zero-false-negatives at the cost of one or two false-positives perhaps once every 3 or 4 months, and their app is superior (tapo one frequently needs to be false-killed to load clips). Yes I am aware that the nest ones are streaming back to google 24/7. Tldr: naive frame-diffing sucks for this sort of thing if used outside. An open source implementation that has accurate and reliable "human detection" would be amazing. Doesn't need to be "AI" - I would hope that there is some sort of computationally reasonable OpenCV way of doing person detection. Perhaps wait for frame-diffing to flag motion then feed it to a more expensive algorithm?
> — [mattlondon on hackernews · 3 comments](https://news.ycombinator.com/item?id=49060335)

> It's actually pretty darn easy nowadays and i'm so glad its the case! Frigate is amazing and the detection package is of your choosing (hardware dependant) and everything is customizable too.
> — [Fabricio20 on hackernews · 1 comments](https://news.ycombinator.com/item?id=49061515)

> For those that don't know, Hikvision is banned in several countries now due to both cybersecurity reasons and human rights violations: https://ipvm.com/reports/hikua-bans
> — [ranger\_danger on hackernews](https://news.ycombinator.com/item?id=49062734)

> > With the price of SBCs nowadays, you'll probably save some money just buying an ip camera. The post you replied to very specifically mentioned using an IP camera. Unless you are paying “proper” money per camera, these days most of them are limited out-of-the-box in ways that are intended to drive you to paying a subscription service to have the recordings stored and processed (and presumably used for AI training whether you agree or not) on someone else's server. The point of this, and other similar projects, is to host that target server yourself to maintain control and privacy. Where it says “such as […] a USB webcam” I assume it is using the same components and libraries that other options do and so will support common IP camera outputs easily too (assuming your camera doesn't protect its feed, or protects it badly, or you can flash it with alternate firmware that doesn't try to lock you in that way), and where it says “such as a spare Linux board …” spare here implies the target audience is people who are likely to have a spare board/box (or resource spare on their home-lab to host an extra container/VM) available so don't need to buy one at current prices.
> — [dspillett on hackernews](https://news.ycombinator.com/item?id=49063686)

> Frigate is pretty cool if you need motion detection. If you don't it's a bit wasteful because it still keeps the whole decoding pipeline active. I've switched to LightNVR that doesn't do that. I have enough alarm sensors (motion and door entry) so I don't need motion on the cams as well. I just record 24/7 for evidence keeping.
> — [wolvoleo on hackernews](https://news.ycombinator.com/item?id=49062321)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=49059398) · 42 points · 30 comments

## Similar posts on daily.dev

- [Cost effective AI Vision for Home Cameras without any hardware upgrades.](https://daily.dev/posts/cost-effective-ai-vision-for-home-cameras-without-any-hardware-upgrades--2m2swveo9) · Medium · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#raspberry-pi](https://daily.dev/tags/raspberry-pi), [#opencv](https://daily.dev/tags/opencv)

[View this post on daily.dev](https://daily.dev/posts/show-hn-cheapsecurity-lightweight-self-hosted-cctv-for-linux-sbcs-1rbtzscp6)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV for Linux SBCs","url":"https://daily.dev/posts/show-hn-cheapsecurity-lightweight-self-hosted-cctv-for-linux-sbcs-1rbtzscp6","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/show-hn-cheapsecurity-lightweight-self-hosted-cctv-for-linux-sbcs-1rbtzscp6"},"datePublished":"2026-07-26T19:14:11.838Z","dateModified":"2026-07-27T01:15:34.410Z","description":"CheapSecurity is an open-source, self-hosted CCTV system built for Linux single-board computers (Raspberry Pi, Orange Pi, etc.) and standard USB webcams....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f610317b35c1bf64c078f8d7584e695c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f610317b35c1bf64c078f8d7584e695c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/show-hn-cheapsecurity-lightweight-self-hosted-cctv-for-linux-sbcs-1rbtzscp6","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,raspberry-pi,opencv","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV for Linux SBCs"}]}
```

