Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
Chargement dans…3
×
1 sur 114

Sauron: DIY home security with Ruby!

0

Partager

Télécharger pour lire hors ligne

This is the story of how I built an all-seeing eye with Ruby, and how I use it to defend the sanctity of my suburban home.

Using a Raspberry Pi and some homemade motion detection software I've developed a home security system that can send me notifications on my phone and photograph intruders. It uses perceptual hashes to detect image changes and archives anything unusual. I can even set a custom alerting threshold and graph disturbances over time.

If you've ever had the desire to be an evil wizard with a glowing fireball of an eye this talk is perfect for you. Come play with Sauron.

Sauron: DIY home security with Ruby!

  1. 1. I’m Jonan also @1337807
  2. 2. I’m from Portland
  3. 3. They call me Webmaster
  4. 4. Also New Relic
  5. 5. One of us bit.ly/nerdlife
  6. 6. ?
  7. 7. The Solution™
  8. 8. Sauron (the gem)
  9. 9. Sauron All Seeing Eye (the gem)
  10. 10. Sauron All Seeing Eye Pi (the gem)
  11. 11. THE CLOUDS
  12. 12. Queue!
  13. 13. API
  14. 14. Keep it simple
  15. 15. Keep it simple everything
  16. 16. What is a perceptual hash?
  17. 17. A perceptual hash is a fingerprint of a multimedia file derived from various features from its content. - phash.org
  18. 18. A number. - Jonan
  19. 19. 16393111612461007871
  20. 20. 11100011 10000000 00001000 00101000 00111000 00010001 11000011 11111111
  21. 21. 11100011 10000000 00001000 00101000 00111000 00010001 11000011 11111111
  22. 22. 16393111612461007871 to_i(2) 11100011 10000000 00001000 00101000 00111000 00010001 11000011 11111111
  23. 23. Detecting change
  24. 24. In information theory, the Hamming distance between two strings of equal length is the number of positions at which the corresponding symbols are different. - Wikipedia
  25. 25. Differentiness. -Jonan
  26. 26. 00000000 00001000 => 1
  27. 27. 00000000 01001100 => 3
  28. 28. 11100011 10000000 00001000 00101000 00111000 00010001 11000011 11111111
  29. 29. AllSeeingPi Responsibilities
  30. 30. Palantir Responsibilities
  31. 31. UI
  32. 32. 11100011 10000000 00001000 00101000 00111000 00010001 11000011 11111111 11100011 10000000 00001000 00101000 00111000 00010001 11000011 11111111
  33. 33. 11100011 10000000 00001000 00000010 00101000 11111100 00111000 00001000 00010001 00101000 ! 11000011 00111000 11111111 00010001 00111101 00000000
  34. 34. 11100011 10000000 00001000 00000010 00101000 11111100 00111000 00001000 00010001 00101000 ! ! 11000011 00111000 11111111 00010001 00111101 00000000
  35. 35. 11100011 10000000 00001000 00000010 00101000 11111100 00111000 00001000 00010001 00101000 ! 11000011 00111000 11111111 00010001 00111101 00000000
  36. 36. 11100011 10000000 00001000 00101000 00111000 00010001 11000011 11111111 X
  37. 37. Cloud Responsibilities
  38. 38. I can do stuff! - the cloud No. - me
  39. 39. aws-sdk
  40. 40. aws-sdk fog
  41. 41. vcr mock
  42. 42. fabrication
  43. 43. faker
  44. 44. 1 THING
  45. 45. 2 THINGS!
  46. 46. No.
  47. 47. 1 THING
  48. 48. API
  49. 49. API Grape!
  50. 50. API Grape!
  51. 51. API Grape!
  52. 52. Everything
  53. 53. Keep it simple
  54. 54. Rails callbacks
  55. 55. New Image
  56. 56. New image Create event
  57. 57. New Image Create event (sometimes)
  58. 58. New Image Create event (sometimes)
  59. 59. New Image Copy to event
  60. 60. New Image Delete old image
  61. 61. New Image Create event
  62. 62. New Event !
  63. 63. New Event Name !
  64. 64. New Event Name !
  65. 65. New Event Create directory !
  66. 66. New Event Create directory ! !
  67. 67. New Event Create directory !
  68. 68. New Event Copy images !
  69. 69. New Event Assign last image !
  70. 70. New Event Send notification !
  71. 71. New Event Send notification !
  72. 72. New Event Send notification !
  73. 73. Keep it simple
  74. 74. Keep it simple
  75. 75. Anything else.
  76. 76. Want one?
  77. 77. $40
  78. 78. Demo?
  79. 79. The Future!
  80. 80. Faster setup
  81. 81. AI
  82. 82. Fix everything
  83. 83. raspifastcamd
  84. 84. multiple cameras
  85. 85. thanks :)

×