Informative Workspace with
®
Raspberry Pi
Chris Hansen, New Relic - @cxhansen
Jonathan Thurman, New Relic - @jthurman42
ht...
Informative Workspaces
Tuesday, October 15, 13
Culture of Hacking
Hacking the Culture

Tuesday, October 15, 13
Empanada Project
•Simple, open, hackable, dashboard software
•Raspberry Pi setup instructions
•Instructions for adding dev...
Dashboard Software

http://techcrunch.com/2012/03/22/leftronic-relaunch/

Tuesday, October 15, 13
https://ducksboard.com/landing/compete/

Tuesday, October 15, 13

http://www.smartinsights.com/goal-setting-evaluation/per...
What’s Important to Us

•Heads-up to when something breaks
•Heads-up to current team activity
•Window into tech community ...
Empanada Goals
•Good support for metrics and news
•No service fee
•Simple to hack
•Generic event service for integration
•...
Empanada Dependencies
•AngularJS
•Google Feed API
•Masonry
•D3
•Jetty
•Java
Tuesday, October 15, 13
Browser

<div id="feedTechCrunch"/>

index.html (Dashboard Main Page)

function initialize() {
loadFeed("feedTechCrunch");...
Web APIs

Tuesday, October 15, 13
Browser

<div id="feedTechCrunch"/>
<div
ng-controller="GitHubCtl">

index.html (Dashboard Main Page)

function initialize...
Proxy Service
• Allows our Angular app to get results from protected web APIs
• Restricted to GETs
• For a given external ...
Browser

<div id="feedTechCrunch"/>
<div
ng-controller="GitHubCtl">
<div
ng-controller="BuildCtl">
index.html (Dashboard M...
Event Service

Jenkins

POST /events?channel=build

Event
Service

GET /events?channel=build

Subscriber

Tuesday, October...
Tuesday, October 15, 13
Information Radiator

•Devices that display the Dashboard
•Various sizes based on need
•Cost can vary significanly

Tuesday...
Individuals
http://www.flickr.com/photos/doggie52/3920392034/
Tuesday, October 15, 13
Large Teams
Tuesday, October 15, 13
The World
http://www.flickr.com/photos/nicolas_vollmer_photo/8912698659/
Tuesday, October 15, 13
http://www.amazon.com/dp/B008A3KFB8/
ref=pe_385040_30332190_pe_175190_21431760_M3T1_ST1_dp_i1

http://www.paritynews.com/w...
Why Raspberry Pi?

•Full Linux stack
•HDMI output
•Cheap and Hackable!

http://www.raspberrypi.org/wp-content/uploads/2011...
Caveats
•CPU / Memory constraints
•Need to customize HDMI settings
•Overclocking issues
•New Out Of Box Software

Tuesday,...
Extreme Feedback Devices

•Devices that manipulate your environment
•Force you to take notice
•People lose interest over t...
Input and
Output Pins

Raspberry Pi
http://www.flickr.com/photos/tkramm/8222207452/
Tuesday, October 15, 13
Audible
http://www.flickr.com/photos/39213183@N02/6853977807/
Tuesday, October 15, 13
Tactile
http://www.flickr.com/photos/spirosk/127848247/
Tuesday, October 15, 13
Visual
http://www.flickr.com/photos/thisisbossi/7812046824/
Tuesday, October 15, 13
Aggressive
http://www.flickr.com/photos/krisbeltran/3554484948/
Tuesday, October 15, 13
Visual Wins!

•Simple, yet elegant
•Widely understood without training
•Just the right amount of Annoying

Tuesday, Octobe...
Talkin’ GPIO

•Very simplistic endpoint
•Polls custom event status
•Quickly customizable

Tuesday, October 15, 13
Get Interactive
Tuesday, October 15, 13
Interactive Workspace

•We get information beamed at us
•What can we send back?
•Turns out we have the I in GPIO!

Tuesday...
Observe
http://www.flickr.com/photos/avbild/6735334913/
Tuesday, October 15, 13
Respond
http://www.flickr.com/photos/jblmpao/6077242957/
Tuesday, October 15, 13
Acknowledge
http://www.flickr.com/photos/marcusborg/2840411331/
Tuesday, October 15, 13
Overview
Tuesday, October 15, 13
Don’t move
Tuesday, October 15, 13
#fail
Tuesday, October 15, 13
Keep the dream alive!
Tuesday, October 15, 13
Motion
Sensor

Snooze
Button

Connected
Tuesday, October 15, 13
Next Steps

•Buy some hardware
•Get out our soldering iron
•Share your awesome hacks
•Check out Empanada - Soon!

Tuesday,...
Empanada Project
•Raspberry Pi setup instructions
•Instructions for wiring the devices
•Software described here (by end of...
Tuesday, October 15, 13
JOIN THE TEAM

NewRelic.com/jobs

Tuesday, October 15, 13
Upcoming SlideShare
Loading in …5
×

Informative Workspace with Raspberry Pi

1,547 views

Published on

with Jonathan Thurman
presentation at Velocity NY 2013

Published in: Technology, Design
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,547
On SlideShare
0
From Embeds
0
Number of Embeds
102
Actions
Shares
0
Downloads
67
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Informative Workspace with Raspberry Pi

  1. 1. Informative Workspace with ® Raspberry Pi Chris Hansen, New Relic - @cxhansen Jonathan Thurman, New Relic - @jthurman42 https://github.com/newrelic/empanada Raspberry Pi is a trademark of the Raspberry Pi Foundation Tuesday, October 15, 13
  2. 2. Informative Workspaces Tuesday, October 15, 13
  3. 3. Culture of Hacking Hacking the Culture Tuesday, October 15, 13
  4. 4. Empanada Project •Simple, open, hackable, dashboard software •Raspberry Pi setup instructions •Instructions for adding devices to Raspberry Pi •Budget-conscious Tuesday, October 15, 13
  5. 5. Dashboard Software http://techcrunch.com/2012/03/22/leftronic-relaunch/ Tuesday, October 15, 13
  6. 6. https://ducksboard.com/landing/compete/ Tuesday, October 15, 13 http://www.smartinsights.com/goal-setting-evaluation/performance-management/real-time-businessdashboards/
  7. 7. What’s Important to Us •Heads-up to when something breaks •Heads-up to current team activity •Window into tech community news Tuesday, October 15, 13
  8. 8. Empanada Goals •Good support for metrics and news •No service fee •Simple to hack •Generic event service for integration •Deployable anywhere •Accessible from anywhere Tuesday, October 15, 13
  9. 9. Empanada Dependencies •AngularJS •Google Feed API •Masonry •D3 •Jetty •Java Tuesday, October 15, 13
  10. 10. Browser <div id="feedTechCrunch"/> index.html (Dashboard Main Page) function initialize() { loadFeed("feedTechCrunch"); ... } TechCrunch New Relic Spring ... dashboard.js (Dashboard App) Company Network News Feeds Tuesday, October 15, 13 Google Feed API Internet
  11. 11. Web APIs Tuesday, October 15, 13
  12. 12. Browser <div id="feedTechCrunch"/> <div ng-controller="GitHubCtl"> index.html (Dashboard Main Page) function initialize() { loadFeed("feedTechCrunch"); ... } function GitHubCtl(…) { ... } Google Feed API Proxy auth config dashboard.war (Java App) Proxy Service dashboard.js (Dashboard App) Company Network Protected Web APIs Tuesday, October 15, 13 TechCrunch New Relic Spring ... Protected Web APIs GitHub New Relic HipChat ... Internet
  13. 13. Proxy Service • Allows our Angular app to get results from protected web APIs • Restricted to GETs • For a given external Web API, the proxy service must know: • URL prefix path to forward (otherwise 401 status) • Where to fetch the access token • token insertion strategy (usually HTTP header) Tuesday, October 15, 13
  14. 14. Browser <div id="feedTechCrunch"/> <div ng-controller="GitHubCtl"> <div ng-controller="BuildCtl"> index.html (Dashboard Main Page) function initialize() { loadFeed("feedTechCrunch"); ... } function GitHubCtl(…) { ... } function BuildCtl(…) { ... } dashboard.js (Dashboard App) Company Network Events Tuesday, October 15, 13 Google Feed API Proxy auth config dashboard.war (Java App) Proxy Service Event Service TechCrunch New Relic Spring ... Protected Web APIs GitHub New Relic HipChat ... Internet
  15. 15. Event Service Jenkins POST /events?channel=build Event Service GET /events?channel=build Subscriber Tuesday, October 15, 13 { {{ "id" : 102, "id" : : 102, 102, "id" "channel" : "build", "channel" : : "build", "build", "channel" "attrs" : { "attrs" : : { { "attrs" "success" : 0, "success" : : 0, 0, "success" "BUILD_NUMBER" : 939, "BUILD_NUMBER" : : 939, 939, …"BUILD_NUMBER" … } … }} } }} Build Event Build Event Build Event
  16. 16. Tuesday, October 15, 13
  17. 17. Information Radiator •Devices that display the Dashboard •Various sizes based on need •Cost can vary significanly Tuesday, October 15, 13
  18. 18. Individuals http://www.flickr.com/photos/doggie52/3920392034/ Tuesday, October 15, 13
  19. 19. Large Teams Tuesday, October 15, 13
  20. 20. The World http://www.flickr.com/photos/nicolas_vollmer_photo/8912698659/ Tuesday, October 15, 13
  21. 21. http://www.amazon.com/dp/B008A3KFB8/ ref=pe_385040_30332190_pe_175190_21431760_M3T1_ST1_dp_i1 http://www.paritynews.com/wp-content/uploads/2013/08/raspberry-pi-800x600.jpg Just Right! Tuesday, October 15, 13
  22. 22. Why Raspberry Pi? •Full Linux stack •HDMI output •Cheap and Hackable! http://www.raspberrypi.org/wp-content/uploads/2011/07/RaspiModelB.png Tuesday, October 15, 13
  23. 23. Caveats •CPU / Memory constraints •Need to customize HDMI settings •Overclocking issues •New Out Of Box Software Tuesday, October 15, 13
  24. 24. Extreme Feedback Devices •Devices that manipulate your environment •Force you to take notice •People lose interest over time, remind them! Tuesday, October 15, 13
  25. 25. Input and Output Pins Raspberry Pi http://www.flickr.com/photos/tkramm/8222207452/ Tuesday, October 15, 13
  26. 26. Audible http://www.flickr.com/photos/39213183@N02/6853977807/ Tuesday, October 15, 13
  27. 27. Tactile http://www.flickr.com/photos/spirosk/127848247/ Tuesday, October 15, 13
  28. 28. Visual http://www.flickr.com/photos/thisisbossi/7812046824/ Tuesday, October 15, 13
  29. 29. Aggressive http://www.flickr.com/photos/krisbeltran/3554484948/ Tuesday, October 15, 13
  30. 30. Visual Wins! •Simple, yet elegant •Widely understood without training •Just the right amount of Annoying Tuesday, October 15, 13
  31. 31. Talkin’ GPIO •Very simplistic endpoint •Polls custom event status •Quickly customizable Tuesday, October 15, 13
  32. 32. Get Interactive Tuesday, October 15, 13
  33. 33. Interactive Workspace •We get information beamed at us •What can we send back? •Turns out we have the I in GPIO! Tuesday, October 15, 13
  34. 34. Observe http://www.flickr.com/photos/avbild/6735334913/ Tuesday, October 15, 13
  35. 35. Respond http://www.flickr.com/photos/jblmpao/6077242957/ Tuesday, October 15, 13
  36. 36. Acknowledge http://www.flickr.com/photos/marcusborg/2840411331/ Tuesday, October 15, 13
  37. 37. Overview Tuesday, October 15, 13
  38. 38. Don’t move Tuesday, October 15, 13
  39. 39. #fail Tuesday, October 15, 13
  40. 40. Keep the dream alive! Tuesday, October 15, 13
  41. 41. Motion Sensor Snooze Button Connected Tuesday, October 15, 13
  42. 42. Next Steps •Buy some hardware •Get out our soldering iron •Share your awesome hacks •Check out Empanada - Soon! Tuesday, October 15, 13
  43. 43. Empanada Project •Raspberry Pi setup instructions •Instructions for wiring the devices •Software described here (by end of October) •https://github.com/newrelic/empanada Tuesday, October 15, 13
  44. 44. Tuesday, October 15, 13
  45. 45. JOIN THE TEAM NewRelic.com/jobs Tuesday, October 15, 13

×