Slide 1

Slide 1 text

Mapping Your World
 with Ruby @matschaffer Site Reliability Engineer elastic.co - safecast.org

Slide 2

Slide 2 text

Are you safe?

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

http://safecast.org/tilemap/?y=34.39104&x=132.45052&z=16&l=0&m=0

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

- the project - ruby - learnings - involvement

Slide 8

Slide 8 text

14:46:24 JST - March 11, 2011

Slide 9

Slide 9 text

NHK News - April 22nd, 2011

Slide 10

Slide 10 text

no data

Slide 11

Slide 11 text

no sensors

Slide 12

Slide 12 text

omg

Slide 13

Slide 13 text

Experience DIY Development Action Funding

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

April 20th, 2011

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

It worked!

Slide 18

Slide 18 text

It worked! April 24th, 2011

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

bgeigie mobile, crowd-sourced sensors

Slide 23

Slide 23 text

Miles Dyson, #2964 https://www.youtube.com/watch?v=6x_5pi7v65k

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

76 million data points

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

pointcast fixed sensors

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

solarcast fixed/mobile sensors

Slide 35

Slide 35 text

drop and forget driving principle

Slide 36

Slide 36 text

- particulate + radiation - global wireless - solar power - weatherproof

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

Dual particulate temp & humidity sensors Dual radiation sensors Battery pack and solar power controller Cellular module LoRa module GPS Accelerometer High-voltage supply On/off & external power Weatherproof IP6X box with tripod mount Air outlet Air inlet Main CPU
 w/BLE

Slide 39

Slide 39 text

Devices: we have many, lots of data • bGeigie Nano (and friends) • Pointcast • Solarcast • Large community with other devices as well

Slide 40

Slide 40 text

the infrastructure

Slide 41

Slide 41 text

api.safecast.org

Slide 42

Slide 42 text

ingest.safecast.org

Slide 43

Slide 43 text

ingest.safecast.org

Slide 44

Slide 44 text

Ruby @ Safecast

Slide 45

Slide 45 text

The pros

Slide 46

Slide 46 text

good DB hygiene RUBY: THE PROS

Slide 47

Slide 47 text

interconnectivity RUBY: THE PROS

Slide 48

Slide 48 text

approachability RUBY: THE PROS

Slide 49

Slide 49 text

The cons

Slide 50

Slide 50 text

performance (sometimes) RUBY: THE CONS

Slide 51

Slide 51 text

high rate of change RUBY: THE CONS

Slide 52

Slide 52 text

high market rate RUBY: THE CONS

Slide 53

Slide 53 text

the upgrades 6 years of them

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

- love your test suite - mind your CI - deploy frequently KEY LEARNINGS

Slide 56

Slide 56 text

the data 6 years of that too

Slide 57

Slide 57 text

- ~30G postgis db - growing rapidly
 - mostly two tables LONG TERM TIME SERIES

Slide 58

Slide 58 text

- hot/warm/cold
 - table/db sharding
 - more formats (bigger data)
 FUTURE PLANS

Slide 59

Slide 59 text

the people 6 years, 30 api committers

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

Key learnings

Slide 62

Slide 62 text

People come and go PEOPLE: KEY LEARNINGS

Slide 63

Slide 63 text

Good > perfect PEOPLE: KEY LEARNINGS

Slide 64

Slide 64 text

Work small, deliver quickly PEOPLE: KEY LEARNINGS

Slide 65

Slide 65 text

Follow interests/passion PEOPLE: KEY LEARNINGS

Slide 66

Slide 66 text

Jump on holiday opportunities PEOPLE: KEY LEARNINGS

Slide 67

Slide 67 text

Why Safecast? (for me)

Slide 68

Slide 68 text

2013: Moving to Japan WHY SAFECAST?

Slide 69

Slide 69 text

Freedom & flexibility WHY SAFECAST?

Slide 70

Slide 70 text

Amazing connections WHY SAFECAST?

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

In summary…

Slide 73

Slide 73 text

Ruby for a cause, improve your world Anyone can do it Exciting, rewarding, fun

Slide 74

Slide 74 text

Safecast: Always open Ingest layer (ruby/golang/php): https://github.com/Safecast/safecastapi https://github.com/Safecast/ingest https://github.com/Safecast/TTServe Mapping (javascript): https://github.com/Safecast/Tilemap Hardware (C/KiCad) https://github.com/Safecast/bGeigieNanoKit https://github.com/Safecast/Solarcast

Slide 75

Slide 75 text

Questions? mat@schaffer.me github.com/matschaffer twitter.com/matschaffer ೔ຊޠ΋࿩ͤ·͢

Slide 76

Slide 76 text

Thank you! safecast.org github.com/safecast mat@schaffer.me github.com/matschaffer