ENGINEERING 200 upvotes 2016

How we built a Smart Office system based on Raspberry Pi

200 pts
Hacker News Signal
2016 · Shared by @dragonbonheur
How we built a Smart Office system based on Raspberry Pi by @dragonbonheur

Retrospective Overview & Key Insights

Distilled reflections, business mechanics, and tactical takeaways:

In this technical retrospective (2016), @dragonbonheur shares practical architectural lessons learned from running, scaling, or migrating production software under lean constraints.

Core Principles for Independent Builders:
1
Defaulting to simpler architectures (such as monolithic frameworks, SQLite, or managed VPS) prevents early engineering bankruptcy.
2
Evaluating true compute and egress costs reveals that high cloud bills can often be slashed by 80%+ through judicious re-platforming.
3
Code you write at 2 AM as a solo engineer must be easy to debug six months later without complex microservice dependencies.
Community Debate Themes:

HN engineers debated the tradeoffs between cloud convenience and raw server economics, database indexing strategies, and resisting premature architectural complexity.

Community Discussions & Critical Reviews

Key perspectives, counter-arguments, and peer founder insights debated on Hacker News (63 total discussions):

KI @kimburgess Peer Contributor
LO @Loic Peer Contributor

A DIY-solution is nice (and as engineers something really fun to do) but they will have to maintain it in the future and this is not necessarily "future proof". They would have simply put some KNX[0] compatible components in the system, they would have had control of everything using an open standard. They could have connect light, security cams, door locks, the power plugs, etc... and because this is a standard, the day they move out of the office, they will be able to resell the system to the next users.

[0]: https://knx.org ↗

DE @detaro Peer Contributor

Good to see in a DIY-solution:

The light control set up is fail-safe. If something with the RPi goes terribly wrong, we could still operate the lights in the “classic” analog way.

(I wish they'd explained how they do it, but I assume they use latching relays to switch the actual lights, so RPis and light switches can work in parallel)

Using the chrome debugging protocol for the remote screens is also quite clever.

RE @revelation Peer Contributor

That's like saying "How we built a Smart Office system based on Electricity", the RPi is just any old single board computer here with some GPIOs.

In any case, I sure hope they have mounted their SD cards as read-only, because otherwise they might find their keycard system not working one early morning in approximately a year or 2-3 random power off events. Theres a reason for these PLC systems after all.

CE @cerved Peer Contributor

Fun to see someone do this with the pi.

I wonder how they handle security. Especially since it also controls access to the facility.

Also, would be pretty funny if the RPis went all Hall one day.

HISTORICAL ERA Cloud & Mobile Era (2014–2019)
COMMUNITY SCORE 200 points
TOTAL DISCUSSIONS 63 comments
TOPICS & TECH STACK: