SlideShare ist ein Scribd-Unternehmen logo
1 von 12
monitoring

Home automation with Perl
Raspberry Pi, 868MHz, FHEM, Redis, Logstash , Kibana and
Elasticsearch
The hardware
▪ Raspberry Pi

▪ COC (868MHz)
▪ JeeLink
▪ FS20
▪ Homematic
The software stack
▪ FHEM (perl!)

▪ Redis
▪ Logstash
▪ Elasticsearch
▪ Kibana
What is FHEM
▪ Home automation system

▪ Written in Perl
▪ Badly documented (mostly German)
▪ Great auto-configure functionality
▪ Has web interface and Android app
What is Redis
▪ An advanced in-memory key-value data store.

▪ FAST!!
▪ Durable (configurable disk-write)
▪ Single-threaded

▪ Lots of fancy features (lists, hashes, sets)
▪ Very well documented
▪ Great perl module

▪ Not very scalable… master-slave possible
What is Logstash
▪ A tool for managing events and logs

▪ Primarily an interface - between sources (redis, files, pipes, …) and
storage (elasticsearch, mongodb, email, …)
▪ Lots of very helpful filters (date, grok, geoip, …)

▪ Horizontally scalable
▪ Fantastic community “If a newbie has a bad time, it’s a bug”
What is Elasticsearch
▪ Elasticsearch is a search server based on Lucene

▪ Very easy to set up
▪ Very horizontally scalable
▪ Written in Java…

▪ Great RESTful API
▪ Great perl module written by the developers themselves
▪ Needs BIG hardware (500 million events/day: 132GB RAM, 16 cores)

▪ Stability….. :-/
The costs (so far…)
Device

Unit cost

Total

RPi + Power + SD card

50

50

COC 868MHz

75

75

JeeLink v3 868MHz

32

32

EM1000 power monitor

34

68

PCA301 remote socket with power monitor

34

34

HMS100TF remote thermometer/hydrometer

25

50

Total

309
Concerns
▪ Security for actuators

▪ Social implications – Big Brother
▪ Catastrophic Corner Cases
Questions…?
Links
▪ FHEM

http://fhem.de/fhem.html

▪ Redis

http://redis.io/ (The little Redis book)

▪ Logstash

http://logstash.net/

▪ Elasticsearch

http://www.elasticsearch.org/

▪ ELV Elektronik

http://www.elv.de/

▪ Busware

http://busware.de/

▪ Raspberry Pi

http://www.raspberrypi.org/

Weitere ähnliche Inhalte

Andere mochten auch

German Perl Workshop 2015 - Infrastruktur als Code
German Perl Workshop 2015 - Infrastruktur als CodeGerman Perl Workshop 2015 - Infrastruktur als Code
German Perl Workshop 2015 - Infrastruktur als Code
Jan Gehring
 
A Practical Event Driven Model
A Practical Event Driven ModelA Practical Event Driven Model
A Practical Event Driven Model
Xi Wu
 
Scale like a pro with Gearman
Scale like a pro with GearmanScale like a pro with Gearman
Scale like a pro with Gearman
Amal Raghav
 
WebCamp: Developer Day: N2O: The Most Powerful Erlang Web Framework - Максим ...
WebCamp: Developer Day: N2O: The Most Powerful Erlang Web Framework - Максим ...WebCamp: Developer Day: N2O: The Most Powerful Erlang Web Framework - Максим ...
WebCamp: Developer Day: N2O: The Most Powerful Erlang Web Framework - Максим ...
GeeksLab Odessa
 
Perl.Hacks.On.Vim
Perl.Hacks.On.VimPerl.Hacks.On.Vim
Perl.Hacks.On.Vim
Lin Yo-An
 

Andere mochten auch (20)

Candra lab gis v 1
Candra lab gis v 1Candra lab gis v 1
Candra lab gis v 1
 
Home alarm & automation
Home alarm & automationHome alarm & automation
Home alarm & automation
 
Home Automation
Home AutomationHome Automation
Home Automation
 
IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3
 
Gearinfive
GearinfiveGearinfive
Gearinfive
 
Distribute the workload, PHPTek, Amsterdam, 2011
Distribute the workload, PHPTek, Amsterdam, 2011Distribute the workload, PHPTek, Amsterdam, 2011
Distribute the workload, PHPTek, Amsterdam, 2011
 
German Perl Workshop 2015 - Infrastruktur als Code
German Perl Workshop 2015 - Infrastruktur als CodeGerman Perl Workshop 2015 - Infrastruktur als Code
German Perl Workshop 2015 - Infrastruktur als Code
 
