Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PiHome – home automation done with Raspberry PI...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Wojciech Sznapka
May 26, 2015
Programming
0
390
PiHome – home automation done with Raspberry PI and Python
Presented at PyWaw Summit in Warsaw
Wojciech Sznapka
May 26, 2015
Tweet
Share
More Decks by Wojciech Sznapka
See All by Wojciech Sznapka
Getting started with Firebase in Angular
sznapka
1
96
PiHome – home automation done with Raspberry PI and Python
sznapka
0
430
Big data in the trenches
sznapka
1
410
Domain-Driven Design in PHP
sznapka
4
2.1k
Map-Reduce patterns
sznapka
3
300
An introduction to AngularJS
sznapka
0
250
Achieving wise architecture with Symfony2 @ SPUG#5
sznapka
2
240
Smart development environments
sznapka
2
1.6k
Automated tests - facts and myths
sznapka
1
1.7k
Other Decks in Programming
See All in Programming
Event Storming
hschwentner
3
1.3k
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
1.5k
あなたはユーザーではない #PdENight
kajitack
4
300
Claude Codeと2つの巻き戻し戦略 / Two Rewind Strategies with Claude Code
fruitriin
0
200
AI主導でFastAPIのWebサービスを作るときに 人間が構造化すべき境界線
okajun35
0
490
CSC307 Lecture 15
javiergs
PRO
0
210
AIとペアプロして処理時間を97%削減した話 #pyconshizu
kashewnuts
1
190
並行開発のためのコードレビュー
miyukiw
2
2.2k
DSPy入門 Pythonで実現する自動プロンプト最適化 〜人手によるプロンプト調整からの卒業〜
seaturt1e
1
470
コーディングルールの鮮度を保ちたい / keep-fresh-go-internal-conventions
handlename
0
150
Claude Code の Skill で複雑な既存仕様をすっきり整理しよう
yuichirokato
1
270
24時間止められないシステムを守る-医療ITにおけるランサムウェア対策の実際
koukimiura
2
180
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
140
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
120
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
250
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
Abbi's Birthday
coloredviolet
2
5.1k
WCS-LA-2024
lcolladotor
0
470
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
280
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
450
Ethics towards AI in product and experience design
skipperchong
2
210
Transcript
PiHome – home automation done with Raspberry PI and Python
Wojciech Sznapka Head of Development @ Cherry Poland Twitter: @sznapka PyWaw Summit. Warsaw 2015
None
Features • Steering (switches): – Floor heating steering (on /
off / delayed) – Hot water pump steering – Lights • Sensors: – Current temperature – Draw charts • History: – switches state – temperatures
Hardware • Raspberry PI B • Switches module (230V) controlled
via Ethernet (ready-made board) • Dallas ds18b20 one wire temperature sensors • Bread-board and bunch of wires
None
None
None
Software • Raspbian – with GPIO modules – Supervisord –
Apache + WSGI • Pihome-api – Python – Flask – JSON • PiHome – AngularJS as a SPA frontend – Twitter Bootstrap – optimized for mobile – Grunt, Bower, Yeoman • CLI tasks – Queue consumers – Celery tasks
Software • RabbitMQ – relay “store” requests (failover) • Celery
- “delayed” on / off • MongoDB (hosted at compose.io) – history of sensors and switches • Memcached
None
Future • Predict time when user wants to use hot
water* • More switches (door, window blinds) • Connect to alarm to know where users are (PIR sensors) * Machine learning
Lesson learned • Don't rely much on WiFi (have fallback
/ queue) • Don't play around with higher voltages unless you're pretty sure what're you doing... • Be prepared for frequent and random restarts • There plenty of ready made components, soldering is often last thing, if you want to get things fast
Thanks :-) https://github.com/wowo/pihome https://github.com/wowo/pihome-api
[email protected]