Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Raspberry pi - Node js - Drupal

496 views

Published on

A journey from a tipple to a website

Published in: Technology
  • Login to see the comments

  • Be the first to like this

Raspberry pi - Node js - Drupal

  1. 1. Mark Corben Drupal NodeJs and Rasperry Pi mmmmm
  2. 2. Mark Corben
  3. 3. Mark Corben And Alcohol …
  4. 4. Mark Corben How it fits together Arduino Alcohol Sensor Raspberry Pi Browser
  5. 5. Mark Corben How the hardware fits together ArduinoAlcohol Sensor Raspberry Pi Analog Sensor I2C Bus
  6. 6. Mark Corben How do we read the bus ? Raspberry Pi I2C Bus ??????? Apache Drupal ??? ???
  7. 7. Mark Corben NodeJs to the Rescue Raspberry Pi I2C Bus NodeJs Server Apache Drupal
  8. 8. Mark Corben Drupal Node.js Integration Modules Drupal NodeJs Project NodeJs Client Side (Drupal) NodeJS Integration Module NodeJS Config Module NodeJS Notifications Module NodeJs Server Side drupal-node.js NodeJs Server Drupal
  9. 9. Mark Corben NodeJs app.js npm - nodejs package manager Execute nodejs module node app.js Forever forever app.js
  10. 10. Mark Corben Drupal-node.js Server Install drupal-node.js npm install drupal-node.js Running drupal-node.js server Under node_modules/drupal-node.js/ node app.js
  11. 11. Mark Corben Drupal-node.js Configuration nodejs.config.js file host: '' serviceKey: 'FunkThatThingSweetMumma' backend: { basePath: '/drupal7' } Drupal Site extensions: ['/alcohol_detector.extension.js'],
  12. 12. Mark Corben Drupal Node.js Integration Modules Drupal NodeJs Project NodeJs Server Side drupal-node.js alcohol_detector.extension.js app.js Extension Extension Extension alcohol_detector.extension.js
  13. 13. Mark Corben Drupal NodeJs Modules NodeJS Integration Module NodeJS Config Module NodeJS Notifications Module nodejs_server_host: 192.168.1.25 nodejs_service_key: FunkThatThingSweetMumma
  14. 14. Mark Corben The End

×