A Practical Event Driven Model
A Practical Event Driven ModelA Practical Event Driven Model
A Practical Event Driven Model
 
Power Group presentation Medigroup stock-movement
Power Group presentation Medigroup stock-movementPower Group presentation Medigroup stock-movement
Power Group presentation Medigroup stock-movement
 
Gearman
GearmanGearman
Gearman
 
Raspberry pi 2 demo
Raspberry pi 2 demoRaspberry pi 2 demo
Raspberry pi 2 demo
 
Gearman - Job Queue
Gearman - Job QueueGearman - Job Queue
Gearman - Job Queue
 
Basics of Raspberry Pi
Basics of Raspberry PiBasics of Raspberry Pi
Basics of Raspberry Pi
 
Scale like an ant, distribute the workload - DPC, Amsterdam, 2011
Scale like an ant, distribute the workload - DPC, Amsterdam,  2011Scale like an ant, distribute the workload - DPC, Amsterdam,  2011
Scale like an ant, distribute the workload - DPC, Amsterdam, 2011
 
Scale like a pro with Gearman
Scale like a pro with GearmanScale like a pro with Gearman
Scale like a pro with Gearman
 
WebCamp: Developer Day: N2O: The Most Powerful Erlang Web Framework - Максим ...
WebCamp: Developer Day: N2O: The Most Powerful Erlang Web Framework - Максим ...WebCamp: Developer Day: N2O: The Most Powerful Erlang Web Framework - Максим ...
WebCamp: Developer Day: N2O: The Most Powerful Erlang Web Framework - Максим ...
 
MPI, Erlang and the web
MPI, Erlang and the webMPI, Erlang and the web
MPI, Erlang and the web
 
Smart DoorBell - Make your door smart with Raspberry Pi!
Smart DoorBell - Make your door smart with Raspberry Pi!Smart DoorBell - Make your door smart with Raspberry Pi!
Smart DoorBell - Make your door smart with Raspberry Pi!
 
Perl.Hacks.On.Vim
Perl.Hacks.On.VimPerl.Hacks.On.Vim
Perl.Hacks.On.Vim
 
Gearman for MySQL
Gearman for MySQLGearman for MySQL
Gearman for MySQL
 

Ähnlich wie Home Automation with perl

Polyglot Architecture: A Rational Approach to Software Design
Polyglot Architecture: A Rational Approach to Software DesignPolyglot Architecture: A Rational Approach to Software Design
Polyglot Architecture: A Rational Approach to Software Design
kompalg
 
Messaging, interoperability and log aggregation - a new framework
Messaging, interoperability and log aggregation - a new frameworkMessaging, interoperability and log aggregation - a new framework
Messaging, interoperability and log aggregation - a new framework
Tomas Doran
 
Redis everywhere - PHP London
Redis everywhere - PHP LondonRedis everywhere - PHP London
Redis everywhere - PHP London
Ricard Clau
 

Ähnlich wie Home Automation with perl (20)

Speed up your Symfony2 application and build awesome features with Redis
Speed up your Symfony2 application and build awesome features with RedisSpeed up your Symfony2 application and build awesome features with Redis
Speed up your Symfony2 application and build awesome features with Redis
 
Review of KohaCon18
Review of KohaCon18Review of KohaCon18
Review of KohaCon18
 
Apache Content Technologies
Apache Content TechnologiesApache Content Technologies
Apache Content Technologies
 
Scaling with Symfony - PHP UK
Scaling with Symfony - PHP UKScaling with Symfony - PHP UK
Scaling with Symfony - PHP UK
 
Supercharging Data Performance for Real-Time Data Analysis
Supercharging Data Performance for Real-Time Data Analysis Supercharging Data Performance for Real-Time Data Analysis
Supercharging Data Performance for Real-Time Data Analysis
 
Interoperable PHP
Interoperable PHPInteroperable PHP
Interoperable PHP
 
If You Have The Content, Then Apache Has The Technology!
If You Have The Content, Then Apache Has The Technology!If You Have The Content, Then Apache Has The Technology!
If You Have The Content, Then Apache Has The Technology!
 
Redis Modules - Redis India Tour - 2017
Redis Modules - Redis India Tour - 2017Redis Modules - Redis India Tour - 2017
Redis Modules - Redis India Tour - 2017
 
PLNOG 18 - Paweł Małachowski - Spy hard czyli regexpem po pakietach
PLNOG 18 - Paweł Małachowski - Spy hard czyli regexpem po pakietachPLNOG 18 - Paweł Małachowski - Spy hard czyli regexpem po pakietach
PLNOG 18 - Paweł Małachowski - Spy hard czyli regexpem po pakietach
 
