Slide 1

Slide 1 text

Throwing Up Numbers

Slide 2

Slide 2 text

@robhruska

Slide 3

Slide 3 text

Dashboards

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

Nuggets

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

They’re Awesome.

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Communal Dashboards

Slide 14

Slide 14 text

Communal Dashboards With the growing interest in data analytics and visualizations, we're seeing more effort put into interesting visualizations that allow people to draw insight from data floating around in an organization. Most of these dashboards are aimed at individual usage, but there is a growing tendency to use them for a more communal purpose. “ martinfowler.com/bliki/CommunalDashboard.html ...creating an emotional engagement with how the business is running. “ ...a form information radiator. “

Slide 15

Slide 15 text

Communal Dashboards martinfowler.com/bliki/CommunalDashboard.html Photo: Chris Kapcar (via Martin Fowler)

Slide 16

Slide 16 text

This is less about helping people make decisions, more about educating people about what's happening, providing background information and context for their regular work. “ Communal Dashboards martinfowler.com/bliki/CommunalDashboard.html

Slide 17

Slide 17 text

Today’s Menu ● Project structure ● Examples ● Hardware

Slide 18

Slide 18 text

socket.io event handler / emitter socket.io client node.js browser message subscribe

Slide 19

Slide 19 text

http://nodejs.org node.js

Slide 20

Slide 20 text

Event loop ● Single-threaded message processor Non-blocking I/O ● Node does all the I/O outside the event loop

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

http://nodejs.org node.js

Slide 24

Slide 24 text

socket.io http://socket.io

Slide 25

Slide 25 text

Client Server

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

nugget https://github.com/hudl/nugget

Slide 28

Slide 28 text

socket.io event handler / emitter Datasource External API subscribe: stat socket.io client stat node.js browser Display stat Display Datasource stat stat subscribe: stat

Slide 29

Slide 29 text

nugget |_ client |_ server |_ user |_ datasources |_ displays |_ resources |_ server-config.json |_ datasources |_ datasource-name.js |_ ... |_ displays |_ display-name.css |_ display-name.js |_ display-name.html |_ ...

Slide 30

Slide 30 text

current-time Example

Slide 31

Slide 31 text

socket.io event handler / emitter system-time System Time subscribe: time socket.io client time node.js browser current-time time

Slide 32

Slide 32 text

nugget |_ client |_ server |_ user |_ datasources |_ displays |_ resources |_ server-config.json |_ datasources |_ server-time.js |_ ... |_ displays |_ current-time.css |_ current-time.js |_ current-time.html |_ ...

Slide 33

Slide 33 text

server/user/datasources/system-time.js

Slide 34

Slide 34 text

server/user/displays/current-time.js

Slide 35

Slide 35 text

server/user/displays/current-time.css server/user/displays/current-time.html

Slide 36

Slide 36 text

current-time Demo

Slide 37

Slide 37 text

current-users Example

Slide 38

Slide 38 text

socket.io event handler / emitter current-users Chartbeat subscribe: current-users socket.io client current-users node.js browser current-users current-users Splunk

Slide 39

Slide 39 text

server/user/displays/current-users.js

Slide 40

Slide 40 text

current-users Demo

Slide 41

Slide 41 text

github-commits Example

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

server/user/displays/github-commits.js http://your-server/inbound/datasource-name

Slide 44

Slide 44 text

github-commits Demo

Slide 45

Slide 45 text

Control Panel

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

Hardware

Slide 49

Slide 49 text

Acer X1220H $380 Raspberry Pi $35

Slide 50

Slide 50 text

Edimax EW-7811Un - $10 Rosewill RPM-MP0010 - $35 2.1A USB wall charger - $10 4-port powered USB hub - $15

Slide 51

Slide 51 text

Shopping LIst $380 35 10 15 35 10 ~$500 10

Slide 52

Slide 52 text

Automation ● Power on/off automatically ● Projector power

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

Schematic: Alex Bain, http://alexba.in/

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

Molten Lead

Slide 57

Slide 57 text

Images: http://sparkfun.com IR LED 850nm $0.95 x 3 100g leaded solder $5.95 10k Ohm resistor $0.25 1" ProtoBoard (2) $2.50 30W soldering iron $9.95 12" M/F Jumper (10) $4.50 PN2222 Transistor (10) $1.95

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

LIRC

Slide 61

Slide 61 text

Make Your Own Awesome What’s important to you and your organization? ● Current users ● GitHub commits ● Items purchased ● Videos watched ● App downloads

Slide 62

Slide 62 text

Fork it! https://github.com/hudl/nugget

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

Resources ● @robhruska / robhruska@gmail.com ● http://github.com/hudl/nugget ● http://github.com/hudl/nugget-hudl ● http://elinux.org/RPi_VerifiedPeripherals ● http://nodejs.org/ ● http://socket.io/ ● http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/

Slide 65

Slide 65 text

Questions