Building Google-in-a-box: using Apache SolrCloud and Bigtop to index your big...
Building Google-in-a-box: using Apache SolrCloud and Bigtop to index your big...Building Google-in-a-box: using Apache SolrCloud and Bigtop to index your big...
Building Google-in-a-box: using Apache SolrCloud and Bigtop to index your big...
 
Large-scale Web Apps @ Pinterest
Large-scale Web Apps @ PinterestLarge-scale Web Apps @ Pinterest
Large-scale Web Apps @ Pinterest
 
Exploring the ABC's of Raspberry Pi with Python
Exploring the ABC's of Raspberry Pi with PythonExploring the ABC's of Raspberry Pi with Python
Exploring the ABC's of Raspberry Pi with Python
 
Portable PHP
Portable PHPPortable PHP
Portable PHP
 
Spy hard, challenges of 100G deep packet inspection on x86 platform
Spy hard, challenges of 100G deep packet inspection on x86 platformSpy hard, challenges of 100G deep packet inspection on x86 platform
Spy hard, challenges of 100G deep packet inspection on x86 platform
 
Polyglot Architecture: A Rational Approach to Software Design
Polyglot Architecture: A Rational Approach to Software DesignPolyglot Architecture: A Rational Approach to Software Design
Polyglot Architecture: A Rational Approach to Software Design
 
PHP-GTK
PHP-GTKPHP-GTK
PHP-GTK
 
PHP-GTK
PHP-GTKPHP-GTK
PHP-GTK
 
Messaging, interoperability and log aggregation - a new framework
Messaging, interoperability and log aggregation - a new frameworkMessaging, interoperability and log aggregation - a new framework
Messaging, interoperability and log aggregation - a new framework
 
Linux basics (part 2)
Linux basics (part 2)Linux basics (part 2)
Linux basics (part 2)
 
Redis everywhere - PHP London
Redis everywhere - PHP LondonRedis everywhere - PHP London
Redis everywhere - PHP London
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 

Home Automation with perl

  • 1. monitoring Home automation with Perl Raspberry Pi, 868MHz, FHEM, Redis, Logstash , Kibana and Elasticsearch
  • 2. The hardware ▪ Raspberry Pi ▪ COC (868MHz) ▪ JeeLink ▪ FS20 ▪ Homematic
  • 3.
  • 4. The software stack ▪ FHEM (perl!) ▪ Redis ▪ Logstash ▪ Elasticsearch ▪ Kibana
  • 5. What is FHEM ▪ Home automation system ▪ Written in Perl ▪ Badly documented (mostly German) ▪ Great auto-configure functionality ▪ Has web interface and Android app
  • 6. What is Redis ▪ An advanced in-memory key-value data store. ▪ FAST!! ▪ Durable (configurable disk-write) ▪ Single-threaded ▪ Lots of fancy features (lists, hashes, sets) ▪ Very well documented ▪ Great perl module ▪ Not very scalable… master-slave possible
  • 7. What is Logstash ▪ A tool for managing events and logs ▪ Primarily an interface - between sources (redis, files, pipes, …) and storage (elasticsearch, mongodb, email, …) ▪ Lots of very helpful filters (date, grok, geoip, …) ▪ Horizontally scalable ▪ Fantastic community “If a newbie has a bad time, it’s a bug”
  • 8. What is Elasticsearch ▪ Elasticsearch is a search server based on Lucene ▪ Very easy to set up ▪ Very horizontally scalable ▪ Written in Java… ▪ Great RESTful API ▪ Great perl module written by the developers themselves ▪ Needs BIG hardware (500 million events/day: 132GB RAM, 16 cores) ▪ Stability….. :-/
  • 9. The costs (so far…) Device Unit cost Total RPi + Power + SD card 50 50 COC 868MHz 75 75 JeeLink v3 868MHz 32 32 EM1000 power monitor 34 68 PCA301 remote socket with power monitor 34 34 HMS100TF remote thermometer/hydrometer 25 50 Total 309
  • 10. Concerns ▪ Security for actuators ▪ Social implications – Big Brother ▪ Catastrophic Corner Cases
  • 12. Links ▪ FHEM http://fhem.de/fhem.html ▪ Redis http://redis.io/ (The little Redis book) ▪ Logstash http://logstash.net/ ▪ Elasticsearch http://www.elasticsearch.org/ ▪ ELV Elektronik http://www.elv.de/ ▪ Busware http://busware.de/ ▪ Raspberry Pi http://www.raspberrypi.